Re: [hatari-devel] Dynamic Bus Sizing and I/O Register Access |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Dynamic Bus Sizing and I/O Register Access
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Fri, 12 Jan 2024 19:14:50 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1705086893; bh=OzNx9Vfa9JSNT5nJCjzjjBBAhYmYHAX4+KFKCk15OMk=; h=Date:From:To:Subject:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=S6PTW5+g2sLpDneuQQZL79xu2M4KP+k2q6rwUwPYMQlgtHXQzArNvayA/PYaCOFZx Exd/o3xAuVl9uyUwIPmzojZ7IDKKKyGajDklLhImff3BYYU3jXGrF+u5CgPsAHAiLE sDq0iscxdpTv6c7hkrEWHEPN+EDZS74acFsC2+pf7jLBMVpR6WrwxINsSsbP15Ohw0 wUPMyGy9QyVgXYP2WvkEMGqNlA4BhRVNowvUlNSvtRTooSq9at3Uzme7YAtsHt3C8K +aLmledl7XpGmfqNWbsvt18aRA1lGxKhFioHKiQhu/dKlYRMhSOC+kJ8BYMoLsHJS4 c4OgJ2ENI3quQ==
Am Fri, 12 Jan 2024 19:58:00 +0100
schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
> > Am 12.01.2024 um 19:41 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
> >
> > Yes, right. This basically depends on what your I/O hardware (like the
> > "glue" on the ST) is doing with the accesses on the bus.
> >
> > Do you know what's supposed to happen if the bootloader write a 32-bit word
> > to 0x02010000 ? For example, if it wrote 0x12345678 to that address, which
> > byte is supposed to end up in the brightness register?
> >
> > Thomas
>
> In this example on real hardware (68030) it would write 0x78.
Ok, that's quite different compared to the I/O registers on the Atari (but
perfectly possible if the NeXT hardware has been designed that way). I think
in that case you have to read the value from
IoMem[(IoAccessCurrentAddress + nIoMemAccessSize - 1) & IO_SEG_MASK]
instead.
HTH,
Thomas