Search code examples
assemblyintelintel-8080

Intel 8080: How to MOV DE to B?


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?


Solution

  • 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.