On Sun, 17 Jul 2005, Ullrich von Bassewitz wrote: > > SYMBOLS { > __GRAPHICS_MEMORY__ = 7123; > } > > that is subtracted from high memory before setting the available memory for > the cc65 program. This would remove the most code needed in the initscrmem > constructor together with the table. And it would be usable for other things > besides graphics memory (in this case, the symbol should probably get another > name). It would cost 5 bytes in crt0.s but save about 80 for initscrmem. > Another two bytes could be saved if initsp is not made a constructor but > inlined in the startup code. Since it's always called, there's no need to make > it a constructor. > > This symbol can also be used if a graphics driver is loaded. Of course, the > necessary values for a driver must go into the docs, but once this is done, > it's almost as convenient to use this method instead of _graphmode_used. Now I understand :-) This looks like a very nice idea. I will change the Atari runtime accordingly. Is there anyone on this list which is currently using the _graphmode_used method? How should the symbol be called? I'd suggest __RESERVED_MEMORY__, as the memory area doesn't need to be used for graphics only. regards, chris ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Jul 17 21:50:17 2005
This archive was generated by hypermail 2.1.8 : 2005-07-17 21:50:20 CEST