Zilog Z8F0130 Manual do Utilizador Página 63

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 314
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 62
eZ8
CPU Core
User Manual
UM012820-0810 eZ8
CPU Instruction Set Summary
48
Assembly Language Source Program Example
JP START ; Everything after the semicolon
;is a comment.
START: ; A label called "START". The
;first instruction (JP START) in
;this example causes program
;execution to jump to the point
;within the program where the
;START label occurs.
LD R4, R7 ; A Load (LD) instruction with two
;operands. The first operand,
;Working Register R4, is the
;destination. The second operand,
;Working Register R7, is the
;source. The contents of R7 are
;written into R4.
LD 234h, #%01 ; Another Load (LD) instruction
;with two operands. The first
;operand, Extended Mode
;Register Address 234h,
;identifies the destination.
;The second operand, Immediate
;Data value 01h, is the source.
;The value 01h is written into
;the Register at address 234h.
Assembly Language Syntax
For proper instruction execution, eZ8 CPU assembly language syntax
requires that the operands be written as ‘destination, source’. After
assembly, the object code usually places the operands in the order ‘source,
destination’, but ordering is Op Code-dependent. The following
instruction examples illustrate the format of some basic assembly
instructions and the resulting object code produced by the assembler. This
Vista de página 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 313 314

Comentários a estes Manuais

Sem comentários