Banner
Views: 882,735,185
Time:
23 users online: Anas, anonimzwx, Apple Cider, Armyless_boi, Blizzard Buffalo, chickaDEE Magazine, D2DEZEL, Dan2point5,  E-man38, FrozenQuills, Green Jerry, H3nt4ik4m3n, Infinity,  JamesD28, Matt, PlagueRatofDoom, PythonDrache60, qantuum, Raymondsze, Segment1Zone2, solgaleo35, Spedinja, Sweetdude - Guests: 73 - Bots: 81 Users: 49,449 (2,431 active)
Latest: mrnoodlebear
Tip: Proofread your message boxes for spelling and grammar mistakes.Not logged in.
LevelASM - JSL $00F606???
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - LevelASM - JSL $00F606???
Pages: « 1 » Link
I made simple patch to LevelASM

Init
Code
STZ $DBF	; Coins (shared)
STZ $F34	; Mario Score
STZ $F35	; Mario Score
STZ $F36	; Mario Score
STZ $F37	; Luigi Score
STZ $F38	; Luigi Score
STZ $F39	; Luigi Score
RTS


Main
Code
		LDA $7E0DBF	;\ check for coins
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		LDA $7E0F34	;\ check for score (Mario)
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		LDA $7E0F37	;\ check for score (Luigi)
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		RTS		;
WRONGENESS:	JSL $00F606     ; DIE!
		RTS	        ;


Surpise is here... this code works :O. But not fully. For some reason when I JSL I hear die sound effect, but Mario never falls and I cannot continue without savestate made before that. Normal death works.

--------------------
Legacy ports zip (now that those went down because Dropbox)
Seems probable to me that you're starting the death animation every frame. If you keep starting it over and over and over again, it'll never finish.
So, after I make that it will work?
Code
		LDA $7E0DBF	;\ check for coins
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		LDA $7E0F34	;\ check for score (Mario)
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		LDA $7E0F37	;\ check for score (Luigi)
		CMP #$00	; |
		BNE WRONGENESS	;/ DIE!
		RTS		;
WRONGENESS:	STZ $DBF	; Coins (shared)
                STZ $F34	; Mario Score
                STZ $F35	; Mario Score
                STZ $F36	; Mario Score
                STZ $F37	; Luigi Score
                STZ $F38	; Luigi Score
                STZ $F39	; Luigi Score
                JSL $00F606     ; DIE!
		RTS	        ;

YES! IT WORKS!

--------------------
Legacy ports zip (now that those went down because Dropbox)
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - LevelASM - JSL $00F606???

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