Assembly programming course

crazylegsjones

New member
If anyone is interested, I recently started an Assembly programming course on my YouTube channel. The course is specifically targeted for use with NESmaker.

In my WIP thread, I was asking for help on a weapon select feature, and I jokingly said maybe I should just wait for Baardbi to make a tutorial video, and funny enough, you basically did that with the latest one!

The last bit of the tutorial, you spoke about storing the table in RAM to be able to change values in the table. Would be great if you could show an example of it in the next tutorial.

If I had a table with 4 things in it, I would add a line in Ram with 4 bytes, correct? And let's say i want a pickup item to change the third value in that table, how would that portion of code look in the pickups script? I have many ideas i would like to try out with this!

Thanks for making these videos!
 

baardbi

Well-known member
In my WIP thread, I was asking for help on a weapon select feature, and I jokingly said maybe I should just wait for Baardbi to make a tutorial video, and funny enough, you basically did that with the latest one!

The last bit of the tutorial, you spoke about storing the table in RAM to be able to change values in the table. Would be great if you could show an example of it in the next tutorial.

If I had a table with 4 things in it, I would add a line in Ram with 4 bytes, correct? And let's say i want a pickup item to change the third value in that table, how would that portion of code look in the pickups script? I have many ideas i would like to try out with this!

Thanks for making these videos!
I'm not sure I understand what explanation you're after. In episode 3 in the Assembly course I show how (and where) to add a table in RAM. You just go to the Overflow RAM tab in Project Settings.

You need to add a table with 4 bytes to have 4 entries, yes.

Code:
LDX #2 ;;; Third entry

LDA #10 ;;; Random example value
STA myTable,x ;;; Storing the number 10 in the third entry in myTable
 

crazylegsjones

New member
I'm not sure I understand what explanation you're after. In episode 3 in the Assembly course I show how (and where) to add a table in RAM. You just go to the Overflow RAM tab in Project Settings.

You need to add a table with 4 bytes to have 4 entries, yes.

Code:
LDX #2 ;;; Third entry

LDA #10 ;;; Random example value
STA myTable,x ;;; Storing the number 10 in the third entry in myTable
Thanks baardbi. Just confirming my thinking was correct before I started! You answered my question!
 
Top Bottom