Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the source code of this file.
Macros | |
#define | INA(via) (via->ina)(0xFF) |
#define | INB(via) ((via->ORB & via->DDRB) | ((via->inb)(255 - via->DDRB) & (255 - via->DDRB))) |
#define | OUTA(via, data) (via->outa)(via->DDRA, data) |
#define | OUTB(via, data) (via->outb)(via->DDRB, data) |
#define | INT(via, level) (via->setint)(via->irqLevel = level) |
#define | alert(via, msg) DEBUG("%s: ALERT: %s" NL, via->name, msg) |
#define | INSR(via) (via->insr)() |
#define | OUTSR(via, data) (via->outsr)(data) |
Functions | |
void | via_reset (struct Via65c22 *via) |
void | via_init (struct Via65c22 *via, const char *name, void(*outa)(Uint8 mask, Uint8 data), void(*outb)(Uint8 mask, Uint8 data), void(*outsr)(Uint8 data), Uint8(*ina)(Uint8 mask), Uint8(*inb)(Uint8 mask), Uint8(*insr)(void), void(*setint)(int level)) |
void | via_write (struct Via65c22 *via, int addr, Uint8 data) |
Uint8 | via_read (struct Via65c22 *via, int addr) |
void | via_tick (struct Via65c22 *via, int ticks) |
Definition at line 33 of file via65c22.c.
#define INA | ( | via | ) | (via->ina)(0xFF) |
Definition at line 28 of file via65c22.c.
#define INB | ( | via | ) | ((via->ORB & via->DDRB) | ((via->inb)(255 - via->DDRB) & (255 - via->DDRB))) |
Definition at line 29 of file via65c22.c.
#define INSR | ( | via | ) | (via->insr)() |
Definition at line 34 of file via65c22.c.
#define INT | ( | via, | |
level | |||
) | (via->setint)(via->irqLevel = level) |
Definition at line 32 of file via65c22.c.
Definition at line 30 of file via65c22.c.
Definition at line 31 of file via65c22.c.
Definition at line 35 of file via65c22.c.
void via_init | ( | struct Via65c22 * | via, |
const char * | name, | ||
void(*)(Uint8 mask, Uint8 data) | outa, | ||
void(*)(Uint8 mask, Uint8 data) | outb, | ||
void(*)(Uint8 data) | outsr, | ||
Uint8(*)(Uint8 mask) | ina, | ||
Uint8(*)(Uint8 mask) | inb, | ||
Uint8(*)(void) | insr, | ||
void(*)(int level) | setint | ||
) |
Definition at line 77 of file via65c22.c.
Definition at line 177 of file via65c22.c.
void via_reset | ( | struct Via65c22 * | via | ) |
Definition at line 56 of file via65c22.c.
void via_tick | ( | struct Via65c22 * | via, |
int | ticks | ||
) |
Definition at line 224 of file via65c22.c.
Definition at line 99 of file via65c22.c.