Previous | Next
| From: Marko_Mäkelä
Date: 2001-06-19
Subject: Re: R: Emulators' developers suggest
|
On Tue, 19 Jun 2001, C.M.Scortegagna wrote:
> OK, anyway the point is: how can I read 1 or more (following) bytes from
> a file using an emulator?
Assuming that the emulator is halfway compatible with the real computer:
0 OPEN1,8,0,"FILE"
1 GET#1,A$:?A$;:ON-(ST=0)GOTO1:CLOSE1
> Perhaps problem was already faced when developers allowed to read the
> directory. Directory output can be obtained OPENing a file named "$" and
> then READing it byte per byte, isn't?
The directory listing has another issue: the drive can format it in two ways,
1. as a BASIC program whose first line number is the drive number followed
by the disk title, and whose entries have line numbers indicating the
number of allocated blocks,
or
2. as a raw dump of the directory blocks, lacking the two first bytes of
each sector (the track and sector links to the following block),
depending on the secondary address.
Marko
|
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |