马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
缘由是:鄙人刚学完第6章,发现官方未放出 实验5后两题的参考。
如有不对,请各位高手指出。
实验5(5)- assume cs:code
- aa segment
- db 1,2,3,4,5,6,7,8
- aa ends
- bb segment
- db 1,2,3,4,5,6,7,8
- bb ends
- cc segment
- db 0,0,0,0,0,0,0,0
- cc ends
- code segment
- start: mov ax,aa
- mov es,ax
- mov ax,bb
- mov ss,ax
- mov ax,cc
- mov ds,ax
- sub ax,ax
- mov bx,0h
- mov cx,8
- s: mov al,es:[bx]
- add al,ss:[bx]
- mov [bx],al
- inc bx
- loop s
-
- over: mov ax,4c00h
- int 21h
- code ends
- end start
复制代码 5(6)- assume cs:code
- 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
- b ends
- code segment
- start: mov ax,a
- mov ds,ax
- mov ax,b
- mov ss,ax
- mov sp,16
- sub bx,bx
- mov cx,8
- s: push [bx]
- add bx,2
- loop s
-
- over: mov ax,4c00h
- int 21h
- code ends
- end start
复制代码 |