-
-
[旧帖]
[原创]关于汇编实现32相加的问题
0.00雪花
-
发表于:
2007-4-6 07:48
4328
-
[旧帖] [原创]关于汇编实现32相加的问题
0.00雪花
code segment
assume cs:code
start:
mov eax,01234567890123456789012345678901h
mov ebx,12345678901234567890123456789012h
add ebx,eax
lahf
cmp al,10000000h
jbg oveflow
push ebx
mov ax,4c00h
int 21h
oveflow: push 1
push ebx
mov ax,4c00h
int 21h
code ends
end start
报错内容:
add32.ASM(4): error A2009: Symbol not defined: EAX
add32.ASM(5): error A2009: Symbol not defined: EBX
add32.ASM(6): error A2009: Symbol not defined: EBX
add32.ASM(8): error A2029: Division by 0 or overflow
add32.ASM(9): error A2105: Expected: instruction or
add32.ASM(10): error A2009: Symbol not defined: EBX
add32.ASM(13): error A2006: Phase error between pass
add32.ASM(14): error A2009: Symbol not defined: EBX
愣是不明白哪里错了
呵呵
还望大家指教
不胜感激
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课