<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sun, 12 Mar 2006 21:04:39 +0000
From   : jgh@... (Jonathan Graham Harston)
Subject: Re: Advanced BASIC and Mouse support

Steve Fewell <kranser@...> wrote:
> I have Advanced BASIC working fine now, except that
> the MOUSE support does not work. BASIC gives the error
> 'Missing Code' when I try to use commands such as
> MOUSE ON, POINT TO, etc...
> 
> The manuals says that when AMX SuperROM is installed,
> it pulls HIMEM down to &A400 and the Advanced BASIC
 
No, it says that when you INSTALL the mouse driver veneer, it
pulls HIMEM down to &A400.
 
You need two distinct components:
 
* A mouse driver, such as the AMX ROM or my *Mouse command
(http://mdfs.net/Software/CommandSrc/Mouse).
 
* A mouse driver veneer, such as the amxmice library supplied with
Advanced BASIC, loaded with INSTALL "amxmice" and initialised with
PROCamxmice.
 
Advanced BASIC *should* have passed the various mouse commands to
the standard OSWORD 64 or ADVAL(7) and ADVAL(8) calls, but instead
jumps via a vector to an error message. Try:
 
   REPEAT PLOT 69,ADVAL(7),ADVAL(8):UNTIL FALSE
 
or the test program http://mdfs.net/Software/CommandSrc/Mouse/MouseTest
 
The amxmice library is dependant on the commands "*pointer",
"*buttons" and "*sensitivity" existing.  You will get errors such
as "Bad command: AMX ROM absent".
 
I've put a patched version at
http://mdfs.net/Software/BBCBasic/BBC/AdvBasic with those commands
commented out.
 
> Does the AMX SuperROM not contain the actual Driver
> that Advanced BASIC requires? Or am I doing something
> else wrong? Does anyone have such a Driver?
 
The AMX ROM contains the *mouse driver*, "amxmice" is the Advanced
BASIC *mouse veneer*, written as a INSTALL library.
 
-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
NOBODY expects the MACRO ARGUMENT INQUISITION!  Our chief weapon is
unexpected addressing modes... unexpected addressing modes and local
branches out of range.  Our two weapons are unexpected addressing modes and
local branches out of range and quoted argument lists.  Our *three* weapons
are unexpected addressing modes, local branches out of range, quoted
argument lists, and an almost fanatical devotion to the pope.  *Amongst* our
weapons are such elements as unexpected addressing modes, local branches out
of range... I'll come in again.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>