This command writes a number from 8-bit register A to memory at address, contained in 16-bit register.
Exists 2 variants of this command:
1) STAX B
This command writes a number from 8-bit register A to a memory at address, contained in the register BC.
Code of this operation: 02 (2h).
2) STAX D
This command writes a number from 8-bit register A to a memory at address, contained in the register DE.
Code of this operation: 12 (12h).
Example:
STAX D
Code:
12
Action:
A → MEMORY [ DE ]
Exists 2 variants of this command:
1) STAX B
This command writes a number from 8-bit register A to a memory at address, contained in the register BC.
Code of this operation: 02 (2h).
2) STAX D
This command writes a number from 8-bit register A to a memory at address, contained in the register DE.
Code of this operation: 12 (12h).
Example:
STAX D
Code:
12
Action:
A → MEMORY [ DE ]