|
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...
MACRO LJSR %1
jsr %1 - $1000
MEND
Then you just go LJSR beatBox
Not ideal techniques, I know.
-
Andrew Davie - adavie@xxxxxxxxxxx
TwoHeaded Software - www.2headed.com
----- 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
$1xxx.
>
> 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 http://www.biglist.com/lists/stella/archives/
> Unsub & more at http://www.biglist.com/lists/stella/
>
>
----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [stella] Dealing with 8k in DAS, Nicolás Olhaberry | Thread | [stella] Re: Alpha Demo, cybergoth |
| RE: [stella] Dealing with 8k in DAS, Nicolás Olhaberry | Date | Re: [stella] Dealing with 8k in DAS, Thomas Jentzsch |
| Month |