LXI doesn't load the location of a symbol; it loads the value at the memory location
dplassgit opened this issue · comments
David Plass commented
jmp start
R0: db 05ah,0h,0h,0h,0h,0h,0h,0h
start: LXI B, R0
LXI D, 0803h
HLT
After the HLT, BC has the value 5A, where DE has 0803h. The former is incorrect, the latter is correct.
David Plass commented