24.试编制一个程序,把bx寄存器中的二进制数用十六进制数的形式在屏幕上显示出来
s1 segment stack
dw 100 dup(?) top label word s1 ends
s3 segment
assume cs:s3,ss:s1 main proc mov mov lea
mov mov rotate:
mov rol mov and add cmp jl add
printit:
mov mov int dec jnz
mov int
main endp s3 ends
end
far ax,s1 ss,ax sp,top bx,16 ch,4 cl,4 bx,cl al,bl al,0fh al,30h al,3ah printit al,7h dl,al ah,2 21h ch rotate ah,4ch 21h main