+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Dream Master problem
Pages: [1]
Author Topic: Dream Master problem  (Read 300 times)
mit_mis
Guest
« on: August 04, 2007, 11:02:50 am »

Hi, I've got a little problem with the menu in Dream Master. It looks like this:


I had to do some asm hacking to place Normal, Fast and Slow in there and here comes my problem... it shows only Normal and Slow. I'm sure it's something with my code, however I can't spot the error;(

This is the original code:
Code:
$8270:A2 0B     LDX #$0B
$8272:BD AC 82  LDA $82AC,X @ $82AD = #$4D
$8275:9D 3F 01  STA $013F,X @ $0140 = #$0B
$8278:CA        DEX
$8279:D0 F7     BNE $8272
$827B:A6 6F     LDX $006F = #$00
$827D:F0 1A     BEQ $8299
$827F:CA        DEX
$8280:F0 08     BEQ $828A
$8282:A9 10     LDA #$10
$8284:A2 37     LDX #$37
$8286:A0 29     LDY #$29
$8288:D0 06     BNE $8290
$828A:A9 12     LDA #$12
$828C:A2 0D     LDX #$0D
$828E:A0 2A     LDY #$2A
$8290:8D 42 01  STA $0142 = #$2C
$8293:8E 46 01  STX $0146 = #$0A
$8296:8C 4A 01  STY $014A = #$29
$8299:A9 07     LDA #$07
$829B:85 06     STA $0006 = #$00
$829D:A9 03     LDA #$03
$829F:85 07     STA $0007 = #$00
$82A1:60        RTS

And this is mine:
Code:
$8270:A2 17     LDX #$17
$8272:BD 9C BF  LDA $BF9C,X @ $BF9C = #$7A
$8275:9D 3F 01  STA $013F,X @ $013F = #$00
$8278:CA        DEX
$8279:D0 F7     BNE $8272
$827B:A6 6F     LDX $006F = #$00
$827D:F0 1A     BEQ $8299
$827F:CA        DEX
$8280:F0 0D     BEQ $828F
$8282:A2 17     LDX #$17
$8284:BD CB BF  LDA $BFCB,X @ $BFCB = #$7A
$8287:9D 3F 01  STA $013F,X @ $013F = #$00
$828A:CA        DEX
$828B:D0 F7     BNE $8284
$828D:D0 0A     BNE $8299
$828F:20 E3 BF  JSR $BFE3
$8292:EA        NOP
$8293:EA        NOP
$8294:EA        NOP
$8295:EA        NOP
$8296:EA        NOP
$8297:EA        NOP
$8298:EA        NOP
$8299:A9 07     LDA #$07
$829B:85 06     STA $0006 = #$00
$829D:A9 06     LDA #$06
$829F:85 07     STA $0007 = #$00
$82A1:60        RTS

$BFE3:A2 17     LDX #$17
$BFE5:BD B3 BF  LDA $BFB3,X @ $BFB3 = #$7A
$BFE8:9D 3F 01  STA $013F,X @ $013F = #$00
$BFEB:CA        DEX
$BFEC:D0 F7     BNE $BFE5
$BFEE:60        RTS

$BF9C - Slow
$BFB3 - Normal
$BFCB - Fast

I hope I've explained everything clearly enough. Any help would be appreciated. Thanks in advance.
Pages: [1]  


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