From mint-bounce@lists.fishpool.fi  Mon Jan 18 17:48:32 2010
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
From: Eero Tamminen <oak@helsinkinet.fi>
Organization: Koti
To: mint@lists.fishpool.fi
Subject: Re: [MiNT] libgem16: vs_color
Date: Tue, 19 Jan 2010 00:46:50 +0200
User-Agent: KMail/1.9.9
References: <op.u6o8ay1nofd6j1@descaro.cpe.ish> <op.u6q1xuu3ofd6j1@descaro.cpe.ish> <op.u6q2j3tqofd6j1@descaro.cpe.ish>
In-Reply-To: <op.u6q2j3tqofd6j1@descaro.cpe.ish>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201001190046.50230.oak@helsinkinet.fi>
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: oak@helsinkinet.fi
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

Hi,

On Tuesday 19 January 2010, Helmut Karlowski wrote:
> void
> set_syspalette(short vdih, struct rgb_1000 *palette)
> {
>    short i, pens, rgb[3];
>    //if( C.fvdi_version == 0 ) return; /* as long as this doesn't work
> reliable */
>
>    if (screen.planes > 8)
>      pens = 256;
>    else
>      pens = 1 << screen.planes;
>
> //  display("set syspal - %d pens", pens);
>    BLOG((0,"set_syspalette:vdih=%d rgb=%lx", vdih, rgb));
> ...
>
> Here rgb is odd. Now tell me!

I wonder whether odd alignment is already in function arguments
or only in local stack args.  What about vdih, i, pens and palette variable
addresses?

(Does GCC pass some of the args in registers like e.g. pure-C does?)


	- Eero


