|
主题 : : 实验9的代码这样写行吗? [待解决] |
回复[ 3次 ]
点击[ 247次 ] | |
荣誉值:0
信誉值:13
注册日期:2011-07-13 08:38 |
assume cs:code,ds:stack
stack segment
db 'w',02h,'e',02h,'l',02h,'c',02h,'o',02h,'m',02h,'e',02h,'
',02h,'t',02h,'o',02h,' ',02h,'m',02h,'a',02h,'s',02h,'m',02h,'!',02h
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,0
mov ax,0B800h ;此处不要忘记在“B800h”前加“0”
mov ds,ax
mov bx,07D0h
mov cx,16
s:
pop [bx]
add bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start | | |