Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Save registers
zero addr
Loop:
load character
if character = 0h then goto FinishPrint
if character = ah or dh or 1Bh then goto Loop
'Skip special characters, more to come...
poke B800h, addr, characeter
inc addr
poke B800h, addr, 1Fh ' Bright white on Blue text
inc addr
goto Loop
FinishPrint:
Restore Registers
When you say it prints a never-ending string of 0x1F, do you mean that it prints a triangle instead characters, and that the triangles are all different colours?
Or does it display "1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh1fh..."?
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.