🡄 Previous

Next 🡆

Contents > General-purpose Computer > Assembly Language

Load Instructions

A load instruction reads the byte at the address in MN into either A or B:

InstructionNamePseudocodeOpcode
LDALoad AA = *MN;40
LDBLoad BB = *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.

🡄 Previous

Next 🡆