I used LXI D and LXI H to load immediate register pairs DE and HL.
When I use MOV A, M it works for HL value to move into A, but how to move DE to B?
Asked
Active
Viewed 181 times
2
Evan Carroll
- 78,363
- 46
- 261
- 468
Ignas
- 43
- 1
- 3
- 9
1 Answers
4
You'd have to use instruction A1 — LDAX D in Intel speak and LD A, (DE) in Zilog speak — then do a quick 47 — MOV A, B / LD B, A.
There's no instruction to load directly to B from indirect DE.
Tommy
- 99,986
- 12
- 185
- 204