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.

CLS - Clear Signed Flag<br />

Description:<br />

Clears the Signed flag (S) in <strong>SREG</strong> (status register).<br />

Operation:<br />

(i) S ← 0<br />

Syntax: Operands: Program Counter:<br />

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

16-bit Opcode:<br />

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

S: 0<br />

Signed flag cleared<br />

Example:<br />

1001 0100 1100 1000<br />

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

- - - 0 - - - -<br />

Words: 1 (2 bytes)<br />

Cycles: 1<br />

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

cls ; Clear signed flag<br />

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

47

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

Saved successfully!

Ooh no, something went wrong!