2

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?

Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
Ignas
  • 43
  • 1
  • 3
  • 9

1 Answers1

4

You'd have to use instruction A1LDAX D in Intel speak and LD A, (DE) in Zilog speak — then do a quick 47MOV A, B / LD B, A.

There's no instruction to load directly to B from indirect DE.

Tommy
  • 99,986
  • 12
  • 185
  • 204