|
|
#5
gaozilong2015-07-04 00:13
;假设十进制的数20
mov ax,0x7c0
mov ds,ax
mov ax,0xb800
mov es,ax
mov ax,0
mov ss,ax
mov sp,ax
mov ax,20
mov bx,0x02
xor dx,dx
@1:
inc cx
div bx
push dx
cmp ax,0
jnz @1
xor di,di
@2:
pop ax
add al.0x30
mov [es:di],al
inc di
mov [es:di],0x07
inc di
loop @2
jmp near $
times 510-($-$$) db 0
db 0x55,0xaa
|