Latest Uploads
Invasion V ... prototype

rychan

Invasion V ... Prototype

rychan

Shields 64x64

Pakz

Ffs_Spam

Jayenkai

Hives Screen shot

rychan

Rpg Potion Sprites

Pakz

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 575|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Cerberus X - the continuation of Monkey X
zzoom Fri 23:13
Crystal Maze
zzoom Fri 23:02
Update All Objects in Array?
Caton Fri 20:09
CSS-Me-Do - SoCoder2
rskgames Fri 09:45
Delete Button on Showcases
Pakz Fri 09:13
Grenfell Fridge
Jayenkai Fri 09:02
ProcGen Book
Pakz Fri 07:11
XB360 /XBOne Pads
STEVIE G Thu 23:28
Winter Solstice
therevillsgames Wed 16:47
AGameAWeek : 2017 - Part One
Jayenkai Wed 15:10
More

Latest Items
Link : Learn C++
rychan Fri 03:13
Dev-Diary : My Journey into NES Development
Jayenkai Thu 03:58
Showcase : A Civilization Clone v0.4
rychan Thu 03:27
News : Newsletter #320
Jayenkai Tue 18:47
Blog : sadas
hardcoal22 Tue 02:50
Showcase : Flappadiddle
Jayenkai Mon 08:20
Article : Cookie Information
rychan Sun 12:28
Dev-Diary : Wii to N64 adapter
spinal Sat 11:50
Link : MonkeyX code examples
Jayenkai Sat 06:42
Link : Available Languages
Jayenkai Thu 13:22
Blog : Mr Testo Tests
Socoder Tue 07:21
Link : Chrome VR Experiments
Jayenkai Tue 06:49
Showcase : Orbital Projectiles
Jayenkai Tue 06:39
Showcase : Hives
zzoom Fri 16:10
More

Who's Online
jprofitt
Fri, at 23:22
zzoom
Fri, at 23:13
Caton
Fri, at 23:07
Pakz
Fri, at 22:59
9572AD
Fri, at 22:45
rskgames
Fri, at 21:57
therevillsgames
Fri, at 19:11
GfK
Fri, at 18:37
Jayenkai
Fri, at 16:31
steve_ancell
Fri, at 16:31
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.