编程:9条指令向0:200-0:23F依次传送0-63

assume cs:codesg
codesg segment
mov bx,0
mov ds,bx
mov bx,200H
mov cx,40H
s:mov ds:[bx],bx
inc bx
loop s
mov ax,4c00H
int 21H
codesg ends
end

 

补全:下列程序是讲mov ax,4c00H之前的指令复制到0:200处

assume cs:code

code segment

mov ax,cs  cs是第一条指令的起始处

mov ds,ax

mov ax,0020H

mov es,ax

mov bx,0

mov cx,17H //循环次数先用debug进入内存查看字节数然后再写

s:mov al,[bx]

mov es:[bx],al

inc bx

loop s

mov ax,4c00H

int 21H

code ends

end

a.复制的是什么,从哪里到哪里?

复制的是从cs:ip开始内存单元的数值

从cs:ip到0:200

b.复制的是什么,有多少字节?怎么知道有多少字节?

复制的是内存单元内容,17H , 先随意填写一个,然后用debug调试exe程序,载入内存后

用-u命令查看cs:ip,找到mov ax,4c00H的地址,即可知道有多少字节

相关文章:

  • 2021-04-04
  • 2021-12-28
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-08-12
  • 2022-02-20
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2021-12-22
  • 2021-08-31
  • 2021-04-13
  • 2021-05-31
相关资源
相似解决方案