From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-02-26 23:55:11
Hi! On Wed, Feb 26, 2003 at 11:40:44PM +0100, Debrune Jérôme wrote: > It compile but program crashes (In 2.8.0 it was OK) crt0.s in 2.9.0 should be > ok. But, the code is executed craply by Atmos... I can't find the problem ... > > Is there some major changes in 2.9.0 in crt0.s or atmos.inc (ld65) which could > break atmos target ? The following changes have been applied to the original version: 1. The zeropage variables have been moved to a separate file which is linked to the application. 2. Additional STARTUP and LOWCODE segments have been introduced in the linker config, and the code from crt0.s has been placed into the STARTUP segment. With the exception that 1. fixes a bug that has been in the zeropage allocations for most platforms, both changes should be transparent and the generated code should be identical to the original version. The bug was that one zeropage variable was declared to have two bytes while four were actually needed. As a result, new programs need two bytes more zeropage memory. However, the zeropage space allocated in the linker config was correct, so these two bytes were allocated but unused before. Since there are no Atmos libraries that come with cc65, I do assume that you're using some other code to generate working programs. There's also a chance that this other code has problems with the changed segments and/or zeropage alignment. 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 : 2003-02-26 23:55:26 CET