Download Print this page

Motorola EXORdisk II User Manual page 205

Advertisement

PATCH COMMAND
21.2 -- PATCH Command Set
21.2.9 Search ror byte -- S
The
S
command is used to search the file for
a
specific
eight-bit pattern.
The format
Or
the
S command is
m,nS
whe1'"'e
um" and "nlt represent the starting and ending addresses
of
the
search.
The
addresses
are
both
modiFied
by
the
cUT'i"'ent value
Or
the ofrset.
The pattern to be searched
for
must
have been specified via the M command (section 21.2.8).
Only the least significant bytes of the
search
pattern
and
the
search
mask
are
used
by
the 5 command.
The
S command
will display all addresses that contain patterns
which
meet
the
search
criteria.
ihe
locations
of the
file included in
the s ear chi s
from
add r es slim
p 1 u s
0
.p
r
set
u
t
0
lin
p 1 u s
off
set
It
J
inc 1 us
i
ve .
A
ma t chi sin d
i
cat e d
i f
a b
y
t e
i
nth e
~ile
meets the following condition:
contents of address
&
search mask
=
search pattern
where the
lI~n
indicates
the
logical
"and
ll
-function.
The
following example
il1ust~ates
the use
o~
the S command:
=PATCH TESTPROG
8200 30
"OOEE~FFFFM
>OJ
lD7?
82A7 EE
82AD EE
82AF
EE
:><1
=
21. 2. 10
Search
Tor IJJora
W
The
W command
is
similar
to the S command;
however,
instead of searching
fa,.. only a single byte,
a
double
byte,
or Ulo,..d,
is searc h ed for.
Th e i=o,..ma t of th
e
W command is
m,nW
The address range
searched
with
the
W command is from
U
m plus
ofrsetll to
Hn
plus
one
plus
offset",
inclusive.
Thus,
lin"
cannot
be
the highest
address
aT
the
Tile,
since
IIn+1"
would
be an illegal address.
Otherwise,
the
W command
functions
identically to the S command.
Page
21-08

Advertisement

loading

This manual is also suitable for:

Exordisk iii