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
IBM Z Day: Special Addition, April 8IBM Z Day: Special Addition, April 8
[IBM Z Day: Special Edition, on April 8th. Free training. Earn badges. Register Now – ibm.biz/ibmzday2025-se ...
VisualZ Has Been UpdatedVisualZ Has Been Updated
Here’s your chance to learn many new assembler instructions! I just published the latest version of VisualZ which represents a ...
Techniques for Converting From Binary to Packed-DecimalTechniques for Converting From Binary to Packed-Decimal
If you are generating a binary result in a register and converting the result back to packed-decimal, you need to ...
