EasyManua.ls Logo

Commodore PC - Page 301

Commodore PC
414 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Debug
2291
In
this
example,
the
N
command
setsfilel.exe
as
the
filename
for
the
subsequent
L
command,
which
loads
filel.exe
into
memory.
/*-v
The
N
command
is
then
used
again,
this
time
to
specify
the
parameters
to
be
used
by
filel.exe.
Finally,
when
the
G
command
is
run,
filel.exe
is
executed
as
Hfilel
file2.dat
file3.dat
had
been
^^
typed
at
the
ms-dos
command
level.
Note
that
if
you
were
to
execute
a
W
command
now,
then
filel.exe
the
file
being
debugged—would
be
saved
with
the
~+.
name
file2.dat.
To
avoid
this
kind
of
result,
you
should
always
(
'
execute
an
N
command
before
either
an
L
or
W
command.
There
are
four
regions
of
memory
that
can
be
affected
by
the
N
**+.
command:
CS:5C
CS:6C
CS:80
CS:81
FCB
for
file
1
FCB
for
file
2
Count
of
characters
All
characters
typed
The
first
filename
parameter
that
you
specify
for
the
N
command
has
a
file
control
block
(FCB)
set
up
at
CS:5C.
If
you
name
a
f0^
second
filename
parameter,
an
FCB
is
set
up
for
this
parameter
beginning
at
CS:6C.
The
number
of
characters
typed
in
the
N
command
(exclusive
of
the
first
character,
N)
is
given
at
location
/-^
CS:80.
The
actual
stream
of
characters
given
by
the
N
command
(again,
exclusive
of
the
letter
N)
begins
at
CS:81.
Note
that
this
stream
of
f-^
characters
may
contain
switches
and
delimiters
that
would
be
legal
in
any
command
typed
at
the
ms-dos
command
level.
^^^
Example:
A
typical
use
of
the
N
command
is
as
follows:
Using
the
Name
command
_
DEBUG
PROG.COM
O
-NPARAM1
PARAM2/C
-G
n
In
this
case,
the
G
command
executes
the
file
in
memory
as
if
you
had
typed
the
following
command
line:
O
PROG
PARAM1
PARAM2/C
-^
Testing
and
debugging
therefore
reflect
a
normal
run-time
(
)
environment
for
prog,
com.

Related product manuals