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

Create successful ePaper yourself

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

CLH - Clear Half Carry Flag<br />

Description:<br />

Clears the Half Carry flag (H) in <strong>SREG</strong> (status register).<br />

Operation:<br />

(i) H ← 0<br />

Syntax: Operands: Program Counter:<br />

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

16-bit Opcode:<br />

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

H: 0<br />

Half Carry flag cleared<br />

Example:<br />

1001 0100 1101 1000<br />

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

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

Words: 1 (2 bytes)<br />

Cycles: 1<br />

clh ; Clear the Half Carry flag<br />

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

43

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

Saved successfully!

Ooh no, something went wrong!