(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
04-23-23 09:10 AM
0 users currently in SMW Hacking.
Acmlm's Board - I3 Archive - SMW Hacking - Need ASM info New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
cory21391

Red Cheep-cheep








Since: 04-21-06
From: North Carolina

Last post: 5965 days
Last view: 5965 days
Posted on 08-08-06 07:56 PM Link | Quote
I copied all the info from the ASM thread (Glyph's thread) and I noticed that some of the opcodes are in 3 letter form (ex. LDA) but I'm using a hex editor. As are all the opcodes in the 65816ref.hlp file. I don't like using txt files and compilers. So, is there a list anywhere of all (or most) of the opcodes in hex format and a description (what the opcode IS and what it basically does.) Thanks in advance; trying to learn asm here. BTW, the opcodes that are in hex are only like 3 or 4; so that's not much to work with
Ice Man

Panser



 





Since: 11-18-05
From: Germany

Last post: 6006 days
Last view: 5943 days
Posted on 08-08-06 08:38 PM Link | Quote
If you would read the 65816ref.hlp better, then you would know them.

It explains the opcodes and what they do + they're in hex on the right also.
Here's an example:

LDA imm8/16 n-----z- A9 xx xx
LDA dp n-----z- A5 xx
LDA abs n-----z- AD xx xx
LDA long n-----z- AF xx xx xx
LDA dp, x n-----z- B5 xx
LDA abs, x n-----z- BD xx xx
LDA abs, y n-----z- B9 xx xx
LDA long, x n-----z- BF xx xx xx
LDA (dp) n-----z- B2 xx
LDA (dp), y n-----z- B1 xx
LDA [dp] n-----z- A7 xx
LDA [dp], y n-----z- B7 xx
LDA (dp, x) n-----z- A1 xx
LDA sr, s n-----z- A3 xx
LDA (sr, s), y n-----z- B3 xx


These instructions loads a value from the operand to a register. LDA instruction loads to the accumulator; LDX instruction loads to X, LDY instructions loads to Y.

Attachments

65816ref.rar (28952b) - views: 14
Goldensunboy

Snifit








Since: 12-30-05
From: Georgia

Last post: 5912 days
Last view: 5912 days
Posted on 08-08-06 09:16 PM Link | Quote
-LDA imm8/16 Will load the next one or two numbers into the accumulator, depending whether the accumulator is in 8-bit or 16-bit mode. (largest byte last)
-LDA abs will load a number from $7E0000-$7E1FFF RAM. It will load it from a different bank if the direct page number is changed. The address is largest-byte-last.
-LDA long allows you to load a value from anywhere within RAM or ROM, largest byte last.
-I'm not sure about the functions with (dp) in them, but it has something to do with the direct page.
-A ",x" or ",y" is LDA indexed with X or Y. This is used when loading from tables, it adds whatever's on the X or Y register to the said place it's loading from. If it's loading, indexed with X, from $7E0300 (sprite OAM), and 8 is in X, it will load from $7E0308.

Most of the same properties are shared by the STA, STX and STY instruction, too.


(edited by Goldensunboy on 08-08-06 08:17 PM)
cory21391

Red Cheep-cheep








Since: 04-21-06
From: North Carolina

Last post: 5965 days
Last view: 5965 days
Posted on 08-09-06 02:09 PM Link | Quote
Sorry; I must've gotten confused Thanks, though.
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - SMW Hacking - Need ASM info |


ABII

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

Page rendered in 0.014 seconds; used 361.19 kB (max 426.66 kB)