-
Notifications
You must be signed in to change notification settings - Fork 4
/
clem_vgc.h
46 lines (32 loc) · 1.46 KB
/
clem_vgc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CLEM_VGC_H
#define CLEM_VGC_H
#include "clem_mmio_types.h"
/**
* Video Interface
* These functions emulate the various peripherals (internal and external)
*/
#ifdef __cplusplus
extern "C" {
#endif
void clem_vgc_reset(struct ClemensVGC *vgc);
void clem_vgc_reset_scanlines(struct ClemensVGC *vgc);
void clem_vgc_sync(struct ClemensVGC *vgc, struct ClemensClock *clock, const uint8_t *mega2_bank0,
const uint8_t *mega2_bank1);
void clem_vgc_scanline_enable_int(struct ClemensVGC *vgc, bool enable);
void clem_vgc_set_mode(struct ClemensVGC *vgc, unsigned mode_flags);
void clem_vgc_clear_mode(struct ClemensVGC *vgc, unsigned mode_flags);
void clem_vgc_set_text_colors(struct ClemensVGC *vgc, unsigned fg_color, unsigned bg_color);
void clem_vgc_set_region(struct ClemensVGC *vgc, uint8_t c02b_value);
uint8_t clem_vgc_get_region(struct ClemensVGC *vgc);
uint8_t clem_vgc_read_switch(struct ClemensVGC *vgc, struct ClemensClock *clock, uint8_t ioreg,
uint8_t flags);
void clem_vgc_write_switch(struct ClemensVGC *vgc, struct ClemensClock *clock, uint8_t ioreg,
uint8_t value);
void clem_vgc_shgr_scanline(struct ClemensScanline *scanline, uint8_t *dest,
const uint8_t *src_bank);
void clem_vgc_calc_counters(struct ClemensVGC *vgc, struct ClemensClock *clock, unsigned *v_counter,
unsigned *h_counter);
#ifdef __cplusplus
}
#endif
#endif