STOS / Reset

STOS-related stuff in here please
Post Reply
User avatar
mrdalliard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 118
Joined: Tue May 01, 2012 8:29 pm
Location: UK
Contact:

STOS / Reset

Post by mrdalliard »

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.
--
520 STFM Owner since 1988.
mlynn1974
Atari Super Hero
Atari Super Hero
Posts: 764
Joined: Mon Mar 03, 2008 10:33 pm
Contact:

Re: STOS / Reset

Post by mlynn1974 »

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.
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).
User avatar
thomas3
Captain Atari
Captain Atari
Posts: 400
Joined: Tue Apr 11, 2017 8:57 pm

Re: STOS / Reset

Post by thomas3 »

I did a "break" demo in The Interpreter Demos, where ctrl-C brought up a credits screen!
User avatar
mrdalliard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 118
Joined: Tue May 01, 2012 8:29 pm
Location: UK
Contact:

Re: STOS / Reset

Post by mrdalliard »

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!
Haha, I like this idea!

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.
User avatar
MiggyMog
Atari Super Hero
Atari Super Hero
Posts: 989
Joined: Sun Oct 30, 2005 4:43 pm
Location: Scotland

Re: STOS / Reset

Post by MiggyMog »

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.
User avatar
mrdalliard
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 118
Joined: Tue May 01, 2012 8:29 pm
Location: UK
Contact:

Re: STOS / Reset

Post by mrdalliard »

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!
I think I'll go down this route, I think I've found a "safe" address. :)

Thanks,

M.
--
520 STFM Owner since 1988.
Post Reply

Return to “STOS”