Re: [stella] Dealing with 8k in DASM

Subject: Re: [stella] Dealing with 8k in DASM
From: "Andrew Davie" <adavie@xxxxxxxxxxx>
Date: Thu, 24 Jan 2002 16:46:15 +1100
How about defining equates at the top of your file for your equates?

OFFSET        equ $1000                        ; only need to change this

BeatBox_l     equ beatBox - OFFSET
routine2_l        equ routine2 - OFFSET

Then it would be   jsr BeatBox_l,   jsr routine2_l  etc.

alternatively you could have a jsr macro...  don't recall the format of the
macros, but something like...

    jsr %1 - $1000

Then you just go    LJSR beatBox

Not ideal techniques, I know.

Andrew Davie - adavie@xxxxxxxxxxx
TwoHeaded Software -

----- Original Message -----
From: "Paul Slocum" <paul-stella@xxxxxxxxxxxxxx>
To: <stella@xxxxxxxxxxx>
Sent: Thursday, January 24, 2002 3:50 PM
Subject: [stella] Dealing with 8k in DASM

> I'm now using 8k for my Synthcart with F8 bankswitching.  I have the
> bankswitching working okay, but the way I'm doing things is a bit awkward.
> I have the first 4k bank in $1000-$1FFF and the second bank in
> $2000-$2FFF.  The problem is that when I use labels in the second bank,
> they of course translate to $2xxx, but the Atari doesn't seem to like
> that.  I have to subtract $1000 from every label reference to make it
> So say I have the function beatBox in the second bank.  When I call it, I
> have to say:
> JSR beatBox-$1000
> It works fine this way, but it's easy to make mistakes and difficult to
> move functions between banks.  Surely there's a more elegant way to handle
> this.
> -Paul
> --------------------------------------------------------------------------
> Archives (includes files) at
> Unsub & more at

Archives (includes files) at
Unsub & more at

Current Thread