数据段与代码段穿插

;代码段不一定要连在一块
;下面代码输出
;hello shengfu
;hello world

.386
.model stdcall, flat
option casemap:none

includemsvcrt.inc
includelib msvcrt.lib

externdef string:byte
.data
string2db'hello world', 0
.code
start:
invoke crt_printf, addr string
.data
stringdb'hello shengfu', 13, 10, 0
.code
invoke crt_printf, addr string2
ret
endstart

你可能感兴趣的:(代码)