32位汇编输出helloworld

.386
.model flat,stdcall
option casemap:none
include msvcrt.inc
includelib msvcrt.lib
include kernel32.inc
includelib kernel32.lib

.data
szText1 db "hello world",0Ah,00h
szPause db "pause",0Ah
.code

testdd:
	push offset szText1
	call crt_printf
	add esp,4
	push offset szPause
	call crt_system
	add esp,4
	ret
end testdd
end

 

你可能感兴趣的:(assembly)