Character codes: Difference between revisions

Content added Content deleted
Line 2,607: Line 2,607:
call &BB5a</lang>
call &BB5a</lang>


Printing a character code given a character takes slightly more work. You'll need to separate each hexadecimal digit of the ASCII code, convert each digit to ASCII, and print it. Once again, thanks to Keith of [http://www.chibiakumas.com] for this code:
Printing a character code given a character takes slightly more work. You'll need to separate each hexadecimal digit of the ASCII code, convert each digit to ASCII, and print it. Once again, thanks to Keith of [[http://www.chibiakumas.com]] for this code:
<lang z80>ShowHex:
<lang z80>ShowHex:
push af
push af