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
Jumping Into BranchesJumping Into Branches
Are you bewildered by the plethora of branch instructions in assembly language? Perhaps you’re wondering what all that jumping around is ...
WelcomeWelcome
Welcome to my site! I’ve been coding IBM mainframe assembly language since the late 1970’s. Over the years I’ve taught ...
Review an Instruction: LARLReview an Instruction: LARL
Load Address Relative Long (LARL) is a powerful instruction that can be used to reduce the number of registers your ...
