EasyManua.ls Logo

Commodore PC - Page 286

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...
1214
MS-DOS
User's
Reference
Debug
also
cannot
tell
whether
an
operand
refers
to
a
memory
^—^
location
or
to
an
immediate
operand.
So,
it
uses
the
common
con
vention
that
operands
enclosed
in
square
brackets
refer
to
mem
ory.
For
example:
v^/
MOV
MOV
AX
AX
,21
,
C21
]
;
Load
AX
wi
;
Load
AX
wi
;
contents
;
of
memory
th
21H
th
the
location
21H
Two
popular
pseudo-instructions
are
available
with
the
A
(assem-
^—^
ble)
command:
the
DB
opcode,
which
assembles
byte
values
directly
into
memory;
and
the
DW
opcode,
which
assembles
word
values
directly
into
memory.
Following
are
examples
of
both:
^
)
DB
1
,2,3,4,"THIS
IS
AN
EXAMPLE"
DB
'THIS
IS
A
QUOTATION
MARK:
M/
,
,
DB
"THIS
IS
A
QUOTATION
MARK:
/M
W
DW
1000,2000,3000,"BACH"
The
A
command
supports
all
forms
of
register
indirect
commands.
For
example:
ADD
BX,34CBP+2].[SI-1]
^
POP
[BP+DI]
PUSH
[SI]
All
opcode
synonyms
are
also
supported,
as in
the
next
example:
LOOPZ
100
U
LOOPE
100
JA
200
(
,
JNBE
200
KJ
For
8087
opcodes,
the
WAIT
or
FWAIT
prefixes
must
be
explic
itly
specified,
as
in
these
last
examples:
V_/
FWAIT
FADD
ST,ST(3)
;
This
line
assembles
;
an
FHAIT
prefix
i
)
LD
TBYTE
PTR
CBX3
;
This
line'
does
not
v—/
KJ

Related product manuals