code	segment word public
assume	cs:code
public _putc
_putc:
; Writes character to STDOUT using DOS
        push    bp
        mov     bp,sp
        push    dx
        mov     ah,2
        mov     dl,byte ptr [bp+4]
        int     21h
        pop     dx
        pop     bp
        xor     ax,ax  ; currently no error checking performed, so
                       ; let's return "OK"
        ret     2
code ends
end
