Nicht eingeloggt.
Passwort vergessen?


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.



 Nach unten   Vorheriges Thema   Nächstes Thema

#1
Updated Reality Boy
Geschrieben am: 05.02.2010 8:18
PVB Elite
Dabei seit 25.07.2003
USA
1507 Beiträge
PVBCC 1stCoderContributor#3 PosterHOTY09 EntryLong Time User (15 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
Hey,

I attached a zip with new a RB build I did where I fixed a few audio related things (mostly noise channel related). There's no huge changes, so you're not likely to notice much of a difference, but I figured I'd post it anyway.

The other thing is... there's also a build called reality_boy_rommap.exe . This build creates a file (or files) mapping out the ROM, determining which parts are code and data, and also code alignment. It does this by tagging all ROM accesses as either code (which means it was fetched by the processor to execute), or as data (meaning it was read with the load operation). While there may be some cases where this method doesn't work, I don't have any reason to believe any of the existing VB games do any of them, and this should at least be a good reference.

What I'm requesting is if you plan on playing a game in the emulator for a while, if you could use the _rommap version, and then zip/post to this thread the .map file that gets output, it'd give us a lot of information regarding the ROMs and save a lot of time for those of us looking to hack/modify/reverse engineer ROMs.

Since different parts of the ROMs get used depending on where you're at in the game, that's why I said if you plan on playing for a while, since just starting level one will only touch parts of the ROM related to the startup and first level. You can incrementally post them though, if you can start later in the game, like Wario Land or Teleroboxer... I can merge multiple files to get a master map (which is what I plan on doing anyway).

Also, for those looking to hack ROMs, you can use this by pressing T in the game to dump the current map to file and clear the map... then do whatever you want, like start a level, then hit T again to dump any accesses since the last T press. If you look at the file, it'll be a file the same size as the ROM, full of 0's, except the character D for data, I for instruction (first byte of the instruction), and C for code (rest of the instruction, tells whether it was 16 or 32 bits).

The location of the characters corresponds to the location in the ROM. So, if you want to know where the speech data in Red Alarm is, press T just before "T&E Soft Presents", then press it again right after, and look at the .map that gets output and look for the cluster of D's... it's likely there. The .map file names get incremented each time you output a map (and it outputs a final one when you exit RB), though they'll get overwritten if you run the same ROM in Reality Boy again.

You'll also need the normal libraries that RB needs... if you have an existing version, you should be able to just drop it in the same directory... otherwise download RB, then drop these in the directory. Let me know if you have any problems w/ it.

BTW, I'll post several utilities to use w/ the ROM maps in the next day or two (merge and mask).

DogP

Datei anhängen:


zip rb.zip Größe: 130.52 KB; Hits: 497
Nach oben

#2
Re: Updated Reality Boy
Geschrieben am: 05.02.2010 9:23
PVB Elite
Dabei seit 26.07.2003
USA
1465 Beiträge
PVBCC EntryCoderContributorSpecial AchievementTop10 PosterHOTY09 EntryLong Time User (15 Years) App Coder20+ Game RatingsPVBCC 2013 Entry
Excellent! This should jumpstart the 'ol VB ROM-hacking scene!
Nach oben

#3
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 0:56
PVB Elite
Dabei seit 05.01.2010
Schweden
560 Beiträge
Long Time User (9 Years) Donator30+ Game Ratings
Great work!

How about disassembly, any news on that? ;-)
Nach oben

#4
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 3:13
PVB Elite
Dabei seit 25.07.2003
USA
1507 Beiträge
PVBCC 1stCoderContributor#3 PosterHOTY09 EntryLong Time User (15 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
No news on that yet... I haven't looked at that code in several years, though it's something I'd really like to pick up again, and it seems that this might be the right time to do it.

DogP
Nach oben

#5
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 3:56
PVB Elite
Dabei seit 25.07.2003
USA
1507 Beiträge
PVBCC 1stCoderContributor#3 PosterHOTY09 EntryLong Time User (15 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
Okay... attached are a couple utilities (with source) to go with the ROM maps.

The first is map_merge, which allows you to merge multiple maps. You can use this for combining several sessions of playing a game in Reality Boy.

The second is map_mask, which outputs the original ROM masked by the map file. This is useful for inspecting just the parts that are in the map, like the code for disassembling, or the data for finding specific values, level data, etc.

I threw these together very quickly, so as usual, there's likely bugs... let me know if you come across any.

DogP

Datei anhängen:


zip map_utils.zip Größe: 262.95 KB; Hits: 237
Nach oben

#6
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 10:29
Nintendoid!
Dabei seit 08.08.2007
Großbritannien
201 Beiträge
CoderContributorHOTY09 EntryLong Time User (12 Years) App Coder
The audio sounds great, nice work.

I tried reality_boy_rommap.exe on two different computers, but it crashes when I close the program. I get a data execution prevention warning, followed by a "x has encountered a problem..." error message.
Nach oben

#7
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 10:53
PVB Elite
Dabei seit 25.07.2003
USA
1507 Beiträge
PVBCC 1stCoderContributor#3 PosterHOTY09 EntryLong Time User (15 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
Hmm... I'm not sure about that error... I assume you're using some new version of Windows? I've only tested these on XP Pro.

BTW, there was a bug in the old _rommap version that caused the maps to be slightly wrong, which prevented you from creating a working ROM (up to about the point that you quit) by masking it with the map. Attached is a new version that should work properly.

Let me know if it works or doesn't... and if it doesn't, I'll try it on my friend's Windows 7 box. It's very possible that I didn't do some sort of cleanup that I should have when closing.

DogP

Datei anhängen:


zip reality_boy_rommap.zip Größe: 65.60 KB; Hits: 221
Nach oben

#8
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 11:25
Nintendoid!
Dabei seit 08.08.2007
Großbritannien
201 Beiträge
CoderContributorHOTY09 EntryLong Time User (12 Years) App Coder
I'm running XP Pro SP3 on both machines. If I press T to dump the map file, the program crashes immediately. Turning off DEP has no effect.
Nach oben

#9
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 18:12
PVB Elite
Dabei seit 25.07.2003
USA
1507 Beiträge
PVBCC 1stCoderContributor#3 PosterHOTY09 EntryLong Time User (15 Years) App CoderPVBCC 2010 EntryPVBCC 2013 Entry
Ah... okay, I was able to reproduce it on my computer. It had to do with the length of the file path. This one should fix it.

DogP

Datei anhängen:


zip reality_boy_rommap.zip Größe: 65.64 KB; Hits: 226
Nach oben

#10
Re: Updated Reality Boy
Geschrieben am: 06.02.2010 20:03
Nintendoid!
Dabei seit 08.08.2007
Großbritannien
201 Beiträge
CoderContributorHOTY09 EntryLong Time User (12 Years) App Coder
That fixed it. I didn't play very far, but I've attached a map file for Mario's Tennis - seemed like a good place to start.

Datei anhängen:


7z Mario's Tennis (JU) [a1]0.7z Größe: 4.81 KB; Hits: 201
Nach oben

 Nach oben   Vorheriges Thema   Nächstes Thema


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.