[Coco] Nitros9 and Set Status Call SS.AScrn
Bill Pierce
ooogalapasooo at aol.com
Wed Apr 10 05:25:24 EDT 2019
Walter, I don't think you were paying attention in class... LOL The SS.AScrn call CANNOT be used on a CoWin or CoGrf screen (i.e. /Wx). It has to be a CoVDG screen (i. e. /Vx). So yes, that would be an illegal service request to CoWin or CoGrf.
And yes, the path would be the window path.
-----Original Message-----
From: Walter Zambotti <zambotti at iinet.net.au>
To: 'CoCoList for Color Computer Enthusiasts' <coco at maltedmedia.com>
Sent: Wed, Apr 10, 2019 2:00 am
Subject: Re: [Coco] Nitros9 and Set Status Call SS.AScrn
Robert/Bill.
What kind of path will it need because at the moment I'm doing this
struct registers regs;
int wpath;
wpath = open("/w", 3);
regs.rg_a = wpath;
regs.rg_b = SS_ASCRN;
regs.rg_x = 4;
if (_os9(I_SETSTT, ®s) == -1)
{
printf ("Bad SS.AScrn Err = %d\n", regs.rg_b);
}
And that always returns an error of #208. Illegal service request.
I get this error with Basic09 when trying to use SET/GET_Stat if I forget to leave some free mem for basic09.
But I'm doing this from C!
And I know the open "/w" has worked because I can then do a dwset and a window does appear!
But if the SS.AScrn is working then I shouldn't need to do a dwset!
Walter
-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Robert Gault
Sent: Tuesday, 9 April 2019 9:08 PM
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Subject: Re: [Coco] Nitros9 and Set Status Call SS.AScrn
Walter,
It might be easier to understand if you read the Tandy OS-9 Level II manual on pg. 8-142
Entry Conditions
A=path number
B= $8B
X=screen type
0= 640 x 192 x 2 colors 16K
1= 320 x 192 x 4 colors 16K
2= 160 x 192 x 16 colors 16K
3= 640 x 192 x 4 colors 32K
4= 320 x 192 x 16 colors 32K
Exit Conditions
X= address space of screen
Y= screen number (1-3)
As you can see, these are all PMODE type screens which is why they are handled by VDGINT. Also the screens are only allocated by SS.AScrn. You must use SS.DScrn to display the allocated screen. See pg. 8-143
Entry Conditions
A=path number
B=$8C
Y=screen number (1-3 see above) or 0 which returns to a text screen
Robert
Walter Zambotti wrote:
> Hi all Nitros9 programmers.
>
>
><snip>
>
>
> Now I am trying to do the same thing but by using the SS.AScrn set
> status call.
>
>
><snip>
>
>
> The call is documented in the Nitros9 Tech Ref Manual page 236.
>
>
>
><snip>
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
--
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list