This website requires JavaScript.
Explore
Mirrors
Help
Sign In
6502
/
cc65
Watch
1
Star
0
Fork
0
You've already forked cc65
mirror of
https://github.com/cc65/cc65.git
synced
2024-11-19 06:31:31 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
4c0e47caf9
cc65
/
samples
/
apple2
/
werner.s
3 lines
36 B
ArmAsm
Raw
Normal View
History
Unescape
Escape
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 16:46:36 +00:00
.segment
"
HGR
"
Added HGR and DHGR slide show programs. The DHGR program is sort of a hack as it first switches to double (aka 80 col) text mode to prepare for double graphics mode. Therefore only one additional soft switch access is necessary after using TGI to generally switch to hires.
2018-03-29 22:07:56 +00:00
.incbin
"
werner
.
h
g
r
"
Reference in New Issue
Copy Permalink