Wayne Campbell | 1 Oct 2009 03:36
Picon
Favicon

os version check

I haven't been able to locate any system call that I can use to return the version of the OS. It may be that this
info is not available through the system. For the meantime, I'm going to add a parameter to DCom that will be
used to identify the OS. The option will be 'n'. By default, n will be TRUE (meaning NitrOS09). If you pass
the option '-n', DCom will use the TMode Pause/-Pause form. No option, or 'n' as the option, will cause DCom
to use the TMode -pau=1/-pau=0 form.

If someone knows of a system call that allows you to determine different systems, please let me know.

Wayne

--
Coco mailing list
Coco@...
http://five.pairlist.net/mailman/listinfo/coco

Bob Devries | 1 Oct 2009 03:51
Picon

Re: os version check

Hi Wayne,

It should also be possible to circumvent this problem (if you're only 
concerned with the page pause) by calling SysCall with the appropriate 
function call codes.

I'm away from my documentation, so I can't help much more than that.

Regards, Bob Devries
Las Pinas, Philippines

--
Besides a mathematical inclination, an exceptionally good mastery of one's 
native tongue is the most vital asset of a competent programmer.

Edsger W.Dijkstra, 18 June 1975

----- Original Message ----- 
From: "Wayne Campbell" <asa.rand@...>
To: <coco@...>
Sent: Thursday, October 01, 2009 11:36 AM
Subject: [Coco] os version check

>I haven't been able to locate any system call that I can use to return the 
>version of the OS. It may be that this info is not available through the 
>system. For the meantime, I'm going to add a parameter to DCom that will be 
>used to identify the OS. The option will be 'n'. By default, n will be TRUE 
>(meaning NitrOS09). If you pass the option '-n', DCom will use the TMode 
>Pause/-Pause form. No option, or 'n' as the option, will cause DCom to use 
>the TMode -pau=1/-pau=0 form.
(Continue reading)

Robert Gault | 1 Oct 2009 04:16
Picon

Re: os version check

Wayne Campbell wrote:
> I haven't been able to locate any system call that I can use to return the version of the OS. It may be that this
info is not available through the system. For the meantime, I'm going to add a parameter to DCom that will be
used to identify the OS. The option will be 'n'. By default, n will be TRUE (meaning NitrOS09). If you pass
the option '-n', DCom will use the TMode Pause/-Pause form. No option, or 'n' as the option, will cause DCom
to use the TMode -pau=1/-pau=0 form.
> 
> If someone knows of a system call that allows you to determine different systems, please let me know.
> 
> Wayne
> 

There is no command that I know of which will distinguish OS-9 versions. 
However, you could try reading the sys/motd file.

OS-9 Level1 version 1
WELCOME TO COLOR COMPUTER OS-9

OS-9 Level1 version 2
Same as above

OS-9 Level2
No sys/motd file. However, the startup file contains
Welcome to OS-9 Level2

NitrOS-9 GaleForce
NitrOS-9 v1.22f                   and much more info. Earlier versions
                                   don't have motd.

NitrOS-9 current both Level1 and Level2
(Continue reading)

Ed Orbea | 1 Oct 2009 04:18
Picon

Copy of the Manual

I purchased Roy's VGA converter last year and have successfully used it 
since, but now can't find the 1 (or 2) page manual that Roy sends with 
his converter. I have emailed Roy, but am also sending this message to 
the group to see if anybody has a scanned copy of the 1 or 2 page manual 
available, or know where a copy is hosted?

Roy is busy with his order list and perfecting the new version of the 
converter, so I'm sure that he would appreciate not having to send a 
copy to a user who lost his original copy of the manual.

Thanks for your help

Ed Orbea

--
Coco mailing list
Coco@...
http://five.pairlist.net/mailman/listinfo/coco

Wayne Campbell | 1 Oct 2009 05:12
Picon
Favicon

Re: os version check

