X16 Cheatsheet

Tutorials and help articles.

(Posts require approval. See pinned post.)
Forum rules
Post guides, tutorials, and other instructional content here.

This topic area requires approval, so please be patient while we review content to make sure it fits the expectations for this topic area.

Tech support questions should be asked in Hardware or Software support.
Slendi
Posts: 2
Joined: Thu Oct 27, 2022 9:25 pm

X16 Cheatsheet

Post by Slendi »


Hello, everyone! I have started learning how to program not only the 65C02,

but the X16 as well. I decided that something to aid me in this adventure of

mine is to create a cheatsheet of various useful information. I have decided

to share what I've made so far with all of you guys: http://xslendi.xyz/65c02.pdf



The reason why I opted for a link is for keeping the file always updated in

one single place. HTTPS is available, if you want to use that.



For now, there is only some basic information about the processor itself, but

it will get updated. I will post here whenever I add new content.



Hope this is going to prove useful to others as well! Enjoy!

User avatar
svenvandevelde
Posts: 488
Joined: Wed Dec 23, 2020 6:30 am
Location: Belgium, Antwerpen

X16 Cheatsheet

Post by svenvandevelde »

KICKC home page by Jesper Gravgaard.
My KICKC alpha with Commander X16 extensions.
User avatar
svenvandevelde
Posts: 488
Joined: Wed Dec 23, 2020 6:30 am
Location: Belgium, Antwerpen

X16 Cheatsheet

Post by svenvandevelde »


the cheat sheet contains an error PLA is not a subtract command, it is pull accumulator. Subtract is SBC. Please update it.

KICKC home page by Jesper Gravgaard.
My KICKC alpha with Commander X16 extensions.
neutrino
Posts: 182
Joined: Wed Oct 19, 2022 5:26 pm

X16 Cheatsheet

Post by neutrino »


Cheat sheet as link with https:

https://xslendi.xyz/65c02.pdf

( why https? )

Nice work btw.

 

Purple Lady
Posts: 3
Joined: Tue Dec 06, 2022 10:37 am

Re: X16 Cheatsheet

Post by Purple Lady »

svenvandevelde wrote: Sat Nov 12, 2022 8:25 pm the cheat sheet contains an error PLA is not a subtract command, it is pull accumulator. Subtract is SBC. Please update it.
Yeah, that's on page 3.
TomXP411
Posts: 1776
Joined: Tue May 19, 2020 8:49 pm

Re: X16 Cheatsheet

Post by TomXP411 »

PLA is still incorrectly marked as subtraction.

Several group headers say Increment & Decrement, but are something else entirely.

I don’t think the 65C02 has a DEA or INA commands. Those should be removed.

All mnemonics should have address modes listed, since available address modes vary mnemonic.
User avatar
Yazwho
Posts: 167
Joined: Fri Feb 19, 2021 2:59 pm
Contact:

Re: X16 Cheatsheet

Post by Yazwho »

It has, but generally its `INC` or `DEC`. I have seem them as `INA`, `DEA` as well as `INC A` though, different assemblers different things I guess.

https://www.pagetable.com/c64ref/6502/? ... &tab=2#INC
TomXP411
Posts: 1776
Joined: Tue May 19, 2020 8:49 pm

Re: X16 Cheatsheet

Post by TomXP411 »

Yazwho wrote: Sat Mar 04, 2023 7:25 pm It has, but generally its `INC` or `DEC`. I have seem them as `INA`, `DEA` as well as `INC A` though, different assemblers different things I guess.

https://www.pagetable.com/c64ref/6502/? ... &tab=2#INC
Ah. You' are corect. $1A and $3A are not part of the 6502 instruction set, but they are in the 65C02 extensions.

The WDC data sheet uses INC and DEC for $1A and $3A, respectively.
The on-board monitor also uses those mnemonics.
ACME uses INC/DEC.
64TASS supports INA and DEA as aliases for INC/DEC.

Considering the data sheet uses INC/DEC, and so far, all the assemblers that document this show INC/DEC as the preferred mnemonic, those should be the mnemonics on any reference material.
Martin Schmalenbach
Posts: 138
Joined: Tue Jul 21, 2020 10:08 pm

Re: X16 Cheatsheet

Post by Martin Schmalenbach »

It looks like the links in this thread now point to nothing - I keep getting a 404 error...

Can we get these links fixed and if not, perhaps archive this thread?
DragWx
Posts: 333
Joined: Tue Mar 07, 2023 9:07 pm

Re: X16 Cheatsheet

Post by DragWx »

If you're looking for an opcode reference sheet for the 65C02, this seems to fit the bill pretty nicely while we wait.
Post Reply