Re: [cc65] Two cc65 Ideas

From: Joseph Rose <rose.joseph121yahoo.com>
Date: 2012-01-30 17:38:30
Thank you.  That should be useful.



________________________________
From: Christopher Pow <christopher.s.pow@gmail.com>
To: cc65@musoftware.de 
Sent: Monday, January 30, 2012 11:21 AM
Subject: Re: [cc65] Two cc65 Ideas




> 2. two or more structs can be aliased to the same address in memory.
>
>

Don't you just mean:

// A pointer to some open RAM
char *someMemory = 0x200; 

typedef struct 
{
   int a;
   int b;
   int c;
} Astruct;

typedef struct
{
   char a;
   char b;
   char c;
} Bstruct;

// Lay an Astruct and a Bstruct over the open RAM area.
Astruct* pA = someMemory;
BStruct* pB = someMemory;
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jan 30 17:38:38 2012

This archive was generated by hypermail 2.1.8 : 2012-01-30 17:38:42 CET