Re: [cc65] interruptor from C?

From: Karri Kaksonen <karri1sipo.fi>
Date: 2004-10-12 21:09:53
On Tue, 12 Oct 2004, Shawn Jefferson wrote:
> I can't remember, but if swap_buffers uses any of the
> zero-page variables (ptr1-3, tmp1-3, etc...) that
> might cause some problems...

Actually I believe that all those routines need to be rewritten using the
tgi-module. Actually swap_buffers get split into two parts and there is no
need for any zeropage variables anymore. It looks something like this:

PAGES .byte __SCREEN_SIZE__/8160

SETDRAWPAGE:
    beq L1
    lda #<__SCREEN_START__+8160
    ldx #>__SCREEN_START__+8160
    bra L2
L1: lda #<__SCREEN_START__
    ldx #>__SCREEN_START__
L2: sta DISPADRL
    stx DISPADRH
    rts

The good thing is that the linker takes care of a lot of stuff.

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Oct 12 21:02:41 2004

This archive was generated by hypermail 2.1.8 : 2004-10-12 21:02:50 CEST