.model tiny .code .486 org 100h start: mov ax, 5 call binout call crlf mov ax, 50 call binout call crlf mov ax, 9000 call binout crlf: mov al, 0Dh ;new line int 29h mov al, 0Ah int 29h ret binout: push ax shr ax, 1 je bo10 call binout bo10: pop ax and al, 01h or al, '0' int 29h ;display character ret end start