News: 11 March 2016 - Forum Rules

Author Topic: [Technical] [Master System] Tensai Bakabon  (Read 755 times)

FCandChill

  • Hero Member
  • *****
  • Posts: 619
    • View Profile
[Technical] [Master System] Tensai Bakabon
« on: January 18, 2022, 10:30:07 pm »


I'm looking for very basic technical assistance for a Master System game called Tensai Bakabon. It's one of the few Master System games that need translating. The pointer system was reverse engineered, however, the game is stored in a scripting language. Locating the pointers is fairly easy, but takes a little bit of time. Debug with the emulator Emulicious, which is the most advanced debugging emulator that supports the Master System. Set a breakpoint at 0101D and then trigger a dialogue line.

Code: [Select]
_LABEL_101D_:
0101D: Line Breakpoint hit
0101D: ld l, (ix+0)                     HL=C6F8 IX=2F0F IY=DE01

And viola, you got the pointer location! It's stored in register IX. Once you get a pointer address, you have to add it to the toolset. See the download link below:

https://mega.nz/file/lyRh2YaY#q0DvIJm_m9QmqcMODXQ7ZkVDb07zeeVemeicSRUnkus

Add it to Settings.json in the address field. Some have already been done:

Code: [Select]
"Address":
[
    "0x00002F0F",
    "0x00002f12",
    "0x00002f15",
    "0x00002f17",
    "0x00002f1A",
    "0x00002f1c",
    "0x00002f1f",
    "0x00002f22",
    "0x00002f24"
],

You can verify your work in multiple ways.
1. Dump the script by executing "Dump.bat". You'll need to get your own rom and add it to the "roms" folder and name it "Tensai Bakabon (Japan).sms". Execute the bat file by double clicking it and the script will be located in "script/script.json". See the terminal output for any errors.
2. "script/scraped script.json" contains the entire script obtained without reading the pointers. Cross check your dumped script with this one.
3. Set "BlankOutTextDataAfterRead" to true in "Settings.json". This will produce a modified rom which blanks out areas in the rom where dumped text entries are. This helps identify undumped text entries. Be careful though, as this may mess with the script dump. So set it to false when you don't need it.

January 23, 2022, 03:48:28 am - (Auto Merged - Double Posts are not allowed before 7 days.)
ccmar went through the trouble of locating most of the pointers. As a result, this topic has been marked as resolved.
« Last Edit: January 24, 2022, 01:42:43 am by FCandChill »