Character codes: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→{{header|Z80 Assembly}}: corrected external link) |
||
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 Chibiakumas]] for this code: |
||
<lang z80>ShowHex: |
<lang z80>ShowHex: |
||
push af |
push af |