将二进制以八进制形式输出
******************************************************
data segment
X dw 0000000000001100b
data ends
code segment
assume cs:code, ds:data
main proc far
start:
push ds
mov ax, 0
push ax
mov ax, data
mov ds, ax
mov bx, 0000000000000111b;编译器此行以及此行以下的三行有错误(不可识别字符)
mov cl, -3
mov ch, 0
mov dh, 6
loop1:
mov ax, X
add cl, 3
shr ax, cl
and ax, bx
add ax, 30h
and ah, 00h
push ax
inc ch
dec dh
jnz loop1
loop2:
pop ax
mov dl, al
mov ah, 2
int 21h
dec ch
jnz loop2
ret
main endp
code ends
end start
************************************请各位指点**************************