1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 06:28:57 +00:00
cc65/testcode/lib
Oliver Schmidt 855aceaba8 Added Apple II linker configs for programs including a hires screen.
The Apple II hires screen buffer is located at $2000 (and can't be moved). The usual way to get along with this is to load the cc65 program above the hires screen buffer at $4000. However, that means that it becomes difficult to make good use of the memory below the hires screen buffer. The simplest approach is to add that memory to the heap. But there are programs containing just lots of code and not much data. One could think of moving the code to the area below the hires screen after loading (like it is done with the code for the language card). But if the program is really large (and already contains code to be moved to the language card) it won't just fit into memory in the first place.

The alternative is to load the program at the usual $803 and have it "cover" the hires screen buffer. Of course the part of the program that actually "covers" the hires screen buffer mustn't contain anything necessary for the program. The downside of this approach is that the program file on disk contains 8kB that can't be used by the program. But instead of just containing zeros the program can as well contain a hires screen picture that can be displayed right after startup.

Now the user can have code loaded below the hires screen buffer by setting the code-name to LOWCODE. However, he needs to explicitly do so. Otherwise the memory below the hires screen is totally wasted.

Trivia: Allowing to do this hires screen buffer "covering" was the very reason to change tgi_init() to not clear the hires screen anymore.
2018-01-29 17:46:36 +01:00
..
apple2 Added Apple II linker configs for programs including a hires screen. 2018-01-29 17:46:36 +01:00
atari Made C's sizeof operator work with initialized void variables. 2017-03-12 14:41:32 -04:00
gamate rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
pce Removed joy_masks array. 2017-08-19 19:11:28 +02:00
.gitignore Fixed the c128 ram (bank 1) emd. 2015-11-29 23:04:23 -08:00
arg-test.c Added test programs for the exec() function. 2013-08-25 00:49:03 -04:00
atoi-test.c
clock.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
conio.c rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
cpeek-test.c Fixed typo. 2018-01-02 13:48:30 +01:00
cprintf.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cursor.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
deb.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dir-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
div-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
em-test.c Merge pull request #241 from blackystardust/c128-function-ram-emd 2016-02-27 18:08:55 +01:00
exec-test1.c Harmonized usage of "KB" and "cc65". 2014-03-30 22:10:37 +02:00
exec-test2.c Harmonized usage of "KB" and "cc65". 2014-03-30 22:10:37 +02:00
fileio-test.c
ft.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
getopt-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
getsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
heaptest.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
joy-test.c Removed joy_masks array. 2017-08-19 19:11:28 +02:00
moddiv-test.c Added a test program for division and modulo operation. 2011-01-11 17:19:16 +00:00
mouse-test.c Add testcode/lib/mouse-test.c. Rename samples/mousetest.c to mousedemo.c. 2017-02-13 22:48:34 +01:00
mul-test.c Fix line endings (CRLF -> LF) on all affected files. 2017-03-10 11:21:14 +01:00
posixio-test.c include unistd.h -- fix by Daniel Serpell 2009-11-25 17:59:55 +00:00
rename-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
scanf-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
seek.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
ser-test.c remove debug code 2013-12-06 20:53:49 +01:00
shift-test.c Added a test program to test the 16 bit shift ops. 2012-07-12 21:11:21 +00:00
signal-test.c
snprintf-test.c Added a test program for the special features of snprintf(). 2015-07-17 20:34:05 -04:00
sprintf-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strdup-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strncmp-test.c Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
strnicmp-test.c Introduced target 'atarixl'. 2013-05-28 21:56:37 +02:00
stroserror-test.c
strqtok-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strtol-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
strtoul-test.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
time-test.c
tinyshell.c Some improvements to Atari exec() after review. 2016-06-14 20:44:57 +02:00
uname-test.c