Little Endian adressing
I've got problem with my task.
Here is my task: In memory with adress convention Little Endian next bytes of memory strating from 0x100120 have following date 0x01 0x02 0x03 0x04 0x05. After copy to 2-byte number from date, frim adress 0x100121 to register A what is the value or register?
0x100120 have following date 0x01 0x02 0x03 0x04 0x05.
0x100120 has 0x01 0x100121 has 0x02 <-- first byte 0x100122 has 0x03 <-- second byte 0x100123 has 0x04 0x100124 has 0x05
When reading 2 bytes from an address the first byte goes to the low part of the A register and the second byte goes to the high part of the A register. So AL=0x02 and AH=0x03 This gives AX=0x0302 (770 decimal)