汇编实验9源码
p segmentdb 'welcom to masm!'
db 2,36,113
p ends
z segment
db 16 dup (0)
z ends
assume cs:code
code segment
start:
mov ax,p
mov ds,ax
mov ax,0b878h
mov es,ax
mov ax,z
mov ss,ax
mov sp,10h
mov di,0
mov si,0
mov cx,3
s0:
push cx
mov bx,0
mov bp,0
mov cx,15
s:
mov al,ds:
mov ah,0
mov es:,al
mov dl,ds:
mov dh,0
mov es:,dl
inc bx
add bp,2
loop s
add si,0a0h
inc di
pop cx
loop s0
mov ax,4c00H
int 21H
code ends
end start
页:
[1]