我试图在 Windows Vista 下运行的 masm32 中创建一个循环,但是我这样做了,即使它实际上完成了循环,它也会崩溃,我看不出有什么明显的原因......任何想法?
.386
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
.data
ProgramText db "Looping!", 0
.data?
loop_stopper dd ?
.code
start:
mov loop_stopper,2
loop_start:
invoke StdOut, addr ProgramText
cmp loop_stopper, 0
dec loop_stopper
jg loop_start
end start
编辑
做过
invoke StdOut, offset ProgramText
还是崩溃...