Author Topic: SGX demo's  (Read 889 times)

exodus

  • Hero Member
  • *****
  • Posts: 868
Re: SGX demo's
« Reply #15 on: November 11, 2009, 01:51:28 PM »
welllllll please do!?

shubibiman

  • Hero Member
  • *****
  • Posts: 1832
Re: SGX demo's
« Reply #16 on: November 11, 2009, 06:38:08 PM »
And how about an SGX/ACD game?
Self proclamed Aldynes World Champion

nodtveidt

  • Guest
Re: SGX demo's
« Reply #17 on: November 11, 2009, 10:19:28 PM »
Naturally. :D Of course, so few people own Supergrafx units, and even fewer own RAU-30's (I own one though I don't have the SGX yet) so it'd be a big emulation thing mainly, and most everyone would have to learn to like Mednafen, lol. :D pceas needs some tweaks before proper SGX software can be written though, since it limits everything to 8k and the SGX has 32k to work with.

shubibiman

  • Hero Member
  • *****
  • Posts: 1832
Re: SGX demo's
« Reply #18 on: November 12, 2009, 01:08:04 AM »
pceas?
Self proclamed Aldynes World Champion

peperocket

  • Guest
Re: SGX demo's
« Reply #19 on: November 12, 2009, 01:14:08 AM »
PCEAS is the pc engine assembler.

Tom

  • Guest
Re: SGX demo's
« Reply #20 on: November 12, 2009, 05:28:30 AM »
pceas needs some tweaks before proper SGX software can be written though, since it limits everything to 8k and the SGX has 32k to work with.

 Yeah, it limits which banks .BSS and .ZP define in. ZP get's this funky bank name of $F0 in the symbol file, but it's still $F8 like BSS. Even CD projects don't allow you to change .BSS or .ZP either. I'm not sure if BSS crosses an 8k page though, it might since it's just an address counter/incrementor. So if you wanted 16k of static mapped .BSS space, then not too big of a deal.

 BSS allows you to modularize your code, so you can define ram/variables inside an external lib or function(s) without worrying about ram label address conflictions with main or other external/internal code ... and/or having to manually do it - keep track of it yourself (which I've seen other people do on other systems, what a pain in the ass and convoluted method).

 With SGX and CD ram, you have to do just that. Manually keep track of variables addresses banks other than $F8. Though, I've heard the RS directive might be usable for that sort of thing (haven't used it).


 Note: Mednafen now requires you to change SGX roms from .pce to .sgx extension to run them. Thought there is a way for force SGX mode on at all times in the config file (in case you come across some SGX CD demo). Magic Engine now allows enabling of SGX support for any rom, but it lacks hardware emulation modes of the SGX (AFAIK, it still has hacks for it's real SGX game emulation).
« Last Edit: November 12, 2009, 05:31:08 AM by Tom »