I was going over Andrew's lessons while also entering code in documents given to me for development purposes. The code sounded simple and interesting while actually using less lines of code to accomplish a color cycling task. However, considering that this code was written a long time ago, I need help in cross referencing to today's way.
Here's the area's I'm having trouble with upon compiling the code:
For the 2600...how do you enter equates? Here's the portion of code I entered:
COLUP0 .EQU $06 COLUP1 .EQU $07 CNTRLPF .EQU $0A PF2 .EQU $0F SWCHB .EQU $0282
This was typed in exactly as it appears in the listing I received. When compiled using DASM...I keep getting syntax errors on these. The code references back to them like so (which is also where the errors in DASM occur):
STA $CNTRLPF . . . STA $COLUP1 . . . STA $COLUP0
etc, etc. What is it that I'm doing wrong that DASM is not understanding me (or something I'm not understanding)? I can't share the whole code right now cause it's on a different PC and the new one doesn't use floppies and the old one doesn't use a million different types of memory cards. I did however learn of a new way to set a timer for the 2600.
Help me please! I want to learn Assembly and try to understand what it is I'm doing wrong. This is for the 2600. Thanks in advance!














