From: Greg King Date: Sat, 13 Dec 2014 14:52:39 +0000 (-0500) Subject: Used an easier-to-remember way of creating a program that uses graphics RAM for other... X-Git-Tag: V2.15~26^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9df576fa6e894a2d6321084dd5423549b5176ba;p=cc65 Used an easier-to-remember way of creating a program that uses graphics RAM for other purposes. --- diff --git a/cfg/atmos.cfg b/cfg/atmos.cfg index 062711b96..691bd467d 100644 --- a/cfg/atmos.cfg +++ b/cfg/atmos.cfg @@ -2,10 +2,10 @@ SYMBOLS { __TAPEHDR__: type = import; __BASHDR__: type = import; __PROGFLAG__: type = weak, value = $00; # $00=BASIC, $80=machine code - __AUTORUN__: type = weak, value = $00; # $C7=run, $00=only load + __AUTORUN__: type = weak, value = $00; # $00=only load, $C7=run __STACKSIZE__: type = weak, value = $0800; # 2K stack - __RAMEND__: type = weak, value = $9800; # graphics RAM not grabbed -# __RAMEND__: type = weak, value = $B400; # graphics RAM grabbed + __GRAB__: type = weak, value = 0; # 0=don't grab graphics RAM, 1=grab graphics RAM + __RAMEND__: type = weak, value = $9800 + $1C00 * __GRAB__; } MEMORY { ZP: file = "", define = yes, start = $00E2, size = $001A; diff --git a/doc/atmos.sgml b/doc/atmos.sgml index a9d59a407..913e50ed7 100644 --- a/doc/atmos.sgml +++ b/doc/atmos.sgml @@ -7,7 +7,7 @@ , , -2014-12-03 +2014-12-05 An overview over the Atmos runtime system as it is implemented for the cc65 C @@ -50,9 +50,9 @@ In the standard setup, cc65-generated programs use the memory from available. ROM calls are possible without further precautions. If your program needs more memory, and it won't use TGI graphics, then you can -use the ld65 command-line option, - Access to the VIA (versatile interface adapter) chip is available via the + Access to the VIA (Versatile Interface Adapter) chip is available via the

@@ -217,7 +217,7 @@ following functions (and a few others): They are defined to be FUNCT + a number key. -Capitals Lock

+Capitals lock

The keyboard's "CAPS Lock" mode is turned off while the program is running. The previous mode (usually, CAPS Lock turned on [because Oric BASIC keywords @@ -246,6 +246,15 @@ supported directly by BASIC, the following syntax was chosen: +Automatic starting

+ +Usually, a cc65-built program just will sit quietly in memory, after it is +CLOADed. It waits for you to start it (by typing BASIC's Interrupts

The runtime for the Atmos uses routines marked as