Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MOV BX,[SI] - ASM question

I'm studying ASM 8086 theoretically on highschool.
And when I do this:
MOV BX,[SI]
is SI+1 going to BH or BL?
Thank you :-)

like image 556
Tal Avatar asked May 04 '10 20:05

Tal


2 Answers

The byte at memory location SI + 1 will be stored in the register BH because x86 is little endian.

like image 123
bcat Avatar answered Sep 28 '22 16:09

bcat


I think your question is about the endianness of x86, and the answer is that it is little-endian: the byte at address SI goes to BL. The byte at SI+1 goes to BH.

like image 41
Pascal Cuoq Avatar answered Sep 28 '22 14:09

Pascal Cuoq