Banner
Views: 236,780,966
Time: 2013-05-25 08:30:28 PM
15 users online: Adam, o Alexander, o Doopy Buckride, Egadd, Fireblast124, Flame8765, Golden Yoshi, HyperMario, levelengine, Masterlink, Ramidalv, Sagittaire, o ShadowPhoenix, Sokobansolver, o Ultimaximus - Guests: 32 - Bots: 12Users: 22,893 (1,286 active)
Latest: icarusge
Tip: Remember to remove the original SMW events, both layer 2 and layer 1, when making a new overworld.
The basics of ASM
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - The basics of ASM
Pages: « 1 ... 6 7 8 9 10 11 12 »
Whats CMD?
CMD is the command prompt, which can be used to run applications. *Copy* cmd.exe from C:\Windows\System32 into your folder
nice tutorial, its well explained #w{=)}
What do i with CMD?
Copy and paste cmd.exe into the folder, open it, and type "xkas.exe patch.asm rom.smc", without quotations. This is to apply an asm file that is a *patch* to your ROM, using xkas. However, you'll want to point the patch to free space, which should be outlined in any xkas tutorial in this forum.
I just got a headache. SO MANY SYMBOLS! But, I have to learn it sooner or later.
Handy tutorial is all i can say, i have no other words for it.
Unfortunately, i am to lazy today to try this tut out, srry.
help me with this please,This is a very well written tutorial, dont get me wrong but im 14 years old and in special ed in math im a genius at everything else can you explain some stuff to me please? not everything just some stuff.
What exactly do you need help with? Be specific otherwise we won't be able to help that much.

Also, do note that there are other ASM tutorials floating around. You should try them out too if you don't get this one (you can find some in the Tutorials Section of the site and some in this forum).
So... What would I have to put into the code if I wanted to implement ON/OFF blocks into a block? As in I want the block I am making to react to the ON/OFF Status.
The address that controls the ON/OFF status is $14AF, so just create a branch statement depending on that:

Code
LDA $14AF BEQ SwitchOn ; this code is executed if the switch is off ; make sure you have a return statement here, ; or the SwitchOn code will be executed ; even if the switch is off SwitchOn: ; this code is executed if the switch is on
Well after:

Code
LDA $14AF BEQ SwitchOn


I want to load Mario's x Position, so would I have to LDA again as the start of the next part of the code?

Example:
Code
LDA $14AF BEQ SwitchOn LDA $7E ... ...


Yes? No?
Yeah, can't see why that should be wrong.
Very good !!
hi i cant get my block working here is the code...


Code
LDA $19 CMP #$00 BEQ FIRE RTL FIRE: LDA #$01 STA $19 RTL LDY $19 LDA TIMER_TYPE,y STA $14AD LDA #$0E STA $1DFB RTL TIMER_TYPE: $FF, $FF, $FF, $FF


It says In BTSD

Errors occured in the assembly of Powerup.asm
error:temp.asm: Line 18: Invalid opcode or command
[$FF, $FF, $FF, $FF]

What do i do?
It should be
Code
db $FF,$FF,$FF,$FF
.

This isn't really the place to ask that, though; this thread or this one would be more appropriate.
You also appear to be missing a bunch of JMPs.
Quote
db $42
JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP MarioFireball
JMP TopCorner : JMP HeadInside : JMP BodyInside

MarioBelow:
MarioAbove:
MarioSide:

TopCorner:
HeadInside:
BodyInside:

;I think you want your code here.

SpriteV:
SpriteH:

MarioCape:
MarioFireball:
RTL
You know... this tutorial is extremely outdated =/

I think we should either update it to work with xkas and btsd, or simply close this and put focus on imamelias tutorial.
What ram map???
Last edited on 2012-06-09 01:14:15 PM by NICK 66.
Originally posted by NICK 66
What rom map???

... are you blind or something?

https://dl.dropbox.com/u/68260629/%2C.png
Pages: « 1 ... 6 7 8 9 10 11 12 »
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - The basics of ASM

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

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu