[Coco] Question about I$Seek
Bob Devries
devries.bob at gmail.com
Sat Apr 27 02:37:26 EDT 2013
If you're talking about assembler code, then the file position pointer is
spread between BOTH the X and Y registers. According to page 8-62 of the OS9
manual:
Entry Conditions:
A = path number
X = MS 16 bits of the desired file position
U = LS 16 bits of the desired file position
Error output:
CC = carry set on error
B = error code (if any)
Hope that helps
Regards, Bob Devries
Dalby, QLD, Australia
----- Original Message -----
From: "Luis Antoniosi (CoCoDemus)" <retrocanada76 at gmail.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Saturday, April 27, 2013 3:42 PM
Subject: [Coco] Question about I$Seek
> hi,
>
> I'm trying to seek a file opened with #UPDAT. flags.
>
> No matter what value I use as X/Y it will always rewinds it to restart. No
> seeking at all allows me to read it sequencially. But I need random
> access.
> what I am doing wrong ?
>
> thxs,
>
> Felipe
>
> --
> Long live the CoCo
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list