| The basics of ASM |
|
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - The basics of ASM |
|
|
|
|
| Posted on 2010-06-07 02:38:58 PM |
Link | Quote |
|
|
Whats CMD?
|
|
| Posted on 2010-06-07 04:43:29 PM |
Link | Quote |
|
|
CMD is the command prompt, which can be used to run applications. *Copy* cmd.exe from C:\Windows\System32 into your folder
|
|
| Posted on 2010-06-07 06:44:15 PM |
Link | Quote |
|
nice tutorial, its well explained
|
|
| Posted on 2010-06-07 07:29:53 PM |
Link | Quote |
|
|
What do i with CMD?
|
|
| Posted on 2010-06-08 12:51:47 PM |
Link | Quote |
|
|
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.
|
|
| Posted on 2010-08-23 05:57:21 PM |
Link | Quote |
|
|
I just got a headache. SO MANY SYMBOLS! But, I have to learn it sooner or later.
|
|
| Posted on 2011-07-16 10:51:42 AM |
Link | Quote |
|
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.
|
|
| Posted on 2011-09-17 07:17:24 AM |
Link | Quote |
|
|
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.
|
|
| Posted on 2011-09-17 02:18:16 PM |
Link | Quote |
|
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).
|
|
| Posted on 2011-10-19 08:35:31 AM |
Link | Quote |
|
|
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.
|
|
| Posted on 2011-10-19 11:37:07 AM |
Link | Quote |
|
The address that controls the ON/OFF status is $14AF, so just create a branch statement depending on that:
CodeLDA $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
|
|
| Posted on 2011-10-19 01:27:59 PM |
Link | Quote |
|
Well after:
CodeLDA $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:
CodeLDA $14AF
BEQ SwitchOn
LDA $7E
...
...
Yes? No?
|
|
| Posted on 2011-10-23 01:54:39 PM |
Link | Quote |
|
|
Yeah, can't see why that should be wrong.
|
|
| Posted on 2011-11-03 07:55:05 AM |
Link | Quote |
|
|
Very good !!
|
|
| Posted on 2011-11-09 04:58:55 PM |
Link | Quote |
|
hi i cant get my block working here is the code...
CodeLDA $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?
|
|
| Posted on 2011-11-09 05:03:56 PM |
Link | Quote |
|
It should be.
This isn't really the place to ask that, though; this thread or this one would be more appropriate.
|
|
| Posted on 2011-11-10 01:05:49 AM |
Link | Quote |
|
You also appear to be missing a bunch of JMPs.
Quotedb $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
|
|
| Posted on 2011-11-10 01:19:51 AM |
Link | Quote |
|
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.
|
|
| Posted on 2012-06-08 02:18:00 PM |
Link | Quote |
|
|
What ram map???
|
| Last edited on 2012-06-09 01:14:15 PM by NICK 66. |
|
|
|
|
|
|
|
|
Forum Index - SMW Hacking - General SMW Hacking Help - Tutorials - The basics of ASM |