"PUSHA" becomes "DB 60"???
Posted: Mon May 16, 2011 8:44 pm
this is my code:
flat assembler gave me a strange .bin file, my "PUSHA" had become "DB 60".
anybody knows why?
Code: Select all
use16
jmp start
;print byte in AL=============================================================
print_byte: pusha
push ax ;save AL
and al,0f0h ;get high nibble
mov cl,4
shr al,cl
mov bl,48
cmp al,0ah
jl print_hi_nib
mov bl,55
print_hi_nib: add al,bl
mov ah,0eh
xor bh,bh
int 10h
pop ax ;get back AL
and al,0fh ;get low nibble
mov bl,48
cmp al,0ah
jl print_lo_nib
mov bl,55
print_lo_nib: add al,bl
mov ah,0eh
xor bh,bh
int 10h
popa
ret......................................
anybody knows why?