Você está na página 1de 20

Microcontroladores

Prof. Antonio Themoteo Varela


E-mail: themoteo@ifce.edu.br
Instruções
INSTRUÇÕES
ARITMÉTICAS
INSTRUÇÕES LÓGICAS
INSTRUÇÕES DE TRANSFERÊNCIAS
INSTRUÇÕES DE DESVIO
INSTRUÇÕES DE BITS
INSTRUÇÕES DE CONTROLE DA CPU

2
O REGISTRADOR DE STATUS - S
REG

3
O REGISTRADOR DE STATUS - S
REG

4
O STACK POINTER(Ponteiro de Pilh
a)

LIFO-Last Input First Output ( último a entrar primeiro a sair )


5
SP
PUSH R0

R0
6
7
INSTUÇÕES ARITMÉTICAS

8
ADC – Soma com Carry

adiciona dois registradores e o conteúdo do C Flag e coloca o resultado


no registrador de destino Rd.

9
INSTRUÇÕES LÓGICAS

10
INSTRUÇÕES DE
TRANSFERÊNCIAS

11
INSTRUÇÕES DE
DESVIO

12
13
Desvios Condicionais

14
INSTRUÇÕES DE
BITS

15
INSTRUÇÕES DE CONTROLE
DA CPU

16
Memória de Dados

17
18
19
Registradores e operandos
Rd: Destination (and source) register in the Register File
Registro de destino (e fonte) no arquivo de registro
Rr: Source register in the Register File
Registro de fonte no arquivo de registro
R: Result after instruction is executed
Resultado após a instrução ser executada
K: Constant data
Dado Constante
k: Constant address
Endereço constante
b: Bit in the Register File or E Register (3-bit)
Bit no arquivo de registro ou registro E/S (3 bits)
s: Bit in the Status Register (3-bit)
Bit no registro de status (3 bits)
X,Y,Z: Indirect Address Register (X=R27:R26, Y=R29:R28, and
Z=R31:R30)
Registradores de endereços de 16 bits
A: I/O location address
Endereço de E/S
q: Displacement for direct addressing (6-bit)
Deslocamento de 6 bits para endereçamento direto

20

Você também pode gostar