flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 28 Apr 2007, 19:04
You declared
Code: MemBuffa dd 00000000h,00000001h Code: MemBuffa db 00, 00, 00, 00, 01, 00, 00, 00 Now you are accessing "dword [MemBuffa+1]", so you are accessing four bytes starting from the second byte of MemBuffa (00, 00, 00, 01). Remember that Intel is little endian so the first cmp is comparing against 00, 00, 00, 01 and the second cmp against 01, 00, 00, 00. I clarified your problem? Actually I'm not so sure what are you asking. |
|||
![]() |
|
fasm007 28 Apr 2007, 19:16
Yes, I see. I make this stupid mistake, sometimes. I was thinking MemBuffa+1 dword, instead of MemBuffa+4 bytes, which would have been correct.
The example made it appear that the endian byte order was being flipped, which confused me, further. Thanks for the reply. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.