From: Groepaz (groepaz_at_gmx.net)
Date: 2003-09-30 20:33:29
mmmh... looks like this is still screwed :(
printf("%3d : %3d\n",'\0',0);
printf("%3d : %3d\n",'\01',1);
printf("%3d : %3d\n",'\02',2);
printf("%3d : %3d\n",'\03',3);
printf("%3d : %3d\n",'\04',4);
printf("%3d : %3d\n",'\05',5);
printf("%3d : %3d\n",'\06',6);
printf("%3d : %3d\n",'\07',7);
printf("%3d : %3d\n",'\10',8); // prints 20 : 8
printf("%3d : %3d\n",'\17',15);
printf("%3d : %3d\n",'\20',16);
printf("%3d : %3d\n",'\77',63);
printf("%3d : %3d\n",'\100',64);
printf("%3d : %3d\n",'\177',127); // prints 223 : 127
weird how '\17' works correctly, but '\10' gives a wrong value which is even
larger :=P
gpz
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-09-30 20:38:37 CEST