Ignas
Ignas

Reputation: 43

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?

Upvotes: 2

Views: 240

Answers (1)

Tommy
Tommy

Reputation: 100662

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.

Upvotes: 4

Related Questions