66 users online: 7 up, A-l-e-x-99, Abdu,  Anorakun, anthonypasha, AntiDuck, autisticsceptile1993, Bad luck man, Batata Douce,  bebn legg, Blizzard Buffalo, Blue Axl, brickblock369, buggy789, bwal, chickaDEE Magazine, codfish1002, crm0622, Darkbloom, Darolac, DiegoYuri543, Doug Walker,  dtothefourth,  E-man38, Fermín Acosta Jr., Final Theory, Green Jerry, HammerBrother, Heraga, Igno,  JamesD28, kaigem, Katrina, Knight of Time, kyasarintsu, LadiesMan217, lordkronos100, Lotica, Matheus2653,  MiniMawile303,  Nameless, OhMuramatsu, OrangeBronzeDaisy, Pat, pat94plus, peterpumpkineater69, qantuum, rich.yard, SammmUuU,  Scrydan, SF - The Dark Warrior, SiameseTwins, Skewer, Sokobansolver, SubconsciousEye, Super Maks 64,  Tahixham,  Teows,  Teyla, TheGlove99, TheMorganah,  ThirdWall, TruffledToad, Truxton, wariovalevale, yoshifanatic - Guests: 217 - Bots: 88 Users: 45,647 (3,281 active)
Latest user: AlejoFangamer
Not logged in.
An experiment.
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - An experiment.
Pages: « 1 »
I've experimenting with a tweeter to make it dissapear in a puff of smoke afer jumping 8 times, and I've used part of the Dispari Scuro's Golem Rock ASM to make it work...

I failed:
Code
65816 Tricks Assembler Version 1.11   (C)opyright 1994 1000 Miles [Tricks]
Internet: [email protected], IRC: minus

Memory available: 2147483647
Starting address defined as $929A45

Pass 1

Pass 2
Error in 33.1/28: Symbol does not exist
Error in 37.1/31: Symbol does not exist

Pass 3
Error in 33.1/28: Symbol does not exist
Error in 37.1/31: Symbol does not exist
 
Source code assembled.

Although the source code was assembled, the program may not run
properly due to errors detected during the assembling process.

[$929A45-$929D7E]
Lines=513
Statements=447
Symbols=59
Errors=2


And I'm looking the lines mentioned in the ASM ,but since I don't have even a clue what is wrong,I'm asking help.

The link.

(oh, and does the sprite dissapears in a puff of smoke without the rock breaking effect?I'm asking it since I ripped the code from the mentioned sprite)
Well the errors are caused by the fact that GetRand isn't anywhere in the sprite, and you should change JSR SubHorzPos to JSR SUB_HORZ_POS, since that's what you called it in your sprite.

Keep in mind the actual line numbers are often a few off from the line numbers the error log gives you. I don't know why, but that's something to keep in mind when you're debugging.
And can you tell me where I should put the GetRand in the file please?

EDIT:Wait,I founded it.

EDIT2:Now it dissapears when the sprite shows and it doesn't show a puff of smoke.

LINK
You probably need to set the "spin jump animation timer" when you use status $04, like is done with SPIN_KILL. I am pretty sure it's used for the smoke animation.

--------------------
Your layout has been removed.
Forgive my ingnorance but I don't know ASM, so I don't have a clue of how I'm supossed to add that.
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - An experiment.