Contents > General-purpose Computer > Assembly Language
A load instruction reads the byte at the address in MN into either A or B:
|LDA||Load A||A = *MN;||40|
|LDB||Load B||B = *MN;||41|
It assigns the zero flag, z, to 1 if the read byte is zero, and to 0, otherwise. Similarly, it assigns the negative flag, n, to 1 if the read byte is negative (if bit-7 is 1), and to 0, otherwise.
A load instruction maps to an opcode with bits 0100000d, where A and B correspond to d values 0 and 1, respectively.
© 2023 meatfighter.com