Banner
Views: 932,955,466
Time:
21 users online: Aja,  Alex_X8,  AmperSam, chaves12zzz, Dippy, Fernand1527, Gmario37, goosedajuice, Hayashi Neru, Infinity, KaizoMonki, katun24, kiki79250, KlonoA13Phill,  Lazy, Mr. MS, PastaNoSauce, S.U, shaoshao, spooonsss,  TickTockClock - Guests: 119 - Bots: 195 Users: 52,073 (2,112 active)
Latest: KaizoMonki
Tip: When determining a time limit, remember that players won't be as familiar with the level as you are. If you normally complete the level with around 100s left on the timer, others might run out of time on their first try.
Not logged in.
Strange data appears out of nowhere...
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Strange data appears out of nowhere...
Pages: « 1 » Link
I am making a timer patch. There are 6 bytes that it should copy or compare to the timer: $02, $07, $09 and $30, $20, $10 (or any other ones, the result, surprisingly doesn't change), but it always uses $40, $21, $9C and $0B, $42, $9C.
This is how I define the bytes:
Code
warp: db $02,$07,$09
freeze: db $30,$20,$10

This is how I use them:
Code
lda warp,X
sta !timer,X

and
Code
lda freeze,X
sta !timer,X

X is always from $00 to $02.
Also, I couldn't even find these bytes in the ROM.

--------------------
So tha-at's how it works!
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank
Originally posted by Erik
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank

It says:
Code
error: (E5045): Invalid opcode length specification. [---- lda.i freeze,X]


EDIT: Oh, it's L...

--------------------
So tha-at's how it works!
it's L not i

edit: damn ninjas
Originally posted by Erik
Change LDA to LDA.l since you're reading tables from ROM without changing the data bank

Thank you very much! It worked. After a little bit of testing, the patch will be available as an update here.

--------------------
So tha-at's how it works!
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Strange data appears out of nowhere...

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2021 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks