Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Reading the contents of an OS variable from a BASIC program.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 31 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Gazza  
View profile   Translate to Translated (View Original)
 More options 5 Oct, 23:09
Newsgroups: comp.sys.acorn.programmer
From: Gazza <use...@garethlock.com>
Date: Mon, 5 Oct 2009 15:09:46 -0700 (PDT)
Local: Mon 5 Oct 2009 23:09
Subject: Reading the contents of an OS variable from a BASIC program.
I need to be able to read the value of an OS variable and transfer it
to a BASIC string. I seem to remember a SWI something like
"OS_ReadVarVal" or something like that, but this was a long long time
ago.

Can anyone confirm this??


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Kendrick  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 00:24
Newsgroups: comp.sys.acorn.programmer
From: Rob Kendrick <n...@rjek.com>
Date: Tue, 6 Oct 2009 00:24:06 +0100
Local: Tues 6 Oct 2009 00:24
Subject: Re: Reading the contents of an OS variable from a BASIC program.
On Mon, 5 Oct 2009 15:09:46 -0700 (PDT)

Gazza <use...@garethlock.com> wrote:
> I need to be able to read the value of an OS variable and transfer it
> to a BASIC string. I seem to remember a SWI something like
> "OS_ReadVarVal" or something like that, but this was a long long time
> ago.

> Can anyone confirm this??

StrongHelp with the freely-downloadable PRM manuals is your friend.
Drobe used to have an HTML interface to them; don't know if they still
do.

B.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matthew.wightman@gmail.co m  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 07:31
Newsgroups: comp.sys.acorn.programmer
From: "matthew.wight...@gmail.com" <matthew.wight...@gmail.com>
Date: Mon, 5 Oct 2009 23:31:20 -0700 (PDT)
Local: Tues 6 Oct 2009 07:31
Subject: Re: Reading the contents of an OS variable from a BASIC program.
On Oct 6, 12:24 am, Rob Kendrick <n...@rjek.com> wrote:

> On Mon, 5 Oct 2009 15:09:46 -0700 (PDT)

> Gazza <use...@garethlock.com> wrote:
> > I need to be able to read the value of an OS variable and transfer it
> > to a BASIC string. I seem to remember a SWI something like
> > "OS_ReadVarVal" or something like that, but this was a long long time
> > ago.

> > Can anyone confirm this??

> StrongHelp with the freely-downloadable PRM manuals is your friend.
> Drobe used to have an HTML interface to them; don't know if they still
> do.

> B.

The manuals are still there.

The index for the manuals is at http://www.drobe.co.uk/show_manual.php?manual=/sh-cgi
.

The relevant page for OS_ReadVarVal seems to be
http://www.drobe.co.uk/show_manual.php?manual=/sh-cgi?manual=OS%26pag...
.

--
Matthew


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Adams  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 17:17
Newsgroups: comp.sys.acorn.programmer
From: Alan Adams <a...@adamshome.org.uk>
Date: Tue, 06 Oct 2009 17:17:52 +0100
Local: Tues 6 Oct 2009 17:17
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In message <a636d4f7-dc0c-4850-b788-82f3f6d08...@l34g2000vba.googlegro
ups.com>
          "matthew.wight...@gmail.com" <matthew.wight...@gmail.com>
wrote:

DEF PROCsetsysvar(varname$,varval$)
LOCAL vallen%
LOCAL name% , val%
DIM name% LEN(varname$)+1, val% LEN(varname$)+1
$name%=varname$+CHR$(0)
$val%=varval$+CHR$(0)
vallen%=LEN(varval$)
SYS "OS_SetVarVal",name%,val%,vallen%,0,0
ENDPROC
:
DEF FNgetsysvar(varname$)
LOCAL name% ,val% ,vallen%
DIM name% LEN(varname$)+1,val% 200
$name%=varname$+CHR$(0)
SYS "XOS_ReadVarVal",name%,,-1 TO ,,vallen%
IF vallen%<0 THEN
SYS "OS_ReadVarVal",name%,val%,200,0,3 TO ,,vallen%
val%?vallen%=13
ELSE
?val%=13
ENDIF
=$val%

--
Alan Adams, from Northamptonshire
a...@adamshome.org.uk
http://www.nckc.org.uk/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Theo Markettos  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 20:33
Newsgroups: comp.sys.acorn.programmer
From: Theo Markettos <theom+n...@chiark.greenend.org.uk>
Date: 06 Oct 2009 20:33:58 +0100 (BST)
Local: Tues 6 Oct 2009 20:33
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Alan Adams <a...@adamshome.org.uk> wrote:
> LOCAL name% , val%
> DIM name% LEN(varname$)+1, val% LEN(varname$)+1

Don't have LOCAL DIMs, because they're memory leaks.  BASIC allocates the
memory, and at the end of the function loses the pointer to it.  But the
memory is still allocated, and if you do this regularly you'll run out.
There's no way to free memory in plain BASIC.

I think Basalt might provide a fix to this.  The nastier way to do it is to
just use a static block defined to be 'large enough' on initialisation.

Theo


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Adams  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 20:55
Newsgroups: comp.sys.acorn.programmer
From: Alan Adams <a...@adamshome.org.uk>
Date: Tue, 06 Oct 2009 20:55:36 +0100
Local: Tues 6 Oct 2009 20:55
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In message <o+B*PB...@news.chiark.greenend.org.uk>
          Theo Markettos <theom+n...@chiark.greenend.org.uk> wrote:

> Alan Adams <a...@adamshome.org.uk> wrote:
>> LOCAL name% , val%
>> DIM name% LEN(varname$)+1, val% LEN(varname$)+1
> Don't have LOCAL DIMs, because they're memory leaks.  BASIC allocates the
> memory, and at the end of the function loses the pointer to it.  But the
> memory is still allocated, and if you do this regularly you'll run out.
> There's no way to free memory in plain BASIC.
> I think Basalt might provide a fix to this.  The nastier way to do it is to
> just use a static block defined to be 'large enough' on initialisation.

An earlier version did just that. I revised it to this because it's in
a library of general purpose routines, and I wanted to avoid a
separate initialisation routine. I didn't realise it was a memory leak
though. Fortunately I call this very rarely.

--
Alan Adams, from Northamptonshire
a...@adamshome.org.uk
http://www.nckc.org.uk/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 22:59
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Tue, 06 Oct 2009 22:59:59 +0100
Local: Tues 6 Oct 2009 22:59
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In article <o+B*PB...@news.chiark.greenend.org.uk>,
   Theo Markettos <theom+n...@chiark.greenend.org.uk> wrote:

> Alan Adams <a...@adamshome.org.uk> wrote:
> > LOCAL name% , val%
> > DIM name% LEN(varname$)+1, val% LEN(varname$)+1

> Don't have LOCAL DIMs, because they're memory leaks.  BASIC allocates the
> memory, and at the end of the function loses the pointer to it.  But the
> memory is still allocated, and if you do this regularly you'll run out.
> There's no way to free memory in plain BASIC.

Or, use DIM LOCAL which is in the version of BASIC that you can freely
download from the RISC OS Open site...

  DIM name% LOCAL size%

Just pop BASIC and BASICTrans into !Boot.Choices.Boot.PreDesk to load them
during boot (I don't think BASIC will be RMRun from PreDesk - it should be
RMLoaded - if it's RMRun, your boot sequence will drop into BASIC!).

  http://www.riscosopen.org/content/downloads/module-zipfiles

(IMO: everyone should be running the latest BASIC so that people who write
BASIC programs can use the newer features.)

Ta,

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Drain  
View profile   Translate to Translated (View Original)
 More options 6 Oct, 11:07
Newsgroups: comp.sys.acorn.programmer
From: Steve Drain <st...@kappa.me.uk>
Date: Tue, 6 Oct 2009 10:07:25 +0000
Local: Tues 6 Oct 2009 11:07
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Gazza wrote:
> I need to be able to read the value of an OS variable and transfer it
> to a BASIC string. I seem to remember a SWI something like
> "OS_ReadVarVal" or something like that, but this was a long long time
> ago.

> Can anyone confirm this??

I'm probably flogging a dead horse, but:

 string$=SYS(sys_var_name$)

There are SYS statements to set and unset system variables, too. ;-)

