z nudy jsem to vyplodil, je to uplne obycejny prevod a vypis na obrazovku
[bits 16]
[org 0x100]
[section .data]
rady dw 10000, 1000, 100, 10, 1, 0
[section .text]
mov ax,0xAB10 ; v ax cislo 43792
mov si,rady
n_digit:
xor dx,dx ; is needed!
mov bx,[si]
or bx,bx
jz konec
div bx
push dx ; dx = mod po deleni
mov dx,ax
mov ah,2
add dl,30h ; posun v ascii tabulce
int 21h
pop ax ; v ax co nam zbylo, jedem dalsi rad
add si,byte 2
jmp n_digit
konec:
ret
48 bajtu a je to pomaly a mozna by to slo optimalizovat.. nevim proste to funguje :)