[cc65] some questions

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2002-03-15 22:40:52


Hello all,

I'm new to the list, and new to cc65 (just made the first experiences).
I'm going to write an engine for an adventure on the C64, and I'm a little 
insecure if I should try writing it in C, or stay with assembler. 

Here are the main questions I have: 

1- How far can I control the memory usage of the compiled C program.
   For instance, if my compiled program fits into $2000 bytes, and
   I reserve $1000 bytes for the heap, is it possible to place the
   compiled program and its heap to $2000-$5000, so that the other
   memory areas remain untouched?

2- Can I limit zeropage usage in a similar way, so that only addresses
   between e.g. $80 and $ff are used by the C program? 
  (The call-stack is located in the zeropage, right?)

3- I'd like to combine the C program with independent assembler routines
  (mouse driver, loader, raster IRQs, music...) - has anyone used such 
   routines in combination with a C program on the 64?

4- Has anyone successfully used the 64's rom routines for file access and
   keyboard input?

Please, don't be harsh if the questions are a little dumb - as I said,
I'm still learning.

Greetings,
Dizzy Devil/Out of Order

----------------------------------------------------------------------
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-03-15 22:41:08 CET