[stella] Can DASM do this?

Subject: [stella] Can DASM do this?
From: "John K. Harvey" <jkharvey@xxxxxxxxxxx>
Date: Sat, 04 Aug 2001 10:57:27 -0500
Hi all,

Gotta question about DASM for ya.

Say I wanted to set up an absolute address as an equate.


Now, say I want to reference the upper byte/loer byte, but by using the
equate instead of calling it explicitly.  Can it be done?


.byte	((ADDRESS & 00FF)
.byte	((ADDRESS & $FF00)>>4)

instead of

.byte	$3E,$F8

I know dasm can add/subtract from immediate values/constants, but I don't
think this can be done, so I figured I'd check.  Sometimes it's nice to
have to only change one equate instead of tracing through code to find
every instance of this that's changed.

Any ideas?

Thank you all,

Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread