[Coco] FW: [Non-DoD Source] Coco Digest, Vol 173, Issue 31

Taylor, Phillip L CIV Phillip.L.Taylor at uscg.mil
Wed Feb 15 10:24:24 EST 2017


A long time ago in the 90's I wrote a small word process and the X and Y are 
used as pointers and the A register is used to load the value and used with 
other instructions like bne and beq.

I do not see how in the examples you can use a as a pointer for the location.


------------------------------

Message: 3
Date: Tue, 14 Feb 2017 19:34:11 +0000
From: "Taylor, Phillip L CIV" <Phillip.L.Taylor at uscg.mil>
To: "Coco at maltedmedia.com" <Coco at maltedmedia.com>
Subject: [Coco] Syscall to get attr file permissions
Message-ID:
	<EAEE2A6BD007DB4A939CD0051C5571963068B0F2 at EMO-EXCH-2302.main.ads.uscg.mil>

Content-Type: text/plain; charset="utf-8"


Taylor, Phillip L CIV wrote:
 Does anyone have a example of the syscall to get the attr file  permissions 
on a file or a directory?

 Thanks


Your best bet probably is to study the source code for attr in the NitrOS-9 
project. The code is not very simple but once a file is opened, SS.FD & 
I$GetStt read the attributes while SS.FD & I$SetStt set the attributes. That's 
over simplification so good luck. :)

Robert

I read the manual but I am unable to figure out how to point A to the file 
name /dd/cmds/test.  I learn better if I can see some example code please?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5379 bytes
Desc: not available
URL: 
<https://urldefense.proofpoint.com/v2/url?u=https-3A__pairlist5.pair.net_pipermail_coco_attachments_20170214_50a56bd0_attachment-2D0001.bin&d=CwIGaQ&c=0NKfg44GVknAU-XkWXjNxQ&r=_wDO0Ub5GRKd_gN_Uz7gGyIfuv5XrYnarPGRxBtD3N0&m=uUFSTAtgFyyqgVOh-ehXPyndzxYAfjpTxLi7muIgUvI&s=McLsNCIC8sFOli63k_2GM4AReZeVk4f69enV45Am-48&e= 
 >

------------------------------

Message: 4
Date: Tue, 14 Feb 2017 13:39:38 -0600
From: Allen Huffman <alsplace at pobox.com>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Subject: Re: [Coco] Syscall to get attr file permissions
Message-ID: <78F7361B-6EDF-4424-80D6-E487AF81FB4F at pobox.com>
Content-Type: text/plain;	charset=us-ascii

> On Feb 14, 2017, at 1:34 PM, Taylor, Phillip L CIV 
> <Phillip.L.Taylor at uscg.mil> wrote:
>
> I read the manual but I am unable to figure out how to point A to the
> file name /dd/cmds/test.  I learn better if I can see some example code 
> please?

What language?

		-- A

Message: 6
Date: Tue, 14 Feb 2017 12:25:40 -0800
From: tim lindner <tlindner at macmess.org>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Subject: Re: [Coco] Syscall to get attr file permissions
Message-ID:
	<CADftNqwnnR3JYhayHdfpK0kboZEgcsbGyXCvySo8Bj3K+PRWkQ at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Tue, Feb 14, 2017 at 11:34 AM, Taylor, Phillip L CIV 
<Phillip.L.Taylor at uscg.mil> wrote:
> I read the manual but I am unable to figure out how to point A to the
> file name /dd/cmds/test.  I learn better if I can see some example code 
> please?

When I read this I though, there must be a typo in the manual. OS-9 would 
never use reg A as a pointer.

Then I read the manual and it says reg A is loaded with the path number.

The path number is what is returned by I$Open or I$Create.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5379 bytes
Desc: not available
URL: <https://pairlist5.pair.net/pipermail/coco/attachments/20170215/a02d801b/attachment.bin>


More information about the Coco mailing list