@@ 汇编小程序两行指令有误,请高手帮忙看看,谢谢!!@@还是有错,哪位再帮我看看,谢谢!!
datarea segment
status db 20 dup(?)
datarea ends
code segment
main proc far
assume cs:code,ds:datarea
start:
;set up stack for return
push ds
sub ax,ax
push ax
;set ds register to current data segment
mov ax,datarea
mov ds,ax
;main part of program goes here
mov al,status
and al,2ah
jz rountine_4
xor al,2ah
jz rountine_1
bsf bl,al ;这两行注释掉就没错了,但看不出有什么错来,请大家帮忙看看,指点指点,谢谢啦!
bsr cl,al ;
cmp bl,cl
je rountine_2
rountine_3:
mov dl,'1'
mov ah,2
int 21h
rountine_2:
mov dl,'2'
mov ah,2
int 21h
rountine_1:
mov dl,'3'
mov ah,2
int 21h
rountine_4:
mov dl,'0'
mov ah,2
int 21h
main endp
code ends
end start
加上
.model small
.386
并把bl al cl 换成bx ax cx 后还是有错
不能生成可执行文件
出来了这几句:
pos:004ce record type 8b
请大家帮忙看下啦 谢谢啦
[解决办法]