Thanks for this information, Robert. The only difficulty I see in the information you provided is that I
won't be able to determine if the OS is NitrOS-9 pre-v1.22f and OS-9 Level 2 without having to read a second
file. In either case, I have to read and compare data to make the determination. Using the -n option is much
less code, and easier to process. I'm going to keep this info anyway, because I may find it useful later.

Update on DCom. I have added the OS option flag (-n) and added the boolean flag, plus condition code to
determine which form of TMode to use. I have corrected the tpyo in the parameter being passed to DData2. The
211 error in DVars turned out to be a simple fix.

My memory was jogged by it. I remember having that bug before. It was because I wasn't checking for EOF in the
loop that read through the variables file seeking a match to the currently identified variable. I added
EOF(#DC5path) to the exit condition, and the error disappeared.

DCom now makes it to the DInstr routine before another problem occurs. Testing with a small procedure named
'elapsed', once DInstr is called, it prints out 2 of 3 print statements containing comment lines. Since
there is nothing in the statements except PRINT and the string containing the comment, it made no sense. I
used another procedure named 'ribbsmain' as the test, and DTypes reported a 211 error. I'm reasonable
sure it's another case of needing the EOF(#datapath) in the exit condition. However, it doesn't end there.

DTypes builds, and prints out, the TYPE, DIM and PARAM statements. Before those statements are output, a
series of comment lines are generated that contain specifics of the data accumulated by DCom as it
concerns the variables and line references. DCom reported 1 variable, -512 complex variables, and a
total of 13 program variables. Obviously, that data cannot be correct. I believe I know what is the
culprit. In decoding the I-Code manually (I did that a few weeks ago), I discovered there is a unused record
in the DSAT for elapsed. I think it may be the same problem I always had with type statements in DCom.

Packed I-Code does not contain everything related to variables. There are references to the variables as
they relate to the data memory allocation in the DSAT. If the variable was not used in the instruction
statements, any and all pointers to that data are lost in packing. I can pretty much figure out where the
gaps in the allocation are, and their size, but when it comes to records (your TYPE statements), there is no
(Continue reading)

Bob Devries | 1 Oct 2009 06:37
Picon

SYSCALL tutorial

If there is enough interest on this list, I can provide a tutorial on the use of SYSCALL in Basic09.

I had previously written this, but now don't have it with me, but, hey, I can rewrite it easily enough.

If there's enough interest, I can post it to this list.

Regards, Bob Devries
Las Pinas, Philippines

--
Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most
vital asset of a competent programmer.

Edsger W.Dijkstra, 18 June 1975

--
Coco mailing list
Coco@...
http://five.pairlist.net/mailman/listinfo/coco

Wayne Campbell | 1 Oct 2009 06:51
Picon
Favicon

Re: SYSCALL tutorial

I, for one, am interested. Not that I need tutoring on the use, but there may be things in your tutorial that I
am not familiar with. I am always interested in learning more about OS-9 and Basic09 and its utilities.
Come to think of it, a tutorial on the use of gfx and gfx2 would be nice as well.

Wayne

________________________________
From: Bob Devries <devries.bob@...>
To: coco@...
Sent: Wednesday, September 30, 2009 9:37:08 PM
Subject: [Coco] SYSCALL tutorial

If there is enough interest on this list, I can provide a tutorial on the use of SYSCALL in Basic09.

I had previously written this, but now don't have it with me, but, hey, I can rewrite it easily enough.

If there's enough interest, I can post it to this list.

Regards, Bob Devries
Las Pinas, Philippines

--
Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most
vital asset of a competent programmer.

Edsger W.Dijkstra, 18 June 1975

--
Coco mailing list
Coco@...
(Continue reading)

Bob Devries | 1 Oct 2009 07:20
Picon

Re: SYSCALL tutorial

Hi Wayne,

I may be able to do a tutorial on GFX and GFX2, however, you could first 
look at the programme written by Don Berrie and myself called ZAP. That is 
written in Basic09 and has liberally used GFX2.

Hmmm, I thought there should have been a copy of ZAP on RTSI, but I can't 
find it. Can someone point me to a copy online?

--
Besides a mathematical inclination, an exceptionally good mastery of one's 
native tongue is the most vital asset of a competent programmer.

Edsger W.Dijkstra, 18 June 1975

----- Original Message ----- 
From: "Wayne Campbell" <asa.rand@...>
To: "CoCoList for Color Computer Enthusiasts" <coco@...>
Sent: Thursday, October 01, 2009 2:51 PM
Subject: Re: [Coco] SYSCALL tutorial

> I, for one, am interested. Not that I need tutoring on the use, but there 
> may be things in your tutorial that I am not familiar with. I am always 
> interested in learning more about OS-9 and Basic09 and its utilities. Come 
> to think of it, a tutorial on the use of gfx and gfx2 would be nice as 
> well.
>
> Wayne
>
>
(Continue reading)

Mike Pepe | 1 Oct 2009 07:19
Favicon

Re: Powering a computer room/ham shack?

Hey Frank, I wouldn't recommend replacing the outlet device as described. If you have a fire in the house
(even if it's totally unrelated) and the insurance adjuster sees the un-approved electrical work, you
may find your claim voided. Best to be on the safe side and pay the inspection/permit fee.

> -----Original Message-----
> From: coco-bounces@... [mailto:coco-
> bounces@...] On Behalf Of Frank Swygert
> Sent: Wednesday, September 30, 2009 12:12 PM
> To: coco@...
> Subject: Re: [Coco] Powering a computer room/ham shack?
> 
> Running a 20A 220 circuit on 12 AWG is fine (two hots and one neutral).
> That's really all you need to worry about. Run the 20A 220 to a small
> sub panel. You'll only find 125A sub panels at Lowe's and such, but
> again, that's not a problem. I don't know how many circuits you can
> run, but as long as you don't exceed the 20A draw you're fine. Most sub
> panels are run with a 30A or higher breaker, but they are run with more
> draw in mind than what you have. I have a six breaker sub panel run in
> my house but with a 50A 220V breaker in the box. I have 5 20A and 1 15A
> breaker in the sub panel. This is just to divide lighting and zone the
> outlets. The 15A breaker is for the lights, probably no more than 1A
> draw with just over 100 watts of lights -- compact fluorescents -- and
> that's if all are on at the same time... well, cut the ceiling fan on
> and it might pull 2-3A. I don't know what the percentage over the main
> breaker for the sub panel is (in your case a 20A), but I know it's at
> lea
>  st twice the amount. If you're just putting 2-3 15A breakers and 15A
> outlets in you're more than covered.
> 
> You might want to just run 1 220V receptacle in a box with the spare
(Continue reading)

Wayne Campbell | 1 Oct 2009 08:19
Picon
Favicon

Re: SYSCALL tutorial

Hi Bob,

Thanks for the info. If someone can point me to a copy of ZAP, I'll certainly look it over. I understand the use
of both gfx and gfx2, but there are things I seem to always get wrong when I'm trying to write code for it, and
looking through pdf's of the manuals is very time consuming. Being able to see examples of statements,
even in another source file, is always better for me.

Wayne

________________________________
From: Bob Devries <devries.bob@...>
To: CoCoList for Color Computer Enthusiasts <coco@...>
Sent: Wednesday, September 30, 2009 10:20:02 PM
Subject: Re: [Coco] SYSCALL tutorial

Hi Wayne,

I may be able to do a tutorial on GFX and GFX2, however, you could first look at the programme written by Don
Berrie and myself called ZAP. That is written in Basic09 and has liberally used GFX2.

Hmmm, I thought there should have been a copy of ZAP on RTSI, but I can't find it. Can someone point me to a copy online?

--
Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most
vital asset of a competent programmer.

Edsger W.Dijkstra, 18 June 1975

----- Original Message ----- From: "Wayne Campbell" <asa.rand@...>
To: "CoCoList for Color Computer Enthusiasts" <coco@...>
(Continue reading)


Gmane