Avr8bit-emulator
An emulator for the Atmel AVR 8-bit microcontroller
Loading...
Searching...
No Matches
bit_test.h
Go to the documentation of this file.
1
11#pragma once
12#include <stdint.h>
13#include <stdbool.h>
14
15#include "core.h"
16
23void lsl(uint8_t d, struct CORE *core);
24
31void lsr(uint8_t d, struct CORE *core);
32
39void rol(uint8_t d, struct CORE *core);
40
47void ror(uint8_t d, struct CORE *core);
48
55void asr(uint8_t d, struct CORE *core);
56
63void swap(uint8_t d, struct CORE *core);
64
72void sbi(uint8_t IO, uint8_t n, struct CORE *core);
73
81void cbi(uint8_t IO, uint8_t n, struct CORE *core);
82
90void bst(uint8_t d, uint8_t b, struct CORE *core);
91
99void bld(uint8_t d, uint8_t b, struct CORE *core);
100
107void bset(uint8_t s, struct CORE *core);
108
115void bclr(uint8_t s, struct CORE *core);
116
122void sec(struct CORE *core);
123
129void clc(struct CORE *core);
130
136void sen(struct CORE *core);
137
143void cln(struct CORE *core);
144
150void sez(struct CORE *core);
151
157void clz(struct CORE *core);
158
164void sei(struct CORE *core);
165
171void cli(struct CORE *core);
172
178void ses(struct CORE *core);
179
185void cls(struct CORE *core);
186
192void sev(struct CORE *core);
193
199void clv(struct CORE *core);
200
206void set(struct CORE *core);
207
213void clt(struct CORE *core);
214
220void seh(struct CORE *core);
221
227void clh(struct CORE *core);
void cli(struct CORE *core)
Clear Global Interrupt Flag.
Definition bit_test.c:265
void rol(uint8_t d, struct CORE *core)
Rotate Left through Carry.
Definition bit_test.c:41
void seh(struct CORE *core)
Set Half Carry Flag.
Definition bit_test.c:349
void bset(uint8_t s, struct CORE *core)
Set Bit in SREG.
Definition bit_test.c:157
void sei(struct CORE *core)
Set Global Interrupt Flag.
Definition bit_test.c:253
void lsr(uint8_t d, struct CORE *core)
Logical Shift Right.
Definition bit_test.c:23
void cbi(uint8_t IO, uint8_t n, struct CORE *core)
Clear Bit in I/O Register.
Definition bit_test.c:121
void set(struct CORE *core)
Set T Flag.
Definition bit_test.c:325
void sec(struct CORE *core)
Set Carry Flag.
Definition bit_test.c:181
void bld(uint8_t d, uint8_t b, struct CORE *core)
Bit Load from T Flag in SREG to Register.
Definition bit_test.c:145
void clc(struct CORE *core)
Clear Carry Flag.
Definition bit_test.c:193
void swap(uint8_t d, struct CORE *core)
Swap nibbles in a register.
Definition bit_test.c:97
void bclr(uint8_t s, struct CORE *core)
Clear Bit in SREG.
Definition bit_test.c:169
void lsl(uint8_t d, struct CORE *core)
Logical Shift Left.
Definition bit_test.c:3
void cls(struct CORE *core)
Clear Signed Flag.
Definition bit_test.c:289
void ror(uint8_t d, struct CORE *core)
Rotate Right through Carry.
Definition bit_test.c:61
void clh(struct CORE *core)
Clear Half Carry Flag.
Definition bit_test.c:361
void cln(struct CORE *core)
Clear Negative Flag.
Definition bit_test.c:217
void asr(uint8_t d, struct CORE *core)
Arithmetic Shift Right.
Definition bit_test.c:80
void clt(struct CORE *core)
Clear T Flag.
Definition bit_test.c:337
void sez(struct CORE *core)
Set Zero Flag.
Definition bit_test.c:229
void sen(struct CORE *core)
Set Negative Flag.
Definition bit_test.c:205
void clz(struct CORE *core)
Clear Zero Flag.
Definition bit_test.c:241
void clv(struct CORE *core)
Clear Overflow Flag.
Definition bit_test.c:313
void bst(uint8_t d, uint8_t b, struct CORE *core)
Bit Store from Register to T Flag in SREG.
Definition bit_test.c:133
void sbi(uint8_t IO, uint8_t n, struct CORE *core)
Set Bit in I/O Register.
Definition bit_test.c:109
void sev(struct CORE *core)
Set Overflow Flag.
Definition bit_test.c:301
void ses(struct CORE *core)
Set Signed Flag.
Definition bit_test.c:277
Core structure containing general purpose registers, program counter, stack pointer,...
Definition core.h:67