Detecting EMUTOS ?

News,announcements,programming,fixes,game patches & discussions.

Moderator: troed

Post Reply
User avatar
exxos
Site Admin
Site Admin
Posts: 8504
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Detecting EMUTOS ?

Post by exxos » Mon Jul 08, 2019 11:04 am

We all know the TOS version is in the TOS header images, such as 0104 etc.. I believe EMUTOS reports TOS102... But is there any actual way to detect the file is actually EMUTOS and not original TOS ? and possibly the emutos version number ?


EDIT:

I assume this is how it would be done...

Capture.JPG
Capture.JPG (75.36 KiB) Viewed 2946 times
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

BlankVector
Posts: 55
Joined: Fri Sep 15, 2017 10:51 pm

Re: Detecting EMUTOS ?

Post by BlankVector » Mon Jul 08, 2019 1:05 pm

Precisely. Check for 'ETOS' at ROM offset $2C.
For now, we have no mechanism to detect EmuTOS version number.
Subscribe to my Vretrocomputing channel on YouTube and Facebook. Latest video: Save and restore the video mode in assembly language on Atari ST.

User avatar
exxos
Site Admin
Site Admin
Posts: 8504
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Detecting EMUTOS ?

Post by exxos » Mon Jul 08, 2019 1:31 pm

BlankVector wrote:
Mon Jul 08, 2019 1:05 pm
Precisely. Check for 'ETOS' at ROM offset $2C.
Thanks :)
BlankVector wrote:
Mon Jul 08, 2019 1:05 pm
For now, we have no mechanism to detect EmuTOS version number.
Put on the "to do list" ;)
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

anodyne
Posts: 4
Joined: Sat Nov 02, 2019 8:21 pm

Re: Detecting EMUTOS ?

Post by anodyne » Sat Nov 02, 2019 10:19 pm

exxos wrote:
Mon Jul 08, 2019 1:31 pm
BlankVector wrote:
Mon Jul 08, 2019 1:05 pm
Precisely. Check for 'ETOS' at ROM offset $2C.
Thanks :)
BlankVector wrote:
Mon Jul 08, 2019 1:05 pm
For now, we have no mechanism to detect EmuTOS version number.
Put on the "to do list" ;)
This will be in the next release :-).

User avatar
exxos
Site Admin
Site Admin
Posts: 8504
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Detecting EMUTOS ?

Post by exxos » Sun Nov 03, 2019 12:19 am

anodyne wrote:
Sat Nov 02, 2019 10:19 pm
This will be in the next release :-).
Sweet!
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

BlankVector
Posts: 55
Joined: Fri Sep 15, 2017 10:51 pm

Re: Detecting EMUTOS ?

Post by BlankVector » Fri Nov 29, 2019 1:01 pm

exxos wrote:
Mon Jul 08, 2019 1:31 pm
BlankVector wrote:
Mon Jul 08, 2019 1:05 pm
For now, we have no mechanism to detect EmuTOS version number.
Put on the "to do list" ;)
Done! Since 29/10/2019 (current EmuTOS snasphots, and future release):
- Look at ROM offset $2C. If 'ETOS' is there, then it's EmuTOS (works for all EmuTOS versions, including old ones)
- Look at offset $34. If 'OSEX' is there, then the new EmuTOS extended header is present, including version information. If not, no version information is availble.
- Look at offset $40. There is a LONG. It is the file offset to the version string (the one displayed on the welcome screen)
- Or if you prefer, look at offset $3c. There are 4 bytes: MAJOR,MINOR,FIX and UNOFFICIAL. If UNOFFICIAL is set to 0, this is an official release (version indicated by MAJOR,MINOR,FIX). If UNOFFICIAL is set to 1, then it is an unofficial version (i.e. development snapshot) built after the MAJOR,MINOR,FIX release.
Subscribe to my Vretrocomputing channel on YouTube and Facebook. Latest video: Save and restore the video mode in assembly language on Atari ST.

User avatar
exxos
Site Admin
Site Admin
Posts: 8504
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Detecting EMUTOS ?

Post by exxos » Fri Nov 29, 2019 1:04 pm

@BlankVector Nice one! :dualthumbup: Will add this into my flash software next update :)
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”