lab8from 2022.3.6

嘶,DOS debug编译进入程序 发现报错, 不给进, 没排查出问题, 先暂时放一放

  1. assume cs:codesg
  2. codesg segment
  3. mov ax,4c00h
  4. int 21h
  5. start: mov ax,0
  6. s: nop
  7. nop
  8. mov di,offset s
  9. mov si,offset s2
  10. mov ax,cs:[si]
  11. mov cs:[di],ax
  12. s0: jmp short s
  13. s1: mov ax,0
  14. int 21h
  15. mov ax,0
  16. s2: jmp short s1
  17. nop
  18. codesg ends
  19. end start