Re: [hatari-devel] Fix display of Atari logo with extended VDI resolutions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Am Thu, 17 Nov 2016 12:31:41 +0100
schrieb Thorsten Otto <admin@xxxxxxxxxxx>:
> On Wednesday 16 November 2016 21:31:21 Thomas Huth wrote:
> > I think you could use VDIWidth * VDIPlanes / 8 to calculate the
> > current line length in bytes. But that of course only works in VDI
> > mode - that's basically also why I suggested the TP_VDIRES below.
>
> Well ok, i already knew about VDIWidth, but i was looking for
> something that just tells me the emulated screen size. Anyway, i have
> changed the patch now to only be applied if using extended VDI modes.
> I also just realized that the new routine fits within the replaced
> one, so there was no need to move it to the end of the ROM, which
> simplifies it a bit.
Yes, that patch looks great now, thanks for that, I've committed it
already.
> >Is that easier? We'd need to calc the CRC in that case, so I guess
> >it's rather easier if we skip the CRC check in TOS?
>
> I think yes, because you don't have to figure out where that CRC is
> calculated for different ROM versions. And it will help for programs
> that copy the ROM into RAM in order to modify it itself, like GEMRAM.
> I have added a patch that will just do that, just in case ;)
Not sure whether I like that patch, it looks more complicated compared
to that what we had before ... need to ponder a little bit longer on
that one...
> The third patch is for making the ROM for St-Book work. It is similar
> to 2.06 (and even has 2.06 as version in the header), but makes some
> accesses to 0xd00000 which i had to patch out (TOS 3.06 also makes an
> access to 0xd000e0 very early, dunno why that does not give a
> buserror on Hatari).
It does also give a bus error with TOS 3.06, but it patches the bus
error vector right before that instruction:
00E001D8 21fc 00e0 0214 0008 MOVE.L #$00e00214,$00000008
Doesn't TOS 2.08 do something similar? I though you said the TOS 2.0
and 3.0 were based on the same sources? (I don't have that ST-Book TOS,
so I can't look that up).
> When setting the machine type to MSTE, this should work now.
Was the ST-Book Mega-STE compatible? If not, it should be sufficient to
set the type to Mega-ST only?
> PS.: just in case you did not know yet: A complete source version of
> TOS 2.06/3.06 can be found at
> http://www.tho-otto.de/download/tos306de.tar.bz2
That sounds quite impressive, thanks!
Thomas