ASCII Hex Equivalents

Apple I | 1976 | Schematics, subroutines, etc.

Program to print ASCII HEX equivalent of any keyboard character

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Error in code

There is a mistake in the code in ascii.txt - it seems is reading $D811 when it is wanting to read KBDCR - ie. $D011. There is also an extraneous line at the top of the file (09f0: 20).

I think the program should be:



0700: A9 8D     ; LDA $8D   == newline char

0702: 20 EF FF  ; JSR $FFEF == ECHO

0705: AD 11 D0  ; LDA $D011 == KBDCR

0708: 10 FB     ; BPL -5    == 0705

070A: AD 10 D0  ; LDA $D010 == KBD

070D: AA        ; TAX

070E: 20 EF FF  ; JSR $FFEF == ECHO

0711: A9 A0     ; LDA $A0   == space char

0713: 20 EF FF  ; JSR $FFEF == ECHO

0716: 8A        ; TXA

0717: 20 DC FF  ; JSR $FFDC == PRBYTE

071A: 4C 00 07  ; JMP $0700 == start

PS: sorry for the formatting - seems that applefritter doesn't honour the code tags.