When you do myArray[0] = "H" the ASCII code for 'H' (which is 72) will be what ends up in the variable. If you want to display it as a decimal number on a LCD or UART then use the DEC modifier:myArray[0] = "H"Code:LCDOUT $FE, 1, DEC myArray[0]
myArray[0] = 72
myArray[0] = %01001000
myArray[0] = $48
All of the above are equal - it's just different interpretations of the same thing, in this case the decimal value 72.
/Henrik.




Bookmarks