MiSTer-devel / WonderSwan_MiSTer

WonderSwan Color for MiSTer
GNU General Public License v2.0
12 stars 13 forks source link

Can Tonpuusou get in-game? #11

Closed FluBBaOfWard closed 2 years ago

FluBBaOfWard commented 2 years ago

I don't have a MiSTer yet but am developing a WonderSwan emulator myself. Tonpuusou is one of the few games not starting for me, it seems the game expects HBlank timers to work without enabling them (Reg 0xA2). If my post is irrelevant, just close it.

RobertPeip commented 2 years ago

Not sure what ingame means for you, but i get this far on the core, so i assume it's ok. grafik

FluBBaOfWard commented 2 years ago

Yes, that's how far I mean. So I assume you don't care about TimerControl register (0xA2) then? If you do handle reg 0xA2 and the game works I need some serious work on my emulator.

RobertPeip commented 2 years ago

yes, i use it in the GPU. E.g. here: https://github.com/MiSTer-devel/WonderSwan_MiSTer/blob/main/rtl/gpu.vhd#L385-L422

Make sure you count down and not up. That's what some emulators did wrong in the past. You can also run my testrom for CPU timing to check against, as it uses the Hblanktimer for measurements. If you get strange numbers, you are counting wrong.

https://github.com/MiSTer-devel/WonderSwan_MiSTer/tree/main/testroms/timingtest

FluBBaOfWard commented 2 years ago

In my debugging sessions I could only see Tonpuusou ever writing 0x00 to reg 0xA2 so something else must be wrong with my emulator. Thank you very much for the information and sorry for using this forum for questions.

RobertPeip commented 2 years ago

No worries :)