BTW, the existing Hatari code handles bank1 mode for writing to the alarm
minutes register. In case you're wondering why, Atari TOS 2.06 uses them as a
test for whether the clock is alive. It writes $0a to the 1-minute alarm
register and $05 to the 10-minute alarm register (using a movep.w), and then
reads them back. If the values don't match, the RTC is assumed to be dead.
This isn't documented in the datasheet. This additional check *might* get
added to EmuTOS at some point.
A couple of other points that I came across: I don't think you need to worry
about implementing alarm mode, because the relevant pin is not connected to
anything. And the RP5C15 chip is used on both the MegaST and the Mega STe.