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
Re-write/ update of Chapters 1-4 of “The Book”Re-write/ update of Chapters 1-4 of “The Book”
I’m in full assembler mode these days, preparing to teach an assembler class for Marist College that starts on Monday. ...
Review an Instruction: MGRK (With Link!)Review an Instruction: MGRK (With Link!)
Multiply Greek! At least that’s how I remember it. Greek is a good mnemonic for MGRK. Use this instruction to ...
Rewrite of Chapter 10 – DSECTs and moreRewrite of Chapter 10 – DSECTs and more
I have just finished an extensive rewrite of book chapter 10. I’ve added much more material on USING and DROP. ...
