Download Print this page

Motorola EXORdisk II User Manual page 175

Advertisement

LIST COMMAND
17.3 -- Examples
=LIST EGU,L30,L40
PAGE 001
EGU
. SA: 0
*
THE SAME CONCEPT AS THE "SKIP2
11
MACRO IS USED, EXCEPT THAT
.. A "BIT TEST ACCUMULATOR A IMMEDIATE" OP CODE IS GENERATED.
*
SKIP! MACR
*
FeB $85
ENDM
*'
seA L L
..
SCALL MACR
IFEG NARG-l
=
MAC R
a
(SYSTEM FUNCTION CALL)
The following example illustrates how the logical sector
number
can
be
used
to
rapidly access any part
o~
a
~ile.
When the
<start~
and
<end~
speciTications refer
to
phYSical
line
numbers,
the
~ile
must be read from the beginning, a
record at a
time,
in
order
to
find
the
correct
lines;
however,
the logical
sector
Torm
of
the
<start~
speci~ication
permit~
the LIST command to go directly to the
sector.
The
physical
line number option liN" is Fairly meaningless
if
the
logical
sector form
of the
<start~
specification
is
used.
Since
no
count is available for the
numb~r
o~
lines between
the beginning of the file and the specified
logical
sector,
the physical line numbers
(if
printed) would only be relative
to the
part
of the file
that
was displayed.
A
paTtial
line
will
usually
be
seen
as
the first line since the records
randomly cross sector boundaries.
The
BREAK
key
was used
in
this example to terminate the display of the file.
=LIST EGU,S5
PAGE 001
EGU.
. SA: 0
TEn OP CODE IS GENERATED.
*'
SKIPl MACR
'*
FeB $85
ENDM
*'
SeA L L
*'
SCALL MACR
IFEQ NARG-l
=
MAC R
a
(SYSTEM FUNCTION CALL)
The
following
example
displays
the
MDOS equate rile
using a non-standard line
length
specification.
Only
the
rirst
twenty
characters of each line will be shown.
Notice
Page
,
-....\
)
17-06

Advertisement

loading

This manual is also suitable for:

Exordisk iii