(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-03-24 05:32 AM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - So You Wanna Learn ASM [ASM howto] New poll | |
Pages: 1 2 3 4Add to favorites | Next newer thread | Next older thread
User Post
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6284 days
Last view: 6283 days
Posted on 09-05-06 11:50 PM Link | Quote
break = branch for me

And yes, BEQ $00 would beak to the very next instruction, as you said.
Sparx

Waddle Doo








Since: 11-18-05
From: San Diego

Last post: 6296 days
Last view: 6283 days
Skype
Posted on 09-05-06 11:51 PM Link | Quote
Ok, I get it now. As would $01 go 2 after the $01 and so on. Thanks for the help with that, I was wondering why all of my custom blocks would just screw up
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6284 days
Last view: 6283 days
Posted on 09-06-06 01:05 AM Link | Quote
You're welcome

BTW, can you send me any blocks you make that you think would be good for inclusion in BTO? I'd appreciate it muchly.
Sparx

Waddle Doo








Since: 11-18-05
From: San Diego

Last post: 6296 days
Last view: 6283 days
Skype
Posted on 09-06-06 08:34 PM Link | Quote
Oh, sure. You've made it so that I can, I just have to re-code them and stuff so they work. I had so many blocks I was going to make =)
C:/DOS/RUN

Goomba


 





Since: 12-07-06

Last post: 6301 days
Last view: 6304 days
Posted on 01-24-07 04:50 PM Link | Quote
Hey, can you teach us how to do this in hexadecimal? Because I understood the tutorial, but I can't find a compiler for windows that works.


Edit: I may have found a ASM compiler that works. It is called FASM.


Edit2: No, it does not work.


(edited by C:/DOS/RUN on 01-25-07 06:13 PM)
(edited by C:/DOS/RUN on 01-25-07 06:26 PM)
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6284 days
Last view: 6283 days
Posted on 01-28-07 07:17 AM Link | Quote
Hm, X816ii2F works fine for me

Okay... It's mostly pretty easy.

I'm going to show you how to do this in hex:

LDA #$02
STA $7E0019
RTS


Okay, so this is how you'd do the first one:

A9 02

Now, A9 is the hex version of LDA #$__ It can be LDA #$xx or LDA #$xxxx, depending on the processor bit width for the accumulator.

02 in that represents #$02. No biggie there.

then comes STA $7E0019. Pay close attention!
8F 19 00 7E

8F is, IIRC (I'm tired right now), STA $xxxxxx

19 00 7E is the address to store to. see how it's order is reversed? All numbers in 65c816 ASM are like that. Thus, 19 00 7E becomes 7E 00 19 when not reversed.

Lastly, RTS.

60

this is because 60 is RTS in hex, and there are no extra numbers to be had with this command.
Kailieann



 





Since: 11-18-05

Last post: 6283 days
Last view: 6283 days
Posted on 01-28-07 03:53 PM Link | Quote
Originally posted by Pointlessly long name
8F 19 00 7E

85 19
Sukasa

Birdo
Not quite as active as before.
Xkeeper supporter
Xk > ||bass
I IP Banned myself! Twice!








Since: 11-17-05
From: Somewhere over there

Last post: 6284 days
Last view: 6283 days
Posted on 01-28-07 10:50 PM Link | Quote
Well, yeah. The thing is, I wanted to draw a direct line between the 24-bit text address and the hex.

besides, I always use 24-bit addresses anyways
Pages: 1 2 3 4Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - So You Wanna Learn ASM [ASM howto] |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.045 seconds; used 378.20 kB (max 462.26 kB)