From: THOMAS C. <VCECMP.CHEFTH@MEMO.VOLVO.SE> - 2000-11-27 06:37:49
|
--- Inkommet från VCECMP.CHEFTH +46 16 151241 00-11-27 07:36 Hello ! I have trouble when I want to insert non-ascii chars into a string for display on a LCD. My declaration looks like this: code unsigned char * code test="QW\x041QW"; And should result in a string like: QWAQW But the result is: 0000 55 _test: 0000r02s00 56 .byte _str_0,(_str_0 >> 8) 0002 57 Ftest$_str_0$0$0 == . 0002 58 _str_0: 0002 51 57 78 30 34 31 59 .ascii "QWx041QW" 51 57 000A 00 60 .db 0x00 In the real program the hex-code is not an 'A' but <8 or >128. / Thomas ---- 00-11-27 07:36 ---- Sänt till ------------------------------- -> sdcc-user(a)lists.sourceforge.net |