你是哪种汇编?x86的还是c51/pic/arm或其它的?汇编的输出还与汇编软件及平台有关如x86的汇编在早期的DOS及现在的windows实现完全不同的若是masm32v11,简单的输出变量可用include \masm32\include\***.inc .codestart: call main inkey exitmain proc LOCAL tststr :DWORD sas tststr,"test" print tststr,13,10retmain endpend start而emm386,要这样data segment contest db "hello$"endsstack segment dw 128 dup(0)endscode segmentstart: mov ax, data mov ds, ax mov es, ax lea dx, contest mov ah, 9 int 21h mov ax, 4c00h int 21h endsend start 你具体是什么环境?