From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-05-22 21:10:00
On Wed, May 22, 2002 at 12:48:43PM -0400, Greg King wrote: > That solution will be easier to do, after ld65's configure-scripts are > "expanded." Instead of providing the minimum zero-page space that is needed > by the compiler, they should "allocate" the maximum contiguous space > that is not used outside of the program. For example, "c64.cfg" should say, > > "ZP: start = $02, size = $8E, type = rw, define = yes;" > > (that is all of BASIC's space). Then, files can .reserve (additional) .zeropage > variables, in the same portable way that they define .bss variables (ld65 will > set their addresses). (The start-up file must use __ZP_START__ and __ZP_LAST__ > when swapping the zero-page.) That's a good idea, but nothing prevents an author from doing so. Just use a slightly modified linker config and a change the startup module. I don't like it as a general solution, because it is not possible to allocate an unknown amount of storage, so the routines that swap the zero page locations in the startup file and in the break handler (debugging support) will always have to allocate the maximum space. Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-05-22 21:09:59 CEST