[cc65] Bank Switching on NES

From: newsclan(zhblue) <newsclan1gmail.com>
Date: 2009-03-12 05:32:48
Hi,
i found this old thread on bank switching,but it makes it quite clean on the theory,but i just need an sample on bank switching.
http://www.cc65.org/mailarchive/2002-10/1604.html


i have a lot of const char [] to store in PRGROM.
i guess it should work like this, but how ?

1.use ld65 memory config file to define a memory map (how if i use MMC1),add more bank ROMs in to the config file.
2.use #pragma XXXXX ( what exectly should be written?) 
   to force array value code into certain Segment which defined by the 1st step
3.adding code of bank switching before using data in a certain bank.(combined the thread and the MMC1 reference)

can anyone help? 

thanks
zhblue N‹§²æìr¸›yúèšØ^–+-±éÝ™¨¥¶‰šŽŠÝ¢j&ºÊ·«y×°¶¬¶¸§‚éì¹»®&ÞqιŠ{ayºʇí…éš
Received on Thu Mar 12 05:32:22 2009

This archive was generated by hypermail 2.1.8 : 2009-03-12 05:32:25 CET