汇编网首页登录博客注册
whos的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
文章收藏
友情链接

[2009-07-21 09:48] 把CH和CL中的二进制位依次交叉存入AX中。

点击查看原图
.model small

.code
 .startup
  mov ax,0
  mov cx,0ffh
  mov bl,1
  mov dx,1
  d:
  test cl,bl
  jz a
  or ax,dx
  a:
  test dx,1000000000000000b
  jnz next
  shl dx,1
  test ch,bl
  jz b
  or ax,dx
  b:
  test dx,1000000000000000b
  jnz next
  shl dx,1
  jmp d
 next:
 .exit...
阅读全文 | 评论次数(3) | 浏览次数(948) | 所属类型(默认类型)
页码数(1):  1