Latest Uploads
Platdude Spotting

Jayenkai

Nom nom nom

Jayenkai

Rainbow Trout

Pakz

King Salmon

Pakz

Snooker

Jayenkai

You've ... o have you

Jayenkai

Back to spinal's Blog ( Created 22 February 2010 | Last Edited 22 February 2010)
Learning ASM...
OK, As I could find almost no information about coding C for the SNES, I'm going to have to learn ASM.

65816 ASM to be exact, but I'm going to start with the basics as I have never even considered learning this stuff before.

I'm going to post my findings here so that anyone knowing ASM already can correct me or expand on my learnings.

The first site I found that offers to teach me ASM basics (for the 65816) is http://acmlm.kafuka.org/board/thread.php?id=99.
Now having read the first part of the post, I think I have a rough understanding of the LDA, STA and RTS opcodes.

Here is what I think I know, correct me if I'm wrong...

LDA - Loads the Accumulator with a value, which is either a number or a memory address. the Accumulator as I understand it, seems to be a variable, perhaps the ONLY variable I can truly use?

STA - Stores the Accumulator to a memory address. Sounds simple enough, it suggests that if I want to store a number, I must first put it in the accumulator then copy it to an address.

RTS - basically this seems to be the RETURN command in various languages. The page hints that I would get to my subroutine using the JSR opcode, which I havent read about yet.

So a subroutine to copy a number to a memory location would look something like...

-->

Does that look right so far?

Latest Comments

Posted : Monday, 22 February 2010, 15:14
Phoenix


The accumulator is a processor register. A register is the form of memory closest to the CPU, hence also the fastest. Arithmetic/logical operations are carried out in that register.

I haven't done any 65816 assembly, but you seem to have gotten it right.

Posted : Thursday, 25 February 2010, 12:41
spinal


Someone is going to have to explain the X,Y registers to me, I just don't understand what they do.

Homepage : http://spinalcode.co.uk
Posted : Saturday, 27 February 2010, 23:15
Sticky


I just got Sublime Text today and I'm trying to write a syntax highlighter for Flat Assembler in that. Once I've got it highlighting nicely and everything, I'll be trying to learn assembly too. I think Flat Assembler is arguably easier than what you'll be learning, though.

Homepage : http://sticky.junkyardofcode.net/
Posted : Monday, 08 March 2010, 09:10
spinal


YES! Tiles on the screen!!!!!



I'm not 100% sure how the tile map knows where the actual tiles are yet, but I got them on the screen at least!

Homepage : http://spinalcode.co.uk
Posted : Monday, 08 March 2010, 09:43
Jayenkai


woot!
Well done!!

Homepage : http://AGameAWeek.com
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 550|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Laptop Aaargh...
Jayenkai Wed 17:48
Happy Birthday Evil Roy Ferguson
rockford Wed 16:21
London Car/Stab Incident
therevillsgames Wed 14:50
Watch Switch - Fitbit Blaze
Jayenkai Wed 06:23
Spinal's Return to Android
Jayenkai Tue 13:41
AGameAWeek : 2017 - Part One
Jayenkai Tue 08:10
Poll : Cooking
Jayenkai Mon 05:11
Happy Birthday, TheRevillsGames
Dabz Sun 23:32
Ravetastically Awesome!
rockford Sun 07:41
B3ta - Old Gamers
Jayenkai Fri 16:51
More

Latest Items
Showcase : Infinitron
rychan Tue 03:02
Blog : My Arduino experience.
steve_ancell Mon 20:27
Dev-Diary : PS2 to N64 Adapter
spinal Sun 10:49
Link : Vector Tutorials/Help page.
Pakz Thu 23:00
Blog : mini project
spinal Sun 10:13
Showcase : Blockman Returns
Jayenkai Fri 03:04
Snippet : Wall Tracing on Random Maps (rpg)
rskgames Wed 22:48
Snippet : Path Following
Pakz Mon 16:25
Snippet : Flowers (Jan 2017)
Kuron Thu 01:13
Showcase : Clusters of Hex
therevillsgames Mon 15:01
Article : Maths 101 - Episode 1: Basic Trigonometry
shroom_monk Sun 14:07
Article : Maths 101 - Episode 5: Line Intersection
shroom_monk Sun 14:02
Dev-Diary : Normals and Dot products
Pakz Sat 20:37
Pets : Molly On The Couch
Jayenkai Thu 04:32
Snippet : Additive Particle Flames
Pakz Fri 18:12
More

Who's Online
therevillsgames
Wed, at 20:39
Jayenkai
Wed, at 20:29
rskgames
Wed, at 19:14
9572AD
Wed, at 19:09
rychan
Wed, at 17:57
steve_ancell
Wed, at 17:37
rockford
Wed, at 16:21
shroom_monk
Wed, at 15:46
spinal
Wed, at 15:32
Afr0
Wed, at 14:27
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.