Re: [cc65] bit-fields

From: <silverdr1wfmh.org.pl>
Date: 2009-08-30 13:56:25
On 2009-08-30, at 13:40, Groepaz wrote:

>>
>> Size of int = 2
>> Result = 00F2
>>
>> Sure - I shouldn't bother much about the uninitialised part of the
>> struct representation but am simply flagging that as it seems one  
>> byte
>> is differently handled than the other - it makes me suspicious and
>> possibly it might be worth checking for bugs there...
>
> probably coincedence - the local variable will be located on the  
> (software)
> stack, and (if not initialized) the initial value will be more or  
> less random
> because of that.
>

Quite possible. Accessing those bits seem to work ok.

-- 
SD!
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 30 13:56:33 2009

This archive was generated by hypermail 2.1.8 : 2009-08-30 13:56:35 CEST