Re: [cc65] ca65 small suggestion (actually two)

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2008-02-19 23:36:18
On Tue, Feb 19, 2008 at 11:23:26PM +0100, silverdr@inet.com.pl wrote:
> Yes... especially that it seems that the newer machines got new
> routine names and this would generate the same confusion for them as
> it is now for (some of) the C64 programmers... hm but (out of
> curiosity) do the other archs use e.g. kernal definitions from the c64
> subdirectory? Does this make sense to do a search'n replace within the
> limits of the appropriate architecture subdir? Would this break
> something outside of this particular subdir?

Yes. The names are exported and used within the cbm subdirectory to implement
file i/o and similar things common for all Commodore machines. Actually not
all routines are direct kernal entry points - the BSOUT label for the Plus/4
for example points to a routine in low memory that switches in the kernal ROM,
calls the kernal, and switches back to a memory configuration without the
kernal. For the CBM610 and 510, some routines are implemented directly by the
runtime, since calling the kernal means a far call across banks which is
rather costly.

Because of all this, I would rather treat the identifiers as implentation
details of the runtime that just happen to have similar names as some kernal
routines.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Feb 19 23:36:37 2008

This archive was generated by hypermail 2.1.8 : 2008-02-19 23:36:40 CET