Re: [hatari-devel] emutos 0.8.5 not working ? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Nicolas Pomarède wrote:
at what place is this date located in emutos ? Is there a fixed string
that would allow to automatically find it ?
The ROM header has the same format as TOS:
http://toshyp.atari.org/en/010009.html#OSHEADER
The build date is at offset 0x18, in BCD ordered as MMDDYYYY. For
example, 0x12212011 as December 21, 2011.
Beware, before 27/04/2011, the order of the bytes was wrong. So EmuTOS
0.8.6 is the first release with a correct BCD date byte order (same byte
order as TOS).
The build date is also at offset 0x1e in 16-bit GEMDOS date format.
However, the build date is a different concept than the EmuTOS version.
If you recompile old EmuTOS sources today, you will get today's build date.
Have you considered storing an easily parsable version string in emutos,
There is currently no such thing, but that could be imaginable.
--
Vincent Rivière