--
 ;  ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
 ;,'    keywords, dynamic memory for arrays and blocks, new variable types.
 ;',    Legal, fast and simple to use. Freeware - version 0.98ß - 19 Aug 03
,;  ',, Steve Drain, Kappa : http://www.kappa.me.uk/basalt.htm


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pitt  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 09:03
Newsgroups: comp.sys.acorn.programmer
From: David Pitt <n...@pittdj.co.uk>
Date: Wed, 7 Oct 2009 09:03:31 +0100
Local: Wed 7 Oct 2009 09:03
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Well that is one way of destroying VRPC/Mac. With the two modules in PreDesk
the Boot disappeared into a morass of errors. VRPC had to be stopped from
the Mac desktop, the modules removed and the all then /DS_Store files that
the Mac filer installs had to be removed.

Take 2 then, rmloading the modules from the desktop. This appeared to work,
a test prog using the DIM LOCAL syntax ran without error. The snag was that
!Locate's !Boot threw a wobbler, an abort on data transfer from this
innocent looking line :-

   theme_path$=theme_dir$+"."+theme$

Take 2a, trying the same on a real RiscPC/OS6.06 produces a similar data
abort.  

> (IMO: everyone should be running the latest BASIC so that people who write
> BASIC programs can use the newer features.)

Wouldn't that be nice, but why just BASIC, if we all ran the latest OS we
could all use all the latest features. Anyway in this instance there does
seem to be an impediment.

Obviously this tip is only applicable to the Iyonix but those two modules in
the Iyonix's !Boot causes a similar error rash to that on VRPC, and it also
trips up !Locate's !Run.

One last point, has not OS5's BASIC always had the DIM LOCAL option.

--
David Pitt
Snow Leopard - MessengerPro


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pitt  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 10:02
Newsgroups: comp.sys.acorn.programmer
From: David Pitt <n...@pittdj.co.uk>
Date: Wed, 7 Oct 2009 10:02:18 +0100
Local: Wed 7 Oct 2009 10:02
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Steve Drain <st...@kappa.me.uk> wrote:
> Gazza wrote:
> > I need to be able to read the value of an OS variable and transfer it to
> > a BASIC string. I seem to remember a SWI something like "OS_ReadVarVal"
> > or something like that, but this was a long long time ago.

> > Can anyone confirm this??

> I'm probably flogging a dead horse, but:

>  string$=SYS(sys_var_name$)

> There are SYS statements to set and unset system variables, too. ;-)

Basalt also supports DIM LOCAL, useful for OSes other than the Iyonix's.

--
David Pitt
Snow Leopard - MessengerPro


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Bazley  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 00:18
Newsgroups: comp.sys.acorn.programmer
From: Martin Bazley <martin.baz...@blueyonder.co.uk>
Date: Wed, 07 Oct 2009 00:18:49 +0100
Local: Wed 7 Oct 2009 00:18
Subject: Re: Reading the contents of an OS variable from a BASIC program.
The following bytes were arranged on 6 Oct 2009 by Ste (news):

Does this module work on 26-bit systems as well?

Also, is there a version history recorded anywhere?

--
  __<^>__
 / _   _ \  I don't have a problem with God; it's his fan club I can't stand.
( ( |_| ) )
\_>   <_/  ======================= Martin Bazley ==========================


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gazza  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 11:56
Newsgroups: comp.sys.acorn.programmer
From: Gazza <use...@garethlock.com>
Date: Wed, 7 Oct 2009 03:56:45 -0700 (PDT)
Local: Wed 7 Oct 2009 11:56
Subject: Re: Reading the contents of an OS variable from a BASIC program.
On Oct 6, 5:17 pm, Alan Adams <a...@adamshome.org.uk> wrote:

