[vcf-midatlantic] Woohoo!

Evan Koblentz evan at vcfed.org
Sun Jul 30 13:09:35 EDT 2017


> There’s an entry for PRIMM, and if follow that page to the last version (by Russ Archer) you’ll see a very nice way of doing it.  Just change to your local character-output subroutine.
> 
>      jsr     PUTSTRI
>      db      “Hello world.  Wow.”
>      db      0

Interesting! What are the pros/cons of doing it this way vs. the way 
Adam posted (http://ceos.io/dev/hello.s)?


> Suggestions on your original code:
> 
> Use labels, not hard coded addresses (“magic numbers”).  Most assemblers also allow character constants, like:
> 
>          lda     #’H’
>      jsr     OUTCH

I'll try that. I suppose the book starts with hard-coded addresses to 
teach readers what happens underneath.


> Etc.  Use of magic numbers is highly discouraged and would fail pretty much any code review.

Understood.


> But… congrats on your first 6502 assembly language program!

Thanks!



More information about the vcf-midatlantic mailing list