Dale - Computer Science Illuminated 222

Dale - Computer Science Illuminated 222 - 7.3 Machine...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
7.3 Machine Language 195 The register specifier is 0, which refers to the A register, and the addressing mode is immediate, meaning that the value to be loaded is in the operand specifier. That is, the data is in the operand specifier; thus it is shaded gray. After execution of this instruction, the contents of the second and third bytes of the instruction (the operand specifier) would be loaded into the A register (the accumulator). That is, the A register would contain 0007 and the original contents of A would be lost. To simplify the discussion, from here on we represent all numbers in hexadecimal (except the bit strings in the registers). We specify leading zeros on addresses but not on numeric values. Here is another load instruction. The register specifier is 1, which refers to the X register, and the addressing mode is immediate. Thus, the data to be loaded into the X register is stored in the operand specifier itself. After the execution of this instruction, the X register would contain 1F. Note that the original contents of the X
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online