Hi again... Now that I can compile things (for z80), I want to add my 
own putchar and possibly getchar (unsure so far). Now, the source for it 
is in putchar.s and is:

        .area   _CODE
_putchar::
_putchar_rr_s::
        ld      hl,#2
        add     hl,sp

        ld      l,(hl)
        ld      a,#1
        rst     0x08

        ret

_putchar_rr_dbs::
        ld      l,e
        ld      a,#1
        rst     0x08

        ret
 
What I want to do is write the putchar routine in c for my particular 
hardware. I am unsure if this will work, however. also, I am unsure of 
what the above _rr_s and _rr_dbs are for???

Thanks for the help!

Kevin


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to