flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 24 Dec 2016, 10:13
It is the assembler that does this, not the HLL compiler. Most probably the C compiler is using a two pass assembler as the back end.
|
|||
![]() |
|
AsmGuru62 24 Dec 2016, 15:49
Also notice the address 00401180 - it should be a branch to it from somewhere.
So, NOP is most likely for branch address alignment. |
|||
![]() |
|
vivik 24 Dec 2016, 19:34
AsmGuru62 wrote: Also notice the address 00401180 - it should be a branch to it from somewhere. Yes, that's the weird part: there is a jump to 401179, but not to 401180. Maybe it's just a bug. |
|||
![]() |
|
revolution 24 Dec 2016, 22:52
If you look at the intermediate .asm / .s files created by the compiler for the assembler then the reason for the NOP can be determined.
But make sure you enable Intel mode, not AT&T mode, else your eyes will bleed. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.