Floopy wrote:
Well that's what I was missing. I was wondering why the datasheet kept talking about DDRA and DDRB. Also took some time to figure out that you can set whether a port is an input or an output individually.
It looks like you've got it now, but just to be sure: You can set not only the individual
port (port A or port B) to be input or output, but individual
bits within the port. For example, you might have bits 0, 1, 3, 4, and 6 be outputs, and have 2, 5, and 7 be inputs. Don't overlook CA1, CA2, CB1, and CB2 either. They have a lot of functions besides just parallel-port handshaking.
Quote:
Anyone have recommendations for writing programs? I've just been writing it on paper, converting it all to hexadecimal, and then typing it up in a hex editor. I make a lot of mistakes especially when typing and converting to hexadecimal. It worked more or less when I was doing this on the VIC-20, but now that the programs are lengthier it's harder to manage.
That's where many of us started, and I think it's a good place to start. It lays a foundation of understanding that's hard to get for people who start out with more up-scale tools.
There's a list of assemblers, mostly free, at
http://wilsonminesco.com/links.html#assem, and also on this site at
http://6502.org/tools/asm/ . I like, and would recommend, the
C32 assembler I use; but if you really need it to be free, one I have not used but looks really good is
As65, written by our own Andrew Jacobs (forum name BitWise).
Chromatix wrote:
You could use a text editor and an assembler like (most of) the rest of us. I'm using as65, from the cc65 compiler suite. Others have different preferences.
Should that say ca65 (instead of as65)? CA65 is part of the CC65 suite.