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
Study Assembler with Me OnlineStudy Assembler with Me Online
Study assembler programming with me this fall through the Enterprise Systems Education program offered by Marist College. Classes begin August ...
Debugging S0C9 AbendsDebugging S0C9 Abends
You may or may not have stumbled over an S0C9 abend in your work with assembly language, but in any ...
Structured Programming Macros: SELECT – You Gotta Try It!Structured Programming Macros: SELECT – You Gotta Try It!
The structured programming macros in HLASM are just too sweet to ignore. Make your programming life easier by adopting them. ...
