Tal
Tal

Reputation: 303

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 :-)

Upvotes: 5

Views: 3168

Answers (2)

Pascal Cuoq
Pascal Cuoq

Reputation: 80284

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.

Upvotes: 3

bcat
bcat

Reputation: 8941

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

Upvotes: 4

Related Questions