Re: [hatari-devel] emutos 0.8.5 not working ?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 21/12/2011 13:14, Vincent Rivière a écrit :
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.


OK, so this info won't be usable to automatically set memvalid variables when using emutos <0.8.6 when fastboot option is off in the case of Hatari.

I think it would be useful to have a *release* version (that doesn't depend on the compile date) at a fixed offset.

Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/