马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
第5题:
assume cs:code
a segment
db 1,2,3,4,5,6,7,8
a ends
b segment
db 1,2,3,4,5,6,7,8
b ends
cc segment
db 0,0,0,0,0,0,0,0
cc ends
code segment
start:
mov ax,cc
mov ds,ax
mov ax,a
mov ss,ax
mov bx,0
mov cx,8
s: mov dl, ss:[bx]
mov [bx], dl
inc bx
loop s
mov ax,b
mov ss, ax
mov bx,0
mov cx,8
s1: mov dl,ss:[bx]
add [bx], dl
inc bx
loop s1
mov ax,4c00h
int 21h
code ends
end start
第6题:assume cs:code,ds:a,ss:b
a segment
dw 1,2,3,4,5,6,7,8,9,0ah,0bh,0ch,0dh,0eh,0fh,0ffh
a ends
b segment
dw 0,0,0,0,0,0,0,0
b ends
code segment
start:
mov ax,0
mov ax,a
mov ds,ax
mov bx,0eh
mov ax,b
mov ss,ax
mov sp,10h
mov cx,8
s: push [bx]
sub bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start
|