Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Fixed RAM positions

Reply to topic
Author Message
  • Joined: 17 Jun 2017
  • Posts: 19
Reply with quote
Fixed RAM positions
Post 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!
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14741
  • Location: London
Reply with quote
Post 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?
  View user's profile Send private message Visit poster's website
  • Joined: 17 Jun 2017
  • Posts: 19
Reply with quote
Post Posted: Wed Feb 12, 2020 5:57 pm
Ah, of course! That seems to be working fine now thanks! :)
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!