Brilliant, that did the trick!

I can work with that as anyway most of the variable are in an array (with compile time knows
indexes)  of structs anyway so I need to just wrap all variables in in struct.

Of course it would be nice and logical if the compiler had understood that the variables
are in the same bank in this situation.

Many thanks for your help.

br Kusti

From: "" <>
Reply-To: "" <>
Date: Mon, 23 Jun 2014 07:14:09 +0300
To: "" <>
Subject: Re: [Sdcc-user] PIC forcing variables to be on the same bank

struct {
char counter;
short NCO;
short SPEED;
short OLDV;
/*... */
} grp;

This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general.