Here is a byproduct of my process of learning assembler assembler.txt
Here are the documents that I reference in assembler.txt
assembler.pdf
avr_instruction_set.pdf
tiny44_short.pdf
tiny44_long.pdf
mov txbyte, rxbyte
rcall putchar
rcall blink
In the code here I have bound "T" to "th" and "I" to "ing". From the table above, it is apparent that the character code for "T" is the binary number 1010100, and that for "I" is 1001001. Here is the main loop in the Thing code.
loop:
rcall getchar
mov txbyte, rxbyte
icase:
cpi txbyte, 0b1001001
brne tcase
print msgi
msgi: .db "ing",0
ldi txbyte,10
rcall putchar
rjmp loop
tcase:
cpi txbyte, 0b1010100
brne onward
print msgt
msgt: .db "th",0
rjmp loop
onward:
rcall putchar
rcall blink
mov txbyte, rxbyte
rcall putchar
rcall blink
ldi txbyte,10
rcall putchar
rjmp loop