• SWI equivalent of *Status

    From phorefaux@phorefaux@gmail.com (phorefaux) to comp.sys.acorn.programmer on Fri Jan 3 22:02:41 2025
    From Newsgroup: comp.sys.acorn.programmer

    Hi all,

    Is there an SWI equivalent to *status ?

    Thanks
    Paul

    --
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jean-Michel@jmc.bruck@orange.fr to comp.sys.acorn.programmer on Sat Jan 4 11:26:28 2025
    From Newsgroup: comp.sys.acorn.programmer

    In message <d0fc817d24e05ac86d7b06cf1982c754@www.novabbs.org>
    phorefaux@gmail.com (phorefaux) wrote:

    Hi all,

    Is there an SWI equivalent to *status ?

    Thanks
    Paul

    From BASIC
    OSCLI "status"
    from C
    system("status")
    or
    OS_CLI("status")
    ....
    This executes a string passed to it as if it has been typed in the CLI.


    Happy new year everybody.
    --
    Jean-Michel
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Matthew Phillips@spam2011m@yahoo.co.uk to comp.sys.acorn.programmer on Sat Jan 4 12:56:13 2025
    From Newsgroup: comp.sys.acorn.programmer

    In message <d0fc817d24e05ac86d7b06cf1982c754@www.novabbs.org>
    on 3 Jan 2025 phorefaux wrote:

    Is there an SWI equivalent to *status ?

    Perhaps what you are looking for are OS_Byte 161 (&A1) and 162 (&A2) which allow you to read and write the non-volatile CMOS memory. This is where
    the settings shown by *Status are stored.
    --
    Matthew Phillips
    Durham
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From phorefaux@phorefaux@gmail.com (phorefaux) to comp.sys.acorn.programmer on Tue Jan 7 21:27:49 2025
    From Newsgroup: comp.sys.acorn.programmer

    On Sat, 4 Jan 2025 12:56:13 +0000, Matthew Phillips wrote:

    In message <d0fc817d24e05ac86d7b06cf1982c754@www.novabbs.org>
    on 3 Jan 2025 phorefaux wrote:

    Is there an SWI equivalent to *status ?

    Perhaps what you are looking for are OS_Byte 161 (&A1) and 162 (&A2)
    which
    allow you to read and write the non-volatile CMOS memory. This is where
    the settings shown by *Status are stored.

    Thanks. This looks to be what I'm looking for.

    Regards
    Paul

    --
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From druck@news@druck.org.uk to comp.sys.acorn.programmer on Wed Jan 8 20:35:20 2025
    From Newsgroup: comp.sys.acorn.programmer

    On 07/01/2025 21:27, phorefaux wrote:
    On Sat, 4 Jan 2025 12:56:13 +0000, Matthew Phillips wrote:

    In message <d0fc817d24e05ac86d7b06cf1982c754@www.novabbs.org>
    -aon 3 Jan 2025 phorefaux wrote:

    Is there an SWI equivalent to *status ?

    Perhaps what you are looking for are OS_Byte 161 (&A1) and 162 (&A2)
    which
    allow you to read and write the non-volatile CMOS memory.-a This is where
    the settings shown by *Status are stored.

    Thanks.-a This looks to be what I'm looking for.

    Note that the interpretation of the CMOS bytes does vary with each
    version of the OS.

    ---druck
    --- Synchronet 3.21d-Linux NewsLink 1.2