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
Update to Chapter 4Update to Chapter 4
Writing a book takes years – at least it does for me. Writing a book about a computer that is ...
Structured Programming Macros: SELECT – You Gotta Try It!Structured Programming Macros: SELECT – You Gotta Try It!
The structured programming macros in HLASM are just too sweet to ignore. Make your programming life easier by adopting them. ...
Debugging S0C9 AbendsDebugging S0C9 Abends
You may or may not have stumbled over an S0C9 abend in your work with assembly language, but in any ...
