+  RHDN Forum Archive
|-+  Romhacking
| |-+  General Romhacking
| | |-+  About Doppelganger's SMB Disassembly Doc
Pages: [1]
Author Topic: About Doppelganger's SMB Disassembly Doc  (Read 1 times)
SMB2J-2Q
Guest
« on: March 16, 2008, 04:07:46 pm »

While I find Doppelganger's SMB disassembly documentation to be an excellent body of work, he failed to mention some of the ROM addresses in it:

$90e7-$90ec (0x10f7-0x10fc)

$90e7:02 - undefined
$90e8:01 04 - ora ($04, x) @ $0000 = #$1A (address 0x10f8 can change the area music in the ground levels)
$90ea:08 - php
$90eb:10 20 - bpl $910d

$9116-$9130 (0x1126-0x1140)

$9116:28 - plp
$9117:18 - clc
$9118:38 - sec
$9119:28 - plp
$911a:08 - php
$911b:00 - brk
$911c:00 - brk
$911d:20 b0 50 - jsr $50b0
$9120:00 - brk
$9121:00 - brk
$9122:b0 b0 - bcs $90d4
$9124:f0 00 - beq $9126
$9126:20 00 00 - jsr $0000
$9129:00 - brk
$912a:00 - brk
$912b:00 - brk
$912c:00 - brk
$912d:20 04 03 - jsr $0304
$9130:02 - undefined

Thank you,



Ben (SMB2J-2Q)
frantik
Guest
« Reply #1 on: March 16, 2008, 04:29:11 pm »

it's there.. it helps to put the address from the rom map in the doc Smiley

Quote from: SMB2J-2Q on March 16, 2008, 04:07:46 pm
While I find Doppelganger's SMB disassembly documentation to be an excellent body of work, he failed to mention some of the ROM addresses in it:

$90e7-$90ec (0x10f7-0x10fc)

$90e7:02 - undefined
$90e8:01 04 - ora ($04, x) @ $0000 = #$1A (address 0x10f8 can change the area music in the ground levels)
$90ea:08 - php
$90eb:10 20 - bpl $910d

Code:
; $90e7-$90ec   area music selection data (tells what music to play)

MusicSelectData:
      .db WaterMusic, GroundMusic, UndergroundMusic, CastleMusic
      .db CloudMusic, PipeIntroMusic

Quote
$9116-$9130 (0x1126-0x1140)

$9116:28 - plp
$9117:18 - clc
$9118:38 - sec
$9119:28 - plp
$911a:08 - php
$911b:00 - brk
$911c:00 - brk
$911d:20 b0 50 - jsr $50b0
$9120:00 - brk
$9121:00 - brk
$9122:b0 b0 - bcs $90d4
$9124:f0 00 - beq $9126
$9126:20 00 00 - jsr $0000
$9129:00 - brk
$912a:00 - brk
$912b:00 - brk
$912c:00 - brk
$912d:20 04 03 - jsr $0304
$9130:02 - undefined
Code:
;-------------------------------------------------------------------------------------
; $9116-$912d ( 0x1126 - 0x113d ) player entrance position and bg priority data
PlayerStarting_X_Pos:
      .db $28, $18
      .db $38, $28

AltYPosOffset:
      .db $08, $00

PlayerStarting_Y_Pos:
      .db $00, $20, $b0, $50, $00, $00, $b0, $b0
      .db $f0

PlayerBGPriorityData:
      .db $00, $20, $00, $00, $00, $00, $00, $00
     
; $912e-$9130 ( 0x113e - 0x1140 ) game timer data used with entrance setup
GameTimerData:
      .db $20 ;dummy byte, used as part of bg priority data
      .db $04, $03, $02
« Last Edit: March 16, 2008, 04:34:14 pm by frantik »
SMB2J-2Q
Guest
« Reply #2 on: March 16, 2008, 05:39:10 pm »

Thank you for the information, Frantik. Should've looked a little closer...

~Ben
doppelganger
Guest
« Reply #3 on: March 18, 2008, 04:07:08 am »

You almost had me worried there. :-P
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC