Re: [hatari-devel] Fix display of Atari logo with extended VDI resolutions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Fix display of Atari logo with extended VDI resolutions
- From: David Savinkoff <dsavnkff@xxxxxxxxx>
- Date: Thu, 17 Nov 2016 12:37:21 -0700 (MST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1479411442; bh=dma9fC4z/qgczN1jYguh0D6hIKeK9HU8c+85aMymsZk=; h=Date:From:To:In-Reply-To:Subject; b=fBRSQMS0vHdxa27HxqWi+eRquuofAJ1PYjm3FNo5379cWIFHWfI1rsxnSBHKujoMg G3XUJ1Te8msn+gF0zcY6FGlFdsR8yFZiUN8hh05vUxRQ8KtQUsYc0KPQC15GIt8DfX QIZTenD8mVckoY5rFJJvKOkzZPLmmHT9lXx6z29W5OLsQ45S4eL+RQ5dmskQnVWnV/ npkj/E2d6XCV3fgTZt8YCf5fwdyHde8WMu7VGT44DgwHjB2mmQXJ7AVjZ8dGIZZ2y8 3xyZgazrv3mWiHStiV+r3fuQs53lcVT7bpx4+4f7DxjCvy/NCIKI8JrhH5w3ya57uQ nN1nmXvBitolw==
- Thread-index: hUmHTY05Z2wdrZ33udwcWQSG9u7LlA==
- Thread-topic: Fix display of Atari logo with extended VDI resolutions
Doesn't patching ROM make it possible to detect the emulator ?
----- Thorsten Otto <admin@xxxxxxxxxxx> wrote:
> 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.
>
> >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 ;)
>
> 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). When setting
> the machine type to MSTE, this should work now.
>
> Greetings,
> Thorsten
>
> 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