8086汇编语言

来源:百度知道 编辑:UC知道 时间:2024/05/24 08:13:35
编写一段程序,使AL的寄存器高3位取反,其余位不变。

;使AL的寄存器高3位取反,其余位不变
;入口参数:al
;出口参数:al,高3位取反之后的al
high3bitreverse proc
push bx
mov bl,al
not bl
or bl,1fh
or al,0e0h
and al,bl
pop bx
ret
high3bitreverse endp