From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-01-07 15:11:38
Hi! On Sat, Jan 06, 2001 at 04:17:39PM -0500, troy silvey wrote: > That would be a great move if you don't want to use the routines. > I think I'lll try to asemble my code to an .s file, modify the source > with those lines, and see what kind of smoke comes out :) > I bet CC65 won't like it. Kernal calls are quite rare within the C and runtime library. If you're programming something like a game that does not rely on kernal support anyway, switching off the kernal would be a possibility. In general, you cannot use file routines, and some conio functions may also call the kernal (to fetch a character from the keycode queue). So without the kernal, you have to supply your own I/O stuff, interrupt handler and so on. I wouldn't say working without the kernal is trivial, but this is not caused by cc65 or the runtime libs. I would estimate that it's not more or less difficult than writing programs without kernal support in assembler. Instead of modifying compiler generated source, I would suggest to use a changed startup file. Get the original startup file from the source package. Instead of banking out just the BASIC ROM (as it is done in the standard startup file), bank out both, kernal and BASIC. You do also need a modified linker configuration to use the extra memory. Just get the builtin linker config from the source package, modify it according to your needs and use the -C switch for the linker to specify the new configuration file. 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 : 2001-12-14 22:05:38 CET