Re: [cc65] Possible Multi-Subscript Bug

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2011-08-24 17:13:50
I'm sorry.  It works now.


From: Marc 'BlackJack' Rintsch <marc@rintsch.de>
To: cc65@musoftware.de
Sent: Monday, August 8, 2011 10:02 AM
Subject: Re: [cc65] Possible Multi-Subscript Bug

Hi Joseph,

> I am working on an example program for Hidden64 that requires
> multi-dimensional array.  When I try to get the address of an
> element of the array, I get cryptic error messages.

It would be helpful to show the messages — copied 1:1 from the terminal.  
And of course the source lines in question plus all relevant 
declarations.

> This happens in an argument to the memcpy() function and I believe
> elsewhere also.

Why don't you just try if it is connected to being an argument to the 
function or not?

> Using a single-subscript array and multiplying seems to work. 

Do you have declared the multi dimensional array as such *with explicit 
dimensions*?  Otherwise it is impossible for the compiler to determine 
the dimensions.

Ciao,
    Marc 'BlackJack' Rintsch
-- 
Reality is for people who can't cope with drugs.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 24 17:14:02 2011

This archive was generated by hypermail 2.1.8 : 2011-08-24 17:14:06 CEST