21.08.2013 Views

AVR Instruction Set Nomenclature: Status Register (SREG ...

AVR Instruction Set Nomenclature: Status Register (SREG ...

AVR Instruction Set Nomenclature: Status Register (SREG ...

SHOW MORE
SHOW LESS

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

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

Example:<br />

100<br />

lsr r19 ; Divide r19:r18 by two<br />

ror r18 ; r19:r18 is an unsigned two-byte integer<br />

brcc zeroenc1 ; Branch if carry cleared<br />

asr r17 ; Divide r17:r16 by two<br />

ror r16 ; r17:r16 is a signed two-byte integer<br />

brcc<br />

...<br />

zeroenc2 ; Branch if carry cleared<br />

zeroenc1: nop<br />

...<br />

; Branch destination (do nothing)<br />

zeroenc1: nop ; Branch destination (do nothing)<br />

Words: 1 (2 bytes)<br />

Cycles: 1<br />

<strong>Instruction</strong> <strong>Set</strong>

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

Saved successfully!

Ooh no, something went wrong!