Re: [cc65] 3dmaze portability

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-10-18 23:35:36
Hi!

On Sun, Oct 18, 2009 at 11:28:52PM +0200, Oliver Schmidt wrote:
> Trying to rephrase in my words to be sure: By default clipping is done
> in the wrapper. The only exception I'm aware of is tgi_circle.

Yes, but I won't phrase it this way. There may be other functions in the
future where it doesn't make sense to clip in the wrapper.

> I found the tgi_bar clipping code in libsrc/tgi/tgi_bar.s but where's
> the clipping code for tgi_[s|g]etpixel? I didn't find it in
> libsrc/tgi/tgi_[s|g]etpixel.s

It's well hidden in a subroutine called from one of the four lines below:-)

------------------------ source code of tgi_setpixel.s ----------------------

        jsr     tgi_getset      ; Pop args, check range
        bcs     @L9
        jmp     tgi_setpixel    ; Call the driver
@L9:    rts

-----------------------------------------------------------------------------

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 18 23:38:40 2009

This archive was generated by hypermail 2.1.8 : 2009-10-18 23:38:43 CEST