首 页健康生活新 闻留 言骗 子美女图片网络安全论 坛问吧注册码大全bt资源
张筱雨人体艺术   汤芳人体艺术  汤加丽人体艺术  石靖人体艺术   刘亦菲人体艺术   汤唯人体艺术  张柏芝人体艺术   人体艺术摄影
人体艺术摄影        BODY ART PHOTOGRAPHY
                                           Human essence of art, the human feelings of the perfect lens
首页
您当前的位置:地球村问吧电脑技术编程语言 → 问吧内容 设为首页   加入收藏   联系我们
请问汇编2进制转16进制怎么办(谢谢)
作者:meilibao  来源:地球村  发布时间:2007-8-20 9:59:45
Body art from the West, male body is mainly a reflection of the strength of the United States. While the female body is mainly a reflection of the kind of a female-specific negative of tender.
Body art is static human form, does not contain sexual intercourse is exposed genitals or other to tease of limb movements. Good photographs focus on the human body is the use of light and shadow. The body was naked from the arts, the human body art is not carnal desire , vulgar. Accurately speaking, and now, the "body art" is not very precise. Art classification is based on the auditory,
请问汇编2进制转16进制怎么办(谢谢)
悬赏分:20 - 解决时间:2007-8-18 01:54
举例 比如现在DX中有个16位2进制数 不知道具体是多少
现在需要将他转换成16进制存入ES中 应该怎么实现啊?
问题补充:请用8086汇编 WIN32小弟还不懂
忘了说:
这个2进制数是从键盘输入的 存放在DX中
而转化为16今之后存入ES是要输出到屏幕的
输入输出的过程就不需要了
我只想看看转换的算法
好像要用到移位指令是不是?
提问者:aiminick - 试用期 一级
最佳答案
16位2进制数,包含四个16进制位,需要四个字节存储
存入ES段中,偏移位DI的位置


mov bx,4
next:
mov ax,000fh
and ax,dx
call btoh
stosb
mov cx,4
mov ax,dx
ror ax,cx
mov dx,ax
dec bx
jnz next
halt


btoh:
cmp ax,9
ja atof
add ax,'0'
ret
atof:
sub ax,10
add ax,'A'
ret
回答者:dianzix - 高级经理 六级 8-18 00:29
您觉得最佳答案好不好?目前有 1 个人评价

100% (1)

0% (0)
其他回答
共 2 条
[ ] [返回上一页] [打 印]
Copyright © 2007 Diqiuc.Com. All Rights Reserved .豫ICP备07001840 Powered by Diqiuc.Com