From: Groepaz (groepaz_at_gmx.net)
Date: 2003-09-29 02:54:04
probably related to the problem i had with my directory stuff before...
unsigned char c=0x23;
int test(void)
{
return c;
}
results in
000000r 1 A2 00 ldx #$00
000002r 1 AD rr rr lda _c
000005r 1 A0 01 ldy #$01
000007r 1 20 rr rr jsr ldaxidx
00000Ar 1 4C rr rr jmp L0005
00000Dr 1 60 L0005: rts
:=P explicitly casting c to an int fixes it... (i'm kindof puzzled about
the jmp though ;))
000000r 1 A2 00 ldx #$00
000002r 1 AD rr rr lda _c
000005r 1 4C rr rr jmp L0005
000008r 1 60 L0005: rts
this one is kindof a showstopper atm, many things affected by it :( its also
why the progs from the testsuite that read a file as input dont work - fgetc
is affected too :(
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-29 03:00:05 CEST