]> git.sur5r.net Git - cc65/blobdiff - doc/cbm610.sgml
Ignore start address in cbm_opendir. Rearrange the code somewhat to make it
[cc65] / doc / cbm610.sgml
index 5a4d18cfb64ab759ddc73536244ae486b0005650..a01cd9bc60a548170a0f09931c11ccf8c2eab73b 100644 (file)
@@ -48,10 +48,9 @@ config.
 <sect>Memory layout<p>
 
 cc65 generated programs for the Commodore 610 run in bank 1, the memory bank
-reserved for BASIC programs. Since there are no ROMs in this memory bank, the
-program has almost full 64K for its own. A disadvantage is that kernal
-subroutines cannot be called (at least not in a fast and effective manner), so
-the runtime has replace kernal functionality.
+reserved for BASIC programs. Since there are no ROMs in this memory bank,
+kernal subroutines are either emulated or called by bank switching, which has
+the disadvantage of being slow compared to a direct call.
 
 The default memory configuration for the CBM 610 allocates all memory between
 &dollar;0002 and &dollar;FFF0 in bank 1 for the compiled program. Some space
@@ -249,7 +248,13 @@ Command line argument passing is currently not supported for the Commodore
 610.
 
 
-<sect1>Interrupts<p>
+<sect1>Program return code<p>
+
+The program return code (low byte) is passed back to BASIC by use of the
+<tt/ST/ variable.
+
+
+<sect1>Interrupt handlers<p>
 
 The runtime for the Commodore 610 uses routines marked as <tt/.CONDES/ type 2
 for interrupt handlers. Such routines must be written as simple machine