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
Datasets for the COBOL CourseDatasets for the COBOL Course
I have added a tab (Course Datasets) at the top of the blog to help provide input data for the ...
IBM Z Day 18 October 2023IBM Z Day 18 October 2023
Register here for IBM Z Day. It’s a free online conference where you are sure to find something of interest. ...
Instruction of the Day: UNPKInstruction of the Day: UNPK
Learn a new instruction today. Here’s a link to a short video that covers UNPK, the mainframe instruction that converts ...
