The ability to load an address in assembler is a powerful tool. Working with an object from a distance (Load Address) rather than directly (Load) gives us the power of pointers and opens up the possibility of creating data structures. LA, an RX instruction, was the traditional instruction for working with addresses. LAY, an RXY-a instruction, offers some advantages over LA that you should consider. Read about the differences in these instructions here.
Why you should be using LAY
Categories:
Related Posts
Shifty ShiftsShifty Shifts
Perhaps you’re like me, and as a fledgling assembler programmer, you learned the Shift and Round Decimal instruction (SRP) from ...
Available Now: The Big Blue Assembler BookAvailable Now: The Big Blue Assembler Book
My new assembler book is available in paperback now on Amazon. A hardback version will appear shortly. This is an ...
BRC and BRCL Instruction LessonsBRC and BRCL Instruction Lessons
I’ve added lessons on two relative branch operands that have become fundamental tools for “baseless” programs: Branch Relative on Condition ...
