Nerdy nights for ca65?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
darkhog
Posts: 192
Joined: Tue Jun 28, 2011 2:39 pm

Nerdy nights for ca65?

Post by darkhog »

Someone recently posted this in the other thread which seems to be translation of Nerdy Nights sources into ca65: https://bitbucket.org/ddribin/nerdy-nights/src

Unfortunately this is just sources, not tutorials updated to explain ca65. One great advantage Nerdy Nights has is that explains both syntax of the assembler they're using (NESASM, which is IMO a crap as it doesn't allow for more fancy things that ca65 has such as .proc routines or macros) and NES developing in general.

When embedding ASM code, author explains line by line what this code does, how it achieves that and why it does it that way. Unfortunately mentally substituting NESASM is challenging for someone who just learns NES development.

Has or could anyone update Nerdy Nights as to refer to ca65 syntax instead of NESASM's one with appropriate code sameples?
User avatar
Movax12
Posts: 529
Joined: Sun Jan 02, 2011 11:50 am

Re: Nerdy nights for ca65?

Post by Movax12 »

Code for both assemblers is by and large going to be the same. I would think that to achieve your goal of understanding both the tutorial and the ca65 assembler, it would be a good idea to read through nerdy nights and the ca65 code together and ask what you don't understand here.

BTW, .proc is the same as:

foo:
.scope foo

So it's not that fancy; it's creating a namespace and symbol with the same name. But the macro support in ca65 is pretty good.
Last edited by Movax12 on Fri Nov 15, 2013 10:58 am, edited 1 time in total.
User avatar
qbradq
Posts: 952
Joined: Wed Oct 15, 2008 11:50 am

Re: Nerdy nights for ca65?

Post by qbradq »

The ca65 Documentation Page is a very good reference for the assembler syntax, especially the directives.
darkhog
Posts: 192
Joined: Tue Jun 28, 2011 2:39 pm

Re: Nerdy nights for ca65?

Post by darkhog »

I have this problem with documentation, not only for things like ca65, but for programming languages/libraries in general that docs tend to be too dry. It's good when you want to check specific thing (say, how to do thing when user presses a button), but not great for learning syntax/functions from scratch. For learning things from scratch, tutorials tends to go better at least for me.
User avatar
cpow
NESICIDE developer
Posts: 1097
Joined: Mon Oct 13, 2008 7:55 pm
Location: Minneapolis, MN
Contact:

Re: Nerdy nights for ca65?

Post by cpow »

darkhog wrote:I have this problem with documentation, not only for things like ca65, but for programming languages/libraries in general that docs tend to be too dry. It's good when you want to check specific thing (say, how to do thing when user presses a button), but not great for learning syntax/functions from scratch. For learning things from scratch, tutorials tends to go better at least for me.
It looks like someone's already done half the work of translating the tutorials into cc65. I can create template projects out of them and would love to update the documentation...the issue is just...time. Documentation is, unfortunately, always the piece that ends up pushed into "spare time".
darkhog
Posts: 192
Joined: Tue Jun 28, 2011 2:39 pm

Re: Nerdy nights for ca65?

Post by darkhog »

When I see bunch of random asm opcodes, I see a bunch of random asm opcodes. When I see them explained in tutorial like Nerdy Nights however...
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Re: Nerdy nights for ca65?

Post by Shiru »

If you want to learn 6502 assembly code programming, get a book on 6502 CPU, there are plenty of them.

If you want to learn NES specific programming, use Nerdy Nights tutorials along with NESASM. Lack of few rarely used advanced features in NESASM surely won't be a problem for this. You always can move to some other assembler later.

If you want to learn CC65 particular tools specifics, read their docs and use many examples that are available now.

I'd say it is pretty high expectations to wanting all these things being explained in a single document. Or a low motivation, perhaps, because there are plenty of people (including this very forum) who learned NES programming and wrote games without having such a combined tutorial, or Nerdy Nights, or a crap like NESASM even.
Post Reply