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
A Little Assembler MagicA Little Assembler Magic
In most languages, if you need to swap the contents of two variables, say X and Y, it normally requires ...
IBM zDay, September 15IBM zDay, September 15
IBM zDay is coming soon, September 15. It’s a chance to catch 150 IBM zSystems experts for free! Register at >>> ...
Shifty ShiftsShifty Shifts
Perhaps you’re like me, and as a fledgling assembler programmer, you learned the Shift and Round Decimal instruction (SRP) from ...
