Compiling data to specific memory location #493
Replies: 2 comments
-
Hallo!
HERE is the same as * in assembly.
You can do e.g. ”$c000 to here” to target $c000.
Cheers
…On Sun, 18 Dec 2022 at 07:27, amuletofyendor ***@***.***> wrote:
Hi, noob question here... Is it possible to compile data (custom
characters, for example) to a specific memory location? I'm looking for an
equivalent to *=$2000 in assembler.
The only way I can think of currently is to use something like:
header my-data $1E c, $1E c, ... (many more bytes)
and then copy that data to the correct location. Now I have "my-data"
taking up memory in my program when it's no longer needed.
Or is this what the "marker" word is for? (i.e. to delete the data from
"my-word" onward once it's not needed).
—
Reply to this email directly, view it on GitHub
<#493>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAY34O4RQL5ZSOBH6WDPAZDWN2VGFANCNFSM6AAAAAATCLJOWU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IanWitham
-
Thank-you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, noob question here... Is it possible to compile data (custom characters, for example) to a specific memory location? I'm looking for an equivalent to
*=$2000
in assembler.The only way I can think of currently is to use something like:
header my-data $1E c, $1E c, ... (many more bytes)
and then copy that data to the correct location. Now I have "my-data" taking up memory in my program when it's no longer needed.
Or is this what the "marker" word is for? (i.e. to delete the data from "my-word" onward once it's not needed).
Beta Was this translation helpful? Give feedback.
All reactions