Banner
Views: 858,737,782
Time:
26 users online: Albion, Amine Retro, AmperSam, ASSATAKKU, bandicoot, Batata Douce, borrachorex, CalHal, danieldisalvo, Desert, edgar, Isikoro,  Koopster, LeaderAngelo, lineprinter, SammmUuU, Segment1Zone2, SiulLunar, SnowyIceDragon, Sping bot, spingeb0b, The Central Scrutinizer, Thwompz, Von Fahrenheit, Wiimeiser,  xHF01x - Guests: 61 - Bots: 90 Users: 47,458 (2,242 active)
Latest: CristobalFOF
Tip: Try not to place secret exits at the very end of levels-- the player will basically have to go through the same level twice.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 »
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 »
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 - 2020 - 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