flat assembler
Message board for the users of flat assembler.
Index
> Main > newbie endless loop |
Author |
|
LocoDelAssembly 30 Jun 2007, 20:38
After changing "DW" with "dd" or "DD" the infinite loop disappears. The "MOV DWORD[ESI], 20" was writing a half in Y variable and the other half in non assigned memory. The problem later was that when you compared against X variable you was actually comparing against a merge of X and Y and for that reason you never reach 10 because that "MOV DWORD[ESI], 20" keeps the value too high.
Either use "word [ESI]" or change the variables to the dword type using "dd" (the latter is prefered). |
|||
30 Jun 2007, 20:38 |
|
DOS386 30 Jun 2007, 20:57
When posting code next time, please use the "code tags":
Code: cli ; Yeah pop cs @@: cpuid ud2 |
|||
30 Jun 2007, 20:57 |
|
Ren 01 Jul 2007, 05:13
Thanks Loco,
I think I have a lot to learn! And NTOSKRNL_VXE, I will do that Thanks, Ren |
|||
01 Jul 2007, 05:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.