Thanks... Those two should do what I want them to do... As far as the
LOCAL DIM issue is concerned, I'll just make the whole lot dependant
on LibASH. (http://www.garethlock.com/acorn/invaders/libash.zip)

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Kortink  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 12:27
Newsgroups: comp.sys.acorn.programmer
From: John Kortink <kort...@inter.nl.net>
Date: Wed, 07 Oct 2009 13:27:44 +0200
Local: Wed 7 Oct 2009 12:27
Subject: Re: Reading the contents of an OS variable from a BASIC program.

On Tue, 06 Oct 2009 17:17:52 +0100, Alan Adams <a...@adamshome.org.uk>
wrote:

>[...]

>DEF PROCsetsysvar(varname$,varval$)
>LOCAL vallen%
>LOCAL name% , val%
>DIM name% LEN(varname$)+1, val% LEN(varname$)+1
>$name%=varname$+CHR$(0)
>$val%=varval$+CHR$(0)
>vallen%=LEN(varval$)
>SYS "OS_SetVarVal",name%,val%,vallen%,0,0
>ENDPROC

There's no need whatsoever for the explicit DIMming and
0-termination. On SYS calls, BASIC already takes care
of that for you (if there's a string parameter, its
0-terminated value is copied to the BASIC stack, and
discarded after the SYS call).

I.e. simply replace the whole PROC with :

SYS "OS_SetVarVal", varname$, varval$, LEN(varval$), 0, 0

>DEF FNgetsysvar(varname$)
>LOCAL name% ,val% ,vallen%
>DIM name% LEN(varname$)+1,val% 200
>$name%=varname$+CHR$(0)
>SYS "XOS_ReadVarVal",name%,,-1 TO ,,vallen%
>IF vallen%<0 THEN
>SYS "OS_ReadVarVal",name%,val%,200,0,3 TO ,,vallen%
>val%?vallen%=13
>ELSE
>?val%=13
>ENDIF
>=$val%

Same thing, also for the return value.

I.e. :

varval$ = ""

SYS "OS_ReadVarVal", varname$, STRING$(255, CHR$0), 255, 0,
3 TO , varval$

(varval$ will be "" if the variable is undefined, the STRING$
reserves a temporary buffer for the return value on the BASIC
stack, which is discarded after the SYS call)

John Kortink

--

Email    : kort...@inter.nl.net
Homepage : http://www.inter.nl.net/users/J.Kortink

There's something to be said, for getting out of bed


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 13:58
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 13:58:34 +0100
Local: Wed 7 Oct 2009 13:58
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In article <c6cc36a650.mar...@blueyonder.co.uk>,
   Martin Bazley <martin.baz...@blueyonder.co.uk> wrote:

> Does this module work on 26-bit systems as well?

It should do.

> Also, is there a version history recorded anywhere?

https://www.riscosopen.org/viewer/view/castle/RiscOS/Sources/Programm...

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Naulls  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 16:52
Newsgroups: comp.sys.acorn.programmer
From: Peter Naulls <pe...@chocky.org>
Date: Wed, 07 Oct 2009 08:52:40 -0700
Local: Wed 7 Oct 2009 16:52
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Gazza wrote:

[snip huge amount of quoting]

>> Alan Adams, from Northamptonshire
>> a...@adamshome.org.ukhttp://www.nckc.org.uk/- Hide quoted text -

>> - Show quoted text -

> Thanks... Those two should do what I want them to do... As far as the
> LOCAL DIM issue is concerned, I'll just make the whole lot dependant
> on LibASH. (http://www.garethlock.com/acorn/invaders/libash.zip)

I know this is probably a lost cause, because you've been asked many
times before.  Please don't quote the entire message, and especially
please don't signatures.  Looks like you're cutting and pasting
in Google Groups.  I know it has bad habits, but I don't think
even it is that broken.

Thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Drain  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 16:07
Newsgroups: comp.sys.acorn.programmer
From: Steve Drain <st...@kappa.me.uk>
Date: Wed, 7 Oct 2009 15:07:47 +0000
Local: Wed 7 Oct 2009 16:07
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Ste (news) wrote:
> Theo Markettos wrote:
> > Alan Adams wrote:
> > > LOCAL name% , val%
> > > DIM name% LEN(varname$)+1, val% LEN(varname$)+1
> > Don't have LOCAL DIMs, because they're memory leaks.  BASIC allocates the
> > memory, and at the end of the function loses the pointer to it.  But the
> > memory is still allocated, and if you do this regularly you'll run out.
> > There's no way to free memory in plain BASIC.
> Or, use DIM LOCAL which is in the version of BASIC that you can freely
> download from the RISC OS Open site...

>   DIM name% LOCAL size%

Or DIM LOCAL name% size%

which you can add to /any/ version of BASIC. ;-)

> Just pop BASIC and BASICTrans into !Boot.Choices.Boot.PreDesk to load them
> during boot (I don't think BASIC will be RMRun from PreDesk - it should be
> RMLoaded - if it's RMRun, your boot sequence will drop into BASIC!).

>   http://www.riscosopen.org/content/downloads/module-zipfiles

I love that "Just pop"; poking around in !Boot can be dodgy, but perhaps
you could provide an installation app, that could be included with new
software requiring new versions of BASIC. We once did that with the
SharedCLib etc.

> (IMO: everyone should be running the latest BASIC so that people who write
> BASIC programs can use the newer features.)

We have been over this ground before, and the likelihood of even a
majority of remaining users keeping up with the latest version of BASIC
seems very remote. And we do know that you cannot replace BASIC
dynamically.

--
 ;  ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
 ;,'    keywords, dynamic memory for arrays and blocks, new variable types.
 ;',    Legal, fast and simple to use. Freeware - version 0.98ß - 19 Aug 03
,;  ',, Steve Drain, Kappa : http://www.kappa.me.uk/basalt.htm


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Drain  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 16:56
Newsgroups: comp.sys.acorn.programmer
From: Steve Drain <st...@kappa.me.uk>
Date: Wed, 7 Oct 2009 15:56:58 +0000
Local: Wed 7 Oct 2009 16:56
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Theo Markettos wrote:
> Alan Adams wrote:
> > LOCAL name% , val%
> > DIM name% LEN(varname$)+1, val% LEN(varname$)+1
> Don't have LOCAL DIMs, because they're memory leaks.  BASIC allocates the
> memory, and at the end of the function loses the pointer to it.  But the
> memory is still allocated, and if you do this regularly you'll run out.
> There's no way to free memory in plain BASIC.

Look far enough back in c.s.a.p and you will find half a dozen or more
ways to grab a temporary block suggested, some more dodgy or awkward
than others. Here is a variant on one where BASIC actually frees the
heap memory itself:

  DEFPROClocal_dim
   LOCAL a%,a$,b%,b$
   a%=END:a$=STRING$(255," ")
   b%=END:b$=a$
   REM use as if DIM a% LOCAL 255, b% LOCAL 255 (or DIM a% LOCAL 511)
  ENDPROC

You must be very careful not to create any more objects on the heap.
There are other pitfalls, too, so of course I suggest using Basalt if
you do not have the ROOL version of BASIC. They both use code very
similar to creating local arrays.

> I think Basalt might provide a fix to this.  The nastier way to do it is to
> just use a static block defined to be 'large enough' on initialisation.

--
 ;  ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
 ;,'    keywords, dynamic memory for arrays and blocks, new variable types.
 ;',    Legal, fast and simple to use. Freeware - version 0.98ß - 19 Aug 03
,;  ',, Steve Drain, Kappa : http://www.kappa.me.uk/basalt.htm

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Naulls  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 17:13
Newsgroups: comp.sys.acorn.programmer
From: Peter Naulls <pe...@chocky.org>
Date: Wed, 07 Oct 2009 09:13:15 -0700
Local: Wed 7 Oct 2009 17:13
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Steve Drain wrote:
> Ste (news) wrote:
ib etc.

>> (IMO: everyone should be running the latest BASIC so that people who write
>> BASIC programs can use the newer features.)

> We have been over this ground before, and the likelihood of even a
> majority of remaining users keeping up with the latest version of BASIC
> seems very remote. And we do know that you cannot replace BASIC
> dynamically.

I'm afraid I don't recall the previous discussions, but I disagree.
ROOL are keen to start deploying stuff as RiscPkg packages - this
requires as yet uncommitted manpower/volunteers, but this is
exactly the kind of thing that might be a dependency or an update.

Whilst the rollout of the 32-bit SCL was heroic, it was still a PITA
and required manual steps.  That's definitely something you want
to avoid as much as possible.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 20:02
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 20:02:52 +0100
Local: Wed 7 Oct 2009 20:02
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In article <ant0715471cbv...@kappa.zetnet.co.uk>,
   Steve Drain <st...@kappa.me.uk> wrote:

> Ste (news) wrote:
> > Just pop BASIC and BASICTrans into !Boot.Choices.Boot.PreDesk to load
> > them during boot (I don't think BASIC will be RMRun from PreDesk - it
> > should be RMLoaded - if it's RMRun, your boot sequence will drop into
> > BASIC!).

> >   http://www.riscosopen.org/content/downloads/module-zipfiles

> I love that "Just pop"; poking around in !Boot can be dodgy, but perhaps
> you could provide an installation app, that could be included with new
> software requiring new versions of BASIC. We once did that with the
> SharedCLib etc.

This _is_ csap, with "programmer" being the operative word! I'm assuming
that the readers here are quite capable of putting a subdir in PreDesk with
a !Run obey file that RMEnsures and RMLoads the two modules as required!

If you don't know what you are doing, DON'T DO IT!!

Ta,

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 20:07
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 20:07:50 +0100
Local: Wed 7 Oct 2009 20:07
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In article <haiemt$v3...@news.eternal-september.org>,
   Peter Naulls <pe...@chocky.org> wrote:

I agree completely. With a decent package manager installed across RISC OS
systems, issues such as keeping people up to date with modules such as BASIC
would be pretty simple to manage.

Of course, the RISC OS world is a bit odd, I bet a lot of users are still
using > 10 year old machines and have at best dial-up, but at some point
we're going to have to start pushing the platform (and the laggards)
forwards or the overheads imposed upon developers will just be too great.

A package manager installed in a new Universal disc image, along with RISC
OS 5 available to all for free would be one possible way to harmonise things.
Let the flame war begin...

Thanks,

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pitt  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 22:35
Newsgroups: comp.sys.acorn.programmer
From: David Pitt <n...@pittdj.co.uk>
Date: Wed, 7 Oct 2009 22:35:11 +0100
Local: Wed 7 Oct 2009 22:35
Subject: Re: Reading the contents of an OS variable from a BASIC program.

And you know this works?

As I have already said, this does not work here.

--
David Pitt
Snow Leopard - MessengerPro


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ste (news)  
View profile   Translate to Translated (View Original)
 More options 7 Oct, 23:42
Newsgroups: comp.sys.acorn.programmer
From: "Ste (news)" <st...@revi11.plus.com>
Date: Wed, 07 Oct 2009 23:42:53 +0100
Local: Wed 7 Oct 2009 23:42
Subject: Re: Reading the contents of an OS variable from a BASIC program.
In article <mpro.kr5ymn00001h2013h.n...@pittdj.co.uk>,
   David Pitt <n...@pittdj.co.uk> wrote:

> And you know this works?

This is what I had in my boot sequence for years before softloading the
latest RISC OS.

> As I have already said, this does not work here.

That is quite possible - I've not tried softloading BASIC for a while so it
may be that someone has broken it. The only way we at ROOL find this stuff
out is if and when people report problems to us.

I'll look into it...

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Pitt  
View profile   Translate to Translated (View Original)
 More options 8 Oct, 08:08
Newsgroups: comp.sys.acorn.programmer
From: David Pitt <n...@pittdj.co.uk>
Date: Thu, 8 Oct 2009 08:08:07 +0100
Local: Thurs 8 Oct 2009 08:08
Subject: Re: Reading the contents of an OS variable from a BASIC program.

"Ste (news)" <st...@revi11.plus.com> wrote:
> In article <mpro.kr5ymn00001h2013h.n...@pittdj.co.uk>,
>    David Pitt <n...@pittdj.co.uk> wrote:
> > And you know this works?

> This is what I had in my boot sequence for years before softloading the
> latest RISC OS.

> > As I have already said, this does not work here.

> That is quite possible - I've not tried softloading BASIC for a while so
> it may be that someone has broken it. The only way we at ROOL find this
> stuff out is if and when people report problems to us.

This is what SysLog found as the Iyonix, OS5.14, booted.

08 Oct 07:50:26 000 80000002: Error from (unknown): Internal error: abort on data transfer at &202E3C10
08 Oct 07:50:27 000 80000002: Error from (unknown): Internal error: abort on data transfer at &202E3C10
08 Oct 07:50:28 000 80000002: Error from (unknown): Internal error: abort on data transfer at &202E3C10
08 Oct 07:50:29 000 00000000: Error from (unknown): !Alarm RunImage cannot be found
08 Oct 07:50:46 000 000000FF: Error from ResFind: Internal error: abort on data transfer at &202E3B70 at 25
08 Oct 07:50:47 000 000000F8: Error from (unknown): Filing system or path StrongEDRes: not present

*where 202e3c10
Address 202E3C10 is at offset 00004A5C in module BASIC
*where
Address 202E3B70 is at offset 000049BC in module BASIC
*

> I'll look into it...

I hope the above helps.

Many thanks.

--
David Pitt
Snow Leopard - MessengerPro


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Drain  
View profile   Translate to Translated (View Original)
 More options 8 Oct, 12:57
Newsgroups: comp.sys.acorn.programmer
From: Steve Drain <st...@kappa.me.uk>
Date: Thu, 8 Oct 2009 11:57:08 +0000
Local: Thurs 8 Oct 2009 12:57
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Peter Naulls wrote:
> Steve Drain wrote:
> > We have been over this ground before, and the likelihood of even a
> > majority of remaining users keeping up with the latest version of BASIC
> > seems very remote. And we do know that you cannot replace BASIC
> > dynamically.

> I'm afraid I don't recall the previous discussions, but I disagree.
> ROOL are keen to start deploying stuff as RiscPkg packages - this
> requires as yet uncommitted manpower/volunteers, but this is
> exactly the kind of thing that might be a dependency or an update.

I entirely agree that this would be a prime candidate for RiskPkg.

> Whilst the rollout of the 32-bit SCL was heroic, it was still a PITA and
> required manual steps.  That's definitely something you want to avoid as
> much as possible.

I was thinking of the original soft-loaded SCL. Before the universal
!Boot its replacement usually involved no more than dragging a dummy
!System over the main one. Ah! Simple times. ;-)

--
 ;  ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
 ;,'    keywords, dynamic memory for arrays and blocks, new variable types.
 ;',    Legal, fast and simple to use. Freeware - version 0.98ß - 19 Aug 03
,;  ',, Steve Drain, Kappa : http://www.kappa.me.uk/basalt.htm


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Drain  
View profile   Translate to Translated (View Original)
 More options 8 Oct, 13:00
Newsgroups: comp.sys.acorn.programmer
From: Steve Drain <st...@kappa.me.uk>
Date: Thu, 8 Oct 2009 12:00:47 +0000
Local: Thurs 8 Oct 2009 13:00
Subject: Re: Reading the contents of an OS variable from a BASIC program.

Ste (news) wrote:
> Steve Drain wrote:
> > Ste (news) wrote:
> > I love that "Just pop"; poking around in !Boot can be dodgy, but perhaps
> > you could provide an installation app, that could be included with new
> > software requiring new versions of BASIC. We once did that with the
> > SharedCLib etc.

> This _is_ csap, with "programmer" being the operative word! I'm assuming
> that the readers here are quite capable of putting a subdir in PreDesk with
> a !Run obey file that RMEnsures and RMLoads the two modules as required!

> If you don't know what you are doing, DON'T DO IT!!

Programmers - fine. But what do you do with the programs you write? You
cannot ignore the users' attitudes.

--
 ;  ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
 ;,'    keywords, dynamic memory for arrays and blocks, new variable types.
 ;',    Legal, fast and simple to use. Freeware - version 0.98ß - 19 Aug 03
,;  ',, Steve Drain, Kappa : http://www.kappa.me.uk/basalt.htm


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 31   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google