sci4me wrote:
That was for my processor by the way. I had it set up with >64K of ram... in the simulator. But, it worked
I think the point that BDD was making is that # has a special meaning to the assembler. It means "treat the next expression as a literal". You wouldn't write "2 = 10" in C code. It doesn't make any sense. By omitting the #, you are telling the assembler that it is an address rather than a literal "memory[2] = 10".
That being said, assemblers aren't known for having the greatest error checking around, so it's entirely possible that one would accept that input and turn it into God knows what
If you haven't done so already, you should download the Kowalski simulator and play around with some 6502 code to learn the finer points. Heck, you could even try out having your parser/lexer generate some object code for it (if you're in for a real adventure
)