数据段与代码段穿插

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

.386
.model stdcall, flat
option casemap:none

include  msvcrt.inc
includelib  msvcrt.lib

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

你可能感兴趣的:(String)