|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code,ds:data,ss:stack
data segment
db 'welcome to masm!'
db 02H,24H,71H
data ends
stack segment
dw 8 dup(0)
stack ends
code segment
start : mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,10H
mov bx,0
mov ax,0b872H
mov cx,3
s3: push cx
push ax
push bx
mov es,ax
mov si,0
mov di,0
mov cx,10H
s1: mov al,ds:[si]
mov es:[di],al
inc si
add di,2
loop s1
mov di,1
pop bx
mov al,ds:10H[bx]
inc bx
mov cx,10H
s2: mov es:[di],al
add di,2
loop s2
pop ax
add ax,0ah
pop cx
loop s3
mov ax,4c00H
int 21H
code ends
end start
如上代码是小甲鱼视频里的,而我一字不差的抄袭过来。在CMD里面怎么不显示字符串
'welcome to masm!'
|
|