新鲜出炉实验9,历时3个小时
assume cs:codedata segment
db 'welcome to masm!'
db 02h,24h,71h
data ends
stack segment
dw 0
stack ends
code segment
start: mov ax,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,2
mov ax,0b800h
mov es,ax
mov bx,0
mov di,0
mov cx,3
s0: push cx
mov bp,0
mov si,0
mov cx,16
s: mov al,
mov byte ptr es:,al
mov al,ds:
mov byte ptr es:,al
add si,2
inc bp
loop s
add bx,0a0h
inc di
pop cx
loop s0
mov ax,4c00h
int 21h
code ends
end start
页:
[1]