Category: IBM Champion

Review an Instruction: MHIReview an Instruction: MHI

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.

Pet Blog InterviewPet Blog Interview

I write mysteries when I’m not working with assembler or playing with my dog, Rocco. I recently did an an interview with author Marcia James about my novels, the second of which contains a dog as an important part of the story. You can read about it on her site here. Order a novel (On Amazon) as a way to support the site!

Review an Instruction: MHYReview an Instruction: MHY

Just a few more multiplication instructions, and we will move forward in the alphabet from “M”. MHY is a companion instruction to MFY. These two instructions share the same instruction format: RXY-a. Remember that “Y”-type instructions can reach farther from the base address, both forward and backward. You can find a writeup here.

Review an Instruction: MSRReview an Instruction: MSR

I’m still working my way alphabetically (ususally) through the instruction set, picking instructions you should learn. We are in the M’s and there’s a plethora of multiply instructions we can review. I’m also selecting instructions I haven’t already covered. Today’s instruction is Multiply Single Register (MSR), which provides an easy way to multiply two single-precision register values without much setup. The result should be single-precision if you want to use this instruction. Read about MSG here.