13.07.2015 Views

Manual de Utilização do SMART PIC - Iris.sel.eesc.sc.usp.br

Manual de Utilização do SMART PIC - Iris.sel.eesc.sc.usp.br

Manual de Utilização do SMART PIC - Iris.sel.eesc.sc.usp.br

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Manual</strong> <strong>de</strong> Utilização <strong>do</strong> <strong>SMART</strong> <strong>PIC</strong>Esta instrução diminui em 1 a quantida<strong>de</strong>armazenada em f. E se f = 0 pula a próximainstrução se não executa a próxima instrução.Ex : Temos com exemplo antes f estava igual a 01HSe d= 1 o resulta<strong>do</strong> será salvo em f.Se d= 0 o resulta<strong>do</strong> será salvo em W.f= VALORVALOR=01HAntes da instrução<strong>de</strong>cfsz VALOR,1 ; valor=valor-1goto Mais ; como valor=0 pulagoto Menos ; executa esta instruçãoSe usarmos <strong>de</strong>cfsz VALOR,0 a operação será W=VALOR – 1 e o resulta<strong>do</strong> será salvo em W.40

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

Saved successfully!

Ooh no, something went wrong!