Motorola M68CPU32BUG Manuel d'utilisateur Page 105

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 196
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 104
ASSEMBLER/DISASSEMBLER
M68CPU32BUG/D 4-3
4.2.1 Source Line Format
Each source statement is a combination of operation and, as required, operand fields. Line
numbers, labels and comments are not used.
4.2.1.1 Operation Field
Since there is no label field, the operation field may begin in the first available column. It may
also follow one or more spaces. Entries can consist of one of three categories:
Operation codes which correspond to the M68300 Family instruction set.
Define constant directive (DC.W) defines a constant in a word location.
System call directive (SYSCALL) calls CPU32Bug system utilities.
The size of the data field affected by an instruction is determined by the data size codes. Some
instructions and directives can operate on more than one data size. For these operations, the data
size code must be specified or a default size applicable to the instruction is used. The size code
need not be specified if only one data size is permitted by an operation. The operation field is
followed by a period (.) and the data size code. The data size codes are:
B = Byte (8-bit data)
W = Word (16-bit data; the usual default size)
L = Longword (32-bit data)
When the instruction or directive does not have a data size attribute, the data size code is not
permitted.
EXAMPLES Legal
LEA (A0),A1 Load the effective address of the first operand into A1. The longword
size is the default (.B, .W not allowed) for this instruction.
ADD.B (A0),D0 Add the byte pointed to in A0 to the lowest order byte in D0.
ADD D1,D2 Add the low order word of D1 to the low order word of D2. W is the
default size code for ADD.
ADD.L A3,D3 Add the entire 32-bit (longword) contents of A3 to D3.
EXAMPLE Illegal
SUBA.B #5,A1 Illegal size specification (.B not allowed in instruction SUBA). This
instruction would have subtracted the value 5 from the low order byte
of A1; byte operations on address registers are not allowed.
Vue de la page 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 195 196

Commentaires sur ces manuels

Pas de commentaire