flat assembler
Message board for the users of flat assembler.
Index
> Windows > Looping Program Doesn't Loop Correct Amount Of Times |
Author |
|
idle 17 Jan 2016, 20:45
Code: include 'win32ax.inc' .code start: invoke MessageBox,HWND_DESKTOP,"Welcome to hell >",invoke GetCommandLine,MB_OK inc [loopcount] cmp [loopcount], 20h jne start invoke ExitProcess,0 .end start section '' data readable writable loopcount db 01h |
|||
17 Jan 2016, 20:45 |
|
typedef 20 Jan 2016, 20:37
You might want to explain to him why you added the data section instead of just completing his code.
|
|||
20 Jan 2016, 20:37 |
|
idle 21 Jan 2016, 07:05
win32ax.inc
Code: ... macro .data { section '.data' data readable writeable } macro .code { section '.text' code readable executable } ;writes prohibited ... |
|||
21 Jan 2016, 07:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.