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.

SEN - <strong>Set</strong> Negative Flag<br />

Description:<br />

<strong>Set</strong>s the Negative flag (N) in <strong>SREG</strong> (status register).<br />

Operation:<br />

(i) N ← 1<br />

Syntax: Operands: Program Counter:<br />

(i) SEN None PC ← PC + 1<br />

16-bit Opcode:<br />

<strong>Status</strong> <strong>Register</strong> (<strong>SREG</strong>) and Boolean Formula:<br />

N: 1<br />

Negative flag set<br />

Example:<br />

1001 0100 0010 1000<br />

I T H S V N Z C<br />

- - - - - 1 - -<br />

Words: 1 (2 bytes)<br />

Cycles: 1<br />

add r2,r19 ; Add r19 to r2<br />

sen ; <strong>Set</strong> negative flag<br />

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

113

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

Saved successfully!

Ooh no, something went wrong!