我爱Aspx >> C#.Net >> 求汇编实现三位十进制的加法add ax,bx ;
mov dx,ax ;
pop ax ; pop the quotient from stack
cmp ax,0d ;compare with zero
je exit2 ; if equ then exit
push ax ;else save it back to the stack
mov ax,cx ;make cx mul by 10h
mov cx,10h
mul cx
mov cx,ax
jmp repeat
exit2:
mov bx,dx
ret
hexibin endp
第10楼. 由 qinzhenzhou 于 2007-6-3 23:55:04 发表
今晚我再编译了一下,果真有错,以下已做了修正!应该没有问题了!
data segment
temp dw ?
data ends
decihex segment
assume cs:decihex,ds:data
main proc far
nexts:
call decibin
mov temp,bx
call decibin
mov ax,temp
add bx,ax
call hexibin
call crlf
call binihex
call crlf
jmp nexts
main endp
;-----------------------------------------------------------------------
Ҷƪл˵?
有一个问题,帮忙解决一下,谢谢..[06-12]
急!高手指点:为何在不同的 Lin..[06-12]
高分求助!!txt文件去空格问题![06-12]
有没有类似于过滤器的东东,但是在..[06-12]
菜单问题[06-12]
默认网关丢失的问题[06-12]
那位大哥能给小弟一些VFP的常用函..[06-12]
如何在jsp中编写判断语句判断时间..[06-12]
如何通过注册表设置系统的环境变..[06-12]
一删除桌面上的东西,系统cpu占有..[06-12]