-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreen.h
More file actions
39 lines (32 loc) · 887 Bytes
/
screen.h
File metadata and controls
39 lines (32 loc) · 887 Bytes
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
#ifndef SCREEN_H
#define SCREEN_H
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <cstdio>
#include <osbind.h>
#include "memory.h"
#include "image.h"
namespace AtariGraphics {
struct AtariScreen
{
static constexpr uint32_t dbaseh = 0xff8201UL;
static constexpr uint32_t dbasel = 0xff8203UL;
static constexpr size_t SIZE = 32 * 1000;
uint32_t log;
uint16_t active;
void (*blank_routine)(void);
AtariScreen();
AtariScreen(uint32_t second_screen);
~AtariScreen(void);
uint32_t old_address;
void vblank(void) __attribute__((interrupt));
void set_blank(void (* blank)(void));
void (*get_blank(void))(void);
void set_screen(const Image &img);
void clear();
void set();
void cleanup(void);
};
}
#endif // SCREEN_H