题目:
(1)编程,向内存0:200~0:23 F 依次传送数据0~63(3FH)
(2)编程,向内存0:200~0:23 F 依次传送数据0~63(3FH),程序中只能使用9条指令,9条指令中包括" mov ax ,4c00h"和" int 21h"。
从0~63 一共63-0+1=64次-->循环64次
assume cs:code
code segment
mov ax,20h
mov ds,ax
mov bl,0
mov cx,40h
s:mov [bx],bl
inc bl
loop s
mov ax,4c00h
int 21h
code ends
en
t命令执行:
d命令查看结果
附原书第一问答案:
assume cs:codesg
codesg segment
mov ax,0020h
mov ds,ax
mov bx,0
mov dl,0
mov cx,40h
s: mov [bx],dl
inc dl
inc bx
loop s
mov ax,4c00h
int 21h
codesg ends
end