The only program I know that runs code from the screen is Woody's splendid Scumball 2. The entire program is in the bottom segment of the display file:
I want to do something similar. Scumball2 works in SPIN, Spectaculator, QAOP and on the Next. Can anyone think of any reason why this will not run correctly on any model of Spectrum, emulator or online emulator?
Running code from the display file
Re: Running code from the display file
it's perfectly ok. just don't create interrupt table there, and remember that your code will be contended. otherwise, screen memory is just a normal memory. ;-)
- Lethargeek
- Manic Miner
- Posts: 743
- Joined: Wed Dec 11, 2019 6:47 am
Re: Running code from the display file
Maybe this is "the only (complete and complex) program that runs entirely in the screen memory" but definitely not the only one that sometimes runs some code in the screen memory. One of the recent examples is Redshift running decompression routine in the temporarily inactive screen page. Also some games keep code and data in the hidden screen memory permanently (sometimes in the page 5).R-Tape wrote: ↑Sat Oct 24, 2020 11:22 am The only program I know that runs code from the screen is Woody's splendid Scumball 2. The entire program is in the bottom segment of the display file:
Re: Running code from the display file
the great TF-COPY has "maximum memory" mode, where it keeps most of its code in screen$ too.
Re: Running code from the display file
Cheers all. It looks like this is safe to do without confusing any emulators.
I bet there are loads of programs that use the screen a little bit. I've often seen cracked versions where some setup code is place on the screen.Lethargeek wrote: ↑Sat Oct 24, 2020 11:49 am Maybe this is "the only (complete and complex) program that runs entirely in the screen memory" but definitely not the only one that sometimes runs some code in the screen memory. One of the recent examples is Redshift running decompression routine in the temporarily inactive screen page. Also some games keep code and data in the hidden screen memory permanently (sometimes in the page 5).
Cool. There's about 1K of code around 24000, but the whole top screen segment is being used.
Re: Running code from the display file
Didn't 007 Disassembler also run entirely from within screen RAM?