aboutsummaryrefslogtreecommitdiffstats
path: root/screen.h
blob: d62e4f3bbde0645c9e47b81f7d05fbae4a7db0d5 (plain)
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
#ifndef _SCREEN_H
#define _SCREEN_H

#include "compiler.h"

#include <SDL.h>

extern void screen_init(bool, bool);
extern void screen_reset(void);
extern void screen_write(int, int);
extern void screen_flush(void);
extern void setmode40(bool);

extern void event_loop(void);
extern void key_check(void);

extern volatile int event_pending;
Uint32 post_periodic(Uint32 interval, void *param);

extern void crtc_out(uint16_t, uint8_t);
extern uint8_t crtc_in(uint16_t);

extern void fg_out(uint16_t, uint8_t);

extern void do_magic(int);
extern void enable_real_keyboard(void);

/* Pointer to video RAM (text and graphics, respectively) */
extern uint8_t *const video_ram;
extern uint8_t *const fgram;

extern const uint8_t fgcolor[128][4];

#endif /* _SCREEN_H */