Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #735

Re: DEVICEFS Serial Driver RPC examples

From Ron <beeb@woosh.co.nz>
Newsgroups comp.sys.acorn.programmer
Subject Re: DEVICEFS Serial Driver RPC examples
Date 2011-09-19 02:50 +1200
Organization -
Message-ID <516fb31452.beeb@ron1954.woosh.co.nz> (permalink)
References <d698181452.cferris@cferris.freeuk.com> <265b6a1452.beeb@ron1954.woosh.co.nz> <j545kg$vk3$1@dont-email.me>

Show all headers | View raw


In message <j545kg$vk3$1@dont-email.me>
          druck <news@druck.org.uk> wrote:

> On 18/09/2011 02:32, Ron wrote:
> > I got a Syntax error on my Iyonix.
> > Changing this definition
> >
> > DEFFnd(A%,B%,C%,D%)
> >     CALL driver TO A%
> > =A%
> >
> > I changed second line to
> > CALL driver,A%
> > and it seems to run, but not sure if it's 100% correct.
> 
> The original code was attempting to return the value of register R0 from 
> the driver code via A%, using some non standard syntax which may be 
> available on other variants of BASIC. You've changed it to pass the 
> value of A% in register R0 *to* the driver code.
> 
> The way to do it which will work on all versions of BASIC is:-
> 
>    A% = USR(driver)
> 
> The values in A% to H% will automatically be copied in to registers R0 
> to R7 and passed to the driver. A% will be updated with the value to R0 
> on exit from the driver.
> 
> ---druck

Thanks for getting me past that hurdle, I now have the 'Example'
program chatting between RPC's and the settings seem to remain in
existance for the use of serial: from the CLI after quitting.
For example, using 'Example' to set the speed to 115200 allows
me to pipecopy to serial: a text file to the other rpc which is
running !Connector in ASCII mode (also set at 115200)
I have yet to find wether all of the block driver is used by
serial: but so far everything has been rock solid using small
data flows.

The Iyonix and internal32 doesn't initialise with 'Example' 
It may be that the internal32 driver was written at a later date
and by a different person.

Ron M.  
  

 

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

DEVICEFS Serial Driver RPC examples cferris@freeRemoveuk.com.invalid - 2011-09-17 11:39 +0100
  Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-18 13:32 +1200
    Re: DEVICEFS Serial Driver RPC examples druck <news@druck.org.uk> - 2011-09-18 08:12 +0100
      Re: DEVICEFS Serial Driver RPC examples cferris@freeRemoveuk.com.invalid - 2011-09-18 09:34 +0100
      Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-19 02:50 +1200
        Re: DEVICEFS Serial Driver RPC examples cferris@freeRemoveuk.com.invalid - 2011-09-18 17:46 +0100
          Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-19 08:34 +1200
            Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-19 09:08 +1200
              Re: DEVICEFS Serial Driver RPC examples "John Williams (News)" <UCEbin@tiscali.co.uk> - 2011-09-18 23:15 +0200
                Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-21 14:14 +1200
            Re: DEVICEFS Serial Driver RPC examples cferris@freeRemoveuk.com.invalid - 2011-09-18 22:42 +0100
              Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-19 10:57 +1200
              Re: DEVICEFS Serial Driver RPC examples Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-09-19 18:37 +0200
                Re: DEVICEFS Serial Driver RPC examples Thomas Milius <Thomas-Milius@t-online.de> - 2011-09-20 19:49 +0200
                Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-21 11:34 +1200
                Re: DEVICEFS Serial Driver RPC examples Thomas Milius <Thomas-Milius@t-online.de> - 2011-09-23 20:55 +0200
                Re: DEVICEFS Serial Driver RPC examples Ron <beeb@woosh.co.nz> - 2011-09-24 19:16 +1200

csiph-web