# set aside unread (wave 2): expectations from Mesen2/MiSTer source def test_status_bits_and_mirror_c13() -> None: class Mesen2Mirror(HG51B): STATUS_MIRROR = "mesen2" for core, at_58 in ((HG51B, 0), (Mesen2Mirror, 0x40)): rig = Rig(core) rig.place([0x0800]) # loops rig.start() rig.finish_load = rig.cx.run(4000) assert rig.cx.read(0x7F5E) == 0x40 # running, not busy assert rig.cx.read(0x7F53) == 0x40 and rig.cx.read(0x7F5F) == 0x40 assert rig.cx.read(0x7F58) == at_58 and rig.cx.read(0x7F5A) == at_58 rig.cx.write(0x7F53, 0) # stop assert rig.cx.read(0x7F5E) == 0