王爽教程实验九
;刚学汇编,希望给点意见,代码有什么可以改进的么:shock:assume cs:code,ds:data
data segment
db 'welcome to masm!'
db 82h,0ach,0f9h
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ax,0b872h ;段地址
mov ss,ax ;bp默认的是ss
mov di,16
xor bp,bp
mov cx,3
s0:
mov ds:,cx
xor bx,bx
mov cx,16
s1:
mov al,
mov ,al
mov al,
mov ,al
inc bx
add bp,2
loop s1
add bp,128
inc di
mov cx,ds:
loop s0
mov AH,4CH
int 21H
code ends
end start
页:
[1]