Step 1 of 2
Load the Operands
Before the 8085 can add anything, both numbers have to be inside the CPU.
Load the byte at 2000H into the accumulator A, and the byte at 2001H
into register B. Do not add them yet. This step is only about getting the
values where the next step can use them.
The one thing:
Mis not a register. It is whateverHLpoints at right now, so reaching the next byte means moving the pointer, not naming another address.
What is being checked
Aholds the byte from2000HBholds the byte from2001H- The program reaches
HLT - You use
LXIto set up the pointer, and notLDA
A note on M
M is not a register. It is notation meaning "the memory byte that HL
currently points at", so MOV A, M is a memory read, not a register copy.
Setting up HL once and stepping it forward with INX H is the pattern you
will use for every array in this course.
Progress is kept for this tab only. Sign in to save it across devices.