鱼C论坛

 找回密码
 立即注册
查看: 4203|回复: 0

[汇编作业] 检测点9.2 检测点9.3

[复制链接]
发表于 2020-4-26 13:47:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
9.2
  1. assume cs:code

  2. code segment
  3. start:
  4.                 mov ax, 2000h
  5.                 mov ds, ax
  6.                 mov bx, 0
  7.                
  8.                 s:
  9.                         mov cx, 0
  10.                         mov cl, [bx]
  11.                         jcxz ok
  12.                         inc bx
  13.                 jmp short s
  14.                
  15.                 ok:        mov dx, bx
  16.                        
  17.                 mov ax, 4c00h
  18.                 int 21h
  19. code ends

  20. end start
复制代码


9.3
  1. assume cs:code

  2. code segment
  3. start:
  4.                 mov ax, 2000h
  5.                 mov ds, ax
  6.                 mov bx, 0
  7.                
  8.                 s:
  9.                         mov cl, [bx]
  10.                         mov ch, 0
  11.                         inc cx
  12.                         inc bx
  13.                 loop s
  14.                
  15.                 ok:        dec bx
  16.                         mov dx, bx
  17.                        
  18.                 mov ax, 4c00h
  19.                 int 21h
  20. code ends

  21. end start
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-6-9 09:28

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表