Map range: Difference between revisions

m
Line 60:
This method is very convenient for implementing ASCII into hardware that lacks a built-in system font (like the NES). You can save graphics memory by mapping tile number 0 to ASCII 32, tile number 01 to 33, and so on. Had you mapped them "correctly," (i.e. tile number 32 to ASCII 32) you would still need a "blank tile" as tile number zero. So the easier solution is to subtract 32 from the character code before printing.
 
<lang 6502asm>;runs during non-maskable interrupt.
PrintChar: ;runs during non-maskable interrupt.
;a = char to print
SEC
1,489

edits