|
Subject: [stella] DASM question From: Gene Johannsen <gej@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 14 Sep 1999 18:47:58 -0700 |
Hey:
I'm writing code to copy a chunk of ROM into RAM. I'm not sure yet how
big the chunk will be, so I'm trying to make dasm compute the size of
the chunk and reserve the memory, like this:
SEG.U ram
ORG $80
ramchunk ds [endchunk - startchunk + 1]
variable ds 1 ; These two lines will give me
value ds 1 ; Label Mismatch errors
.
.
.
SEG code
ORG $F000
.
.
.
LDX #[endchunk - startchunk]
copyloop
LDA chunk,X
STA ramchunk,X
DEX
BPL copyloop
.
.
.
startchunk
.byte 1, 2, 3, 4, 5, 6 ...
endchunk
I get Label Mismatch errors on lines that obviously do work. I get no
error on the line with the expression on it.
Can anyone help?
gene
--
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] A question about ROR a, Matthew W. Miller | Thread | Re: [stella] DASM question, Eckhard Stolberg |
| Re: [stella] A question about ROR a, Andrew Davie | Date | Re: [stella] A question about ROR a, Matthew W. Miller |
| Month |