dseg segment
Num db 12h,9ah,68h
dseg ends
cseg segmeng
assume cs:cseg,ds:dseg
Start:
mov ax,dseg
mov ds,ax
mov al,Num
cmp al,Num[1]
jae Skip1
mov dl,al
mov al,Num[1]
mov Num[1],dl
Skip1: cmp al,Num[2]
jae Skip2
mov dl,al
mov al,Num[2]
mov Num[2],dl
Skip2: mov Num,al
mov al,Num[1]
cmp al,Num[2]
jae Done
mov dl,Num[2]
mov Num[2],al
mov Num[1],dl
Done:
mov ah,4ch
int 21h
cseg ends
end Start
我的问题是,编译生不成OBJ文件,检查了几次,代码没有错误,请高手赐教。
2 个解决方案
#1
cseg segmen
g
#2
哎哟,我天,这低级错误犯的。。。。十分不好意思。
#1
cseg segmen
g
#2
哎哟,我天,这低级错误犯的。。。。十分不好意思。