编程,向内存0:200~0:23F依次传送数据0~63(3FH)。
代码:
assume cs:code code segment mov ax,0020h mov ds,ax mov bx,0 mov cx,40h s: mov ds:[bx],bx inc bx loop s mov ax,4c00h int 21h code ends end
运行结果检查:
补全程序,该程序实现的功能是将“mov ax, 4c00h”之前的指令复制到内存0:200处,补全程序,上机调试,跟踪运行结果。
代码:
assume cs:code code segment mov ax,cs mov ds,ax mov ax,0020h mov es,ax mov bx,0 mov cx,17h s: mov al,[bx] mov es:[bx],al inc bx loop s mov ax,4c00h int 21h code ends end
实验结果: