Re: [cc65] ca65

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-11-26 14:52:23


On Tue, Nov 26, 2002 at 03:30:59PM +0200, Marko Mäkelä wrote:
> Hmm, does ca65 have a linker directive for reading the system time?

Yes, of course:-) [*] The .TIME pseudo variable will give you the current time
in the POSIX meaning (seconds since the Epoch). This may be used to embedd
"best before" dates your code:

        .if     .time > $3FC4AF1F
                .error "This code may not be used later than 2003-11-26"
        .endif

> The code in Veni Vidi Vic and cbmlink is better: it outputs 1 to 5 digits. :-)

This is an advantage when using an assembler without a linker: At least the
ld65 linker cannot change the code size in the linking stage. However, for the
VIC, the useful start addresses do all have less than 5 digits, so at least in
this case it's not really an advantage:-)

Regards


        Uz



[*] It's in the latest snapshot.
-- 
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.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-11-26 14:52:29 CET