- Joined: 17 Jun 2017
- Posts: 19
|
Fixed RAM positions
Posted: Tue Feb 11, 2020 9:14 pm
|
Hi there!
It's been a while since I used WLA-DX so I'm a little rusty. I'm using a library (GSLib as it happens) that wants me to define a location in RAM to store its variables. I'd ideally like to use ramsections for dynamic placement, so I've tried the following:
.ramsection "gslib" slot 2
gslib .DSB 263
.ends
; Required by lib
.define GSL_RAM gslib
This however gives me an 'Unresolved reference to "gslib"' error. Is there a way to get the above working and if not would there be a way to give it a static value while preventing other ramsections from utilising that space?
Thanks!
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14741
- Location: London
|
Posted: Tue Feb 11, 2020 9:57 pm
|
You should remove the dot before DSB else it won't allocate space.
Did you try just calling the ramsection entry GSL_RAM?
|
- Joined: 17 Jun 2017
- Posts: 19
|
Posted: Wed Feb 12, 2020 5:57 pm
|
Ah, of course! That seems to be working fine now thanks! :)
|