For small, binary integer multiplications, you can use MH or MHI. With MHI, the second operand is stored as an immediate constant inside the instruction. The condition code isn’t set, so you have to be careful not to overflow the limits of the computation. Still, it’s a handy instruction. See some examples, and learn the details here.
Review an Instruction: MHI
Categories:
Related Posts
Starting AssemblerStarting Assembler
Here’s a daunting thought for anyone starting to learn IBM assembly language: The latest System/z machine executes over 500 machine ...
Joe Goes Small (< 4k)Joe Goes Small (< 4k)
Joe Developer had an astute comment about “Lots of Code on One Base Register” when he reminded me that lots ...
Review an Instruction: ASIReview an Instruction: ASI
This little instruction comes with two surprises. I’ll tell you about one: It allows us to add two binary fields ...
