The VG Resource
Reading I/O ports of Wonderswan emulator - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: The Resources (https://www.vg-resource.com/forum-109.html)
+--- Forum: The Spriters Resource (https://www.vg-resource.com/forum-110.html)
+---- Forum: Ripping Help (https://www.vg-resource.com/forum-114.html)
+---- Thread: Reading I/O ports of Wonderswan emulator (/thread-34963.html)



Reading I/O ports of Wonderswan emulator - MegamanEXE95 - 01-20-2019

So, the Wonderswan has 16 different colors (grayscale) but the game can only pick 8 of those to display at a time. The WS Tech 2.3 document at Romhacking.net tells me the chosen colors are stored in I/O ports $1C-$1F. BizHawk lets me view RAM,ROM,SRAM and iEEPROM but is there any way to see these ports as well?

UPDATE: I looked in the save state (a ZIP file where 'Core.bin' has the data) and found the chosen colors separated into 32-bit values (rather than 4-bit). I could then find them in Cheat Engine with the emulator running and found out that the chosen colors in Clock Tower are number 1,3,5,7,9,11,13 and 15 throughout the whole game. I also dumped the palettes used in each area of the game so I'm pretty much set. Really wish these values could be accessed with Lua scripts or any tool in the emulator though.