From mint-bounce@lists.fishpool.fi  Sat Dec 12 17:59:57 2009
X-Session-Marker: 616E6F64796E654078706C6F726E65742E636F6D
X-Filterd-Recvd-Size: 1946
From: "Roger Burrows" <rfburrows@ymail.com>
Organization: Anodyne Software
To: mint <mint@lists.fishpool.fi>
Date: Sat, 12 Dec 2009 17:58:15 -0500
MIME-Version: 1.0
Subject: Re: [MiNT] Mintlib: Bindings for EsetShift() and VsetMask()
Message-ID: <4B23D9B7.3903.22FCE8@rfburrows.ymail.com>
Priority: normal
In-reply-to: <0944D844-C44A-41C0-9835-EE146E4BEF16@gmail.com>
References: <0944D844-C44A-41C0-9835-EE146E4BEF16@gmail.com>
X-mailer: Pegasus Mail for Windows (4.41)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: rfburrows@ymail.com
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 Peter,
On 12 Dec 2009 at 2:49, Peter Persson wrote:
> 
> The current bindings for VsetMask() (falcon.h) and EgetShift() (osbind.h)
> looks as follows: 
> 
> #define VsetMask(andmask,ormask)					\
> 	(short)trap_14_www((short)150,(short)(andmask),(short)(ormask)) 
> 
> #define         EsetShift(mode)						\
> 	(void)trap_14_ww((short)(80),(short)mode)
> 
> 
> According to the Atari Compendium and Tos.hyp, it should be as follows:
> 
> #define VsetMask(andmask,ormask)					\
> 	(short)trap_14_www((short)150,(long)(andmask),(long)(ormask),(short)(overlay)
> ) 
> 
> #define         EsetShift(mode)						\
> 	(short)trap_14_ww((short)(80),(short)mode)
> 
> I don't know which procedures are needed to get this into the CVS, but I guess
> it could be a good idea to fix it..
> 

Hmmm, according to my copy of the Compendium, the binding for VsetMask is:
	void VsetMask(long ormask,long andmask,short overlay);

The Compendium and the TT TOS release notes agree with your revision, i.e.:
	short EsetShift(short mode);

Regards,
Roger
P.S. Nice to see all this activity these days!


