The LDAX instruction
The LDAX (Load Accumulator Extended) instruction loads the contents of the memory location pointed to by the register pair BC or DE into accumulator A.
The LDAX instruction format
| Instruction | Description |
|---|---|
| LDAX RP16 | This format is used to load the contents of the memory location pointed to by the register pair BC or DE into accumulator A. |
Usage example
; Author: Evgeny Sergeevich Dovgopolov data: db 10h main: lxi b, data ; Load the address of the variable data into register pair BC ldax b ; Load the value at the memory address (data) into accumulator A hlt ; Stop program execution
Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".
Processor status flags
S
NoZ
NoAC
NoP
NoCY
No