30.01.2015 Views

P rojeto de S istem as E m barcados - Univates

P rojeto de S istem as E m barcados - Univates

P rojeto de S istem as E m barcados - Univates

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Instruções<br />

Sintaxe Descrição Microchip Operação equivalente<br />

ADDLW k Add Literal and W W = W + k<br />

ADDWF f,d Add W and f d = W + f (on<strong>de</strong> d po<strong>de</strong> ser W ou f)<br />

ANDLW k AND Literal with W W = W AND k<br />

ANDWF f,d AND W with f d = W AND f (on<strong>de</strong> d po<strong>de</strong> ser W ou f)<br />

BCF f,b Bit Clear f f(b) = 0<br />

BSF f,b Bit Set f f(b) = 1<br />

BTFSC f,b Bit Test f, Skip if Clear f(b) = 0 Se é, salta uma instrução<br />

BTFSS f,b Bit Test f, skip if Set f(b) = 1 Se é, salta uma instrução<br />

CALL k Subroutine Call Chamada a uma subrotina no en<strong>de</strong>reço k<br />

CLRF f Clear f f = 0<br />

CLRW Clear W Register W = 0<br />

P<strong>rojeto</strong> <strong>de</strong> S<strong>istem</strong><strong>as</strong> Em<strong>barcados</strong> – Ronaldo Husemann<br />

CLRWDT Clear Watchdog Timer Watchdog timer = 0<br />

Instruções<br />

Sintaxe Descrição Microchip Operação equivalente<br />

GOTO k Go to address salta para o en<strong>de</strong>reço k<br />

INCF f,d Increment f d = f +1 (on<strong>de</strong> d po<strong>de</strong> ser W ou f)<br />

INCFSZ f,d Increment f, Skip if 0 d = f +1 (on<strong>de</strong> d po<strong>de</strong> ser W ou f) se d = 0 salta<br />

IORLW k Inclusive OR Literal with W W = W OR k<br />

IORWF f,d Inclusive OR W with f d = f OR W (on<strong>de</strong> d po<strong>de</strong> ser W ou f)<br />

MOVLW k Move literal to W W = k<br />

MOVF f,d Move f d = f (on<strong>de</strong> d po<strong>de</strong> ser W ou f)<br />

MOVWF f Move W to f f = W<br />

NOP No Operation Nenhuma operação<br />

OPTION Load Option Register OPTION = W<br />

RETFIE Return from Interrupt Retorna <strong>de</strong> uma interrupt handler<br />

P<strong>rojeto</strong> <strong>de</strong> S<strong>istem</strong><strong>as</strong> Em<strong>barcados</strong> – Ronaldo Husemann<br />

RETLW k Return Literal to W Retorna <strong>de</strong> uma subrotina com W = k

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!