This command writes a 16-bit number to a 16-bit processor register.
Exists 4 variants of this command:
1) LXI B, 16-bit number
This command writes a 16-bit number to the 16-bit register BC.
Code of this operation: 01(1h).
2) LXI D, 16-bit number
This command writes a 16-bit number to the 16-bit register DE.
Code of this operation: 11 (11h).
3) LXI H, 16-bit number
This command writes a 16-bit number to the 16-bit register HL.
Code of this operation: 21 (21h).
4) LXI SP, 16-bit number
This command writes a 16-bit number to the 16-bit stack register SP.
Code of this operation: 31. (31h).
Example:
LXI H, 45FA
Code:
21 FA 45
Action:
45FA → HL
That is:
FA → L
45 → H
Exists 4 variants of this command:
1) LXI B, 16-bit number
This command writes a 16-bit number to the 16-bit register BC.
Code of this operation: 01(1h).
2) LXI D, 16-bit number
This command writes a 16-bit number to the 16-bit register DE.
Code of this operation: 11 (11h).
3) LXI H, 16-bit number
This command writes a 16-bit number to the 16-bit register HL.
Code of this operation: 21 (21h).
4) LXI SP, 16-bit number
This command writes a 16-bit number to the 16-bit stack register SP.
Code of this operation: 31. (31h).
Example:
LXI H, 45FA
Code:
21 FA 45
Action:
45FA → HL
That is:
FA → L
45 → H
No comments:
Post a Comment