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
47
48
49
50
51
52
53
54
55
56
typedef struct Cpu8080 Cpu8080;
typedef struct IoCallbacks IoCallbacks;
/**
* # Safety
* This function should be called with valid rom path
* and the RAM will be allocated on the fly
*/
struct Cpu8080 *;
/**
* # Safety
* This function should be safe
*/
void ;
/**
* Always called from a separated thread!
* It is crucial that we don't borrow our CPU instance
* since this function will be called from FFI thread.
* (e.g. threads spawned by Swift language where we
* cannot enforce any ownership mechanism)
*/
void ;
/**
* Channel for the control of execution, we can either start
* or pause the execution of instructions, again we
* shall not borrow the CPU instance same as `send_interrupt`
* since this function should always be called from a separated thread
*/
void ;
/**
* # Safety
* This function should be safe for accessing video ram
*/
const uint8_t *;