Multiply Grande (MG) is the sister instruction of Multiply(M) and produces produces 128-bit products in an even/odd register pair. Ususally the result we are looking for is in the single, odd, grande (64-bits) register. That presents a problem: How do we convert a 64-bit product in a grande register to packed-decimal? It’s not obvious and requires a bit of mathematical know-how. This article shows you the assembler code that will do the conversion, and points to an explanation.
Review an Instruction: MG
Categories:
Related Posts
Study assembler with me in the fallStudy assembler with me in the fall
I’ll be teaching a beginning assembler class online again this fall through the Marist College IDCP as part of a ...
Something Different: Visual Prompts for LoadsSomething Different: Visual Prompts for Loads
This week, instead of an article about one instruction, I give you a visual depiction of the eleven load operations ...
My Favorite IBM Mainframe ConferenceMy Favorite IBM Mainframe Conference
The time for my favorite IBM mainframe conference is fast approaching – June 11-13, 2023. It’s the Marist College ECC ...
