[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Correct XBios function ID for VsetMask?



Well, on the other hand, my version (which was converted to hyp; April 1994) says 92 (0x5C).

On Fri, Mar 1, 2013 at 10:40 PM, Roger Burrows <rfburrows@ymail.com> wrote:
On 1 Mar 2013 at 21:21, Eero Tamminen wrote:
>
> What's the correct XBios function numbers for VsetMask?
>
> Compedium says:
> ----
> 146 (0x92)    VsetMask()
> ----
>
> AHCC header says:
> ----
> $ grep -i vsetmask tos.h
> void    XBIOS( 92)       VsetMask( int ormask, int andmask, int overlay );
> ----
>
> VBCC header says:
> ----
> $ grep -A7 -i vsetmask tos.h
> __regsused("d0/d1/a0/a1") VOID
> VsetMask(__reg("d0")LONG,__reg("d1")LONG,__reg("d2")WORD) =
> ...
>   "\tmove.w\t#92,-(sp)\n"
>   "\ttrap\t#14\n"
> ----
>
> MiNTlib header says:
> ----
> $ grep -i vsetmask falcon.h
> #define VsetMask(andmask,ormask)                                     \
>      (short)trap_14_www((short)150,(short)(andmask),(short)(ormask))
> ----
>
> TOSHYP:
>       http://toshyp.atari.org/en/004014.html
> says:
> ----
> 92    0x5C    VsetVars        Falcon-TOS
> 150   0x96    VsetMask        TOS
> ----
>

My copy of the Compendium (the printed one) says 150 (0x96).  Which version of
the Compendium are you referring to?  Also, the official Atari Falcon
documentation (available on the Atari docs site) says VsetMask is 150 (0x96).

VsetVars is an undocumented opcode, but is implemented in Falcon TOS as opcode
92 (0x5c).

It would seem that AHCC, VBCC, and your copy of the Compendium are incorrect.

Roger






--
MiKRO / Mystic Bytes
http://mikro.atari.org