Hi,
Maybe I've not been paying attention, but has anyone ever done a STOS demo that had a reset demo included?
(I'm assuming that if they did, they used ASM routines to enable it?)
Cheers,
M.
STOS / Reset
- mrdalliard
- Obsessive compulsive Atari behavior
- Posts: 118
- Joined: Tue May 01, 2012 8:29 pm
- Location: UK
- Contact:
STOS / Reset
--
520 STFM Owner since 1988.
520 STFM Owner since 1988.
Re: STOS / Reset
None of the STOS demos I am aware of included a reset demo. The problem is we rely on TOS to allocate, load and release the memory where each executable is loaded. A memory resident reset demo could be over written at any time. In ASM they have more control over all that.
I think the best way would be for every demo in a multiscreen and menu demo to have a small loader routine in a memory bank and every demo screen would set the reset vector to that routine. I think that routine would need to be written in ASM.
I think the best way would be for every demo in a multiscreen and menu demo to have a small loader routine in a memory bank and every demo screen would set the reset vector to that routine. I think that routine would need to be written in ASM.
Still got, still working: Atari 4Mb STe, MegaST 2, 520STFM (x2), 2.5Mb STF, Atari 2600JR, Flashback 8 Gold.
Hardware: PC720B, Cumana CSA 354, Ultimate Ripper, Discovery Cartridge, Blitz Turbo, Synchro Express II (US and UK Versions).
Hardware: PC720B, Cumana CSA 354, Ultimate Ripper, Discovery Cartridge, Blitz Turbo, Synchro Express II (US and UK Versions).
Re: STOS / Reset
I did a "break" demo in The Interpreter Demos, where ctrl-C brought up a credits screen!
- mrdalliard
- Obsessive compulsive Atari behavior
- Posts: 118
- Joined: Tue May 01, 2012 8:29 pm
- Location: UK
- Contact:
Re: STOS / Reset
Haha, I like this idea!thomas3 wrote: Fri Sep 29, 2023 6:23 pm I did a "break" demo in The Interpreter Demos, where ctrl-C brought up a credits screen!
Hmmm, I think I'll have to abandon the idea of a reset demo on the basis that:
- I want it to run on a bog-standard 520 STFM and in some cases it's a bit squeaky when it comes to free memory (or even free memory banks).
- I wanted to avoid writing my own ASM. Sure, I'm using Misty/TML, but I didn't want to then write other stuff as the challenge was do it just in STOS.
Cheers,
M.
--
520 STFM Owner since 1988.
520 STFM Owner since 1988.
Re: STOS / Reset
I tinkered with such an idea before I knew about the reset vector / res valid.It was very crude and was not trapped by the reset vector but rather reloaded, and made use of a warm reboot not clearing memory. IIRC I checked a certain bit of memory and if what I had previously stored was still there it showed a digitised pic and a sample instead of the scrolltext which was shown otherwise. I had made this as an intro with some utils I was giving to my cousins then boyfriend, he had previously sent some digitised pics, one of which was of himself which I had mirrored half way through his face and it made him look like he had a mohawk...sadly I don't have the source for that one anymore which is probably just as well!
('< o o o o |''| STM,2xSTFM,2xSTE+HD,C-Lab Falcon MK2+HD,Satandisk,Ultrasatandisk,Ethernat.
- mrdalliard
- Obsessive compulsive Atari behavior
- Posts: 118
- Joined: Tue May 01, 2012 8:29 pm
- Location: UK
- Contact:
Re: STOS / Reset
I think I'll go down this route, I think I've found a "safe" address.MiggyMog wrote: Mon Oct 02, 2023 10:51 am I tinkered with such an idea before I knew about the reset vector / res valid.It was very crude and was not trapped by the reset vector but rather reloaded, and made use of a warm reboot not clearing memory. IIRC I checked a certain bit of memory and if what I had previously stored was still there it showed a digitised pic and a sample instead of the scrolltext which was shown otherwise. I had made this as an intro with some utils I was giving to my cousins then boyfriend, he had previously sent some digitised pics, one of which was of himself which I had mirrored half way through his face and it made him look like he had a mohawk...sadly I don't have the source for that one anymore which is probably just as well!

Thanks,
M.
--
520 STFM Owner since 1988.
520 STFM Owner since 1988.