Re: [cc65] Lynx target

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2003-02-26 01:29:12


>>> Ullrich von Bassewitz <uz_at_musoftware.de> 02/25/03 03:43PM >>>

>But since these problems are triggered by using the optimizer, and you state
>that the problems vanish when doing so, I would say that your problems have a
>different cause.

I'll have to do some more testing, but since you stated that no one has tested the 65C02 code generation... it may be that something is not generating properly.  I have saved three assembly listings from my programs compiled in different ways (one with -O, one with --cpu 65C02 and one without, but haven't looked at them yet.)  Most likely this stems from errors on my part, but I'll let you know if it's not.

>> Another question: I have setup a _mikey.h and _suzy.h file with a struct
>> layout of the hardware address used by those chips (as per the _antic.h file)
>> and I have a #define SUZY (*(struct __suzy *) 0xFC00) in my lynx.h file.  How
>> do I use this structure?  If I do var = SUZY.joystick in my code the compiler
>> complains bitterly.
>
>Just using the struct as any other struct variable should work. You may have
>an error somewhere in your definition, but since "the compiler complains
>bitterly" is just as good as "it does not work", I'm not able to diagnose
>anything else:-)

I would have expected the compiler to complain at the #include for the struct and #define if there were something wrong with it, but it only complains when I try to use the struct.

test.c(27): Error: Identifier expected
test.c(27): Error: Illegal function call
test.c(27): Error: Integer expression expected
test.c(27): Error: `;' expected
test.c(27): Error: Expression expected
test.c(27): Error: `;' expected
test.c(27): Error: Expression expected
test.c(27): Error: `;' expected
test.c(27): Error: Expression expected
test.c(27): Error: `;' expected
test.c(27): Error: Expression expected
test.c(27): Fatal: Too many errors

That's my error message above when trying to use the struct.


Shawn Jefferson


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-02-26 01:30:43 CET