GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
reader.h
Go to the documentation of this file.
1 #ifndef READER
2 #define READER
3 
4 #include <stdint.h>
5 
6 struct ge;
7 
9  uint8_t lu08:1;
10  uint8_t fini:1;
11 
12  uint8_t data;
13 };
14 
15 void reader_setup_to_send(struct ge *ge, uint8_t data, uint8_t end);
16 void reader_clear_sending(struct ge *ge);
17 
18 void reader_send_tu00(struct ge *);
19 void reader_send_tu10(struct ge *);
20 
21 uint8_t reader_get_LU08(struct ge *);
22 uint8_t reader_get_LUPO1(struct ge *);
23 uint8_t reader_get_FINI1(struct ge *);
24 
25 struct ge_connector {
26  const char *name;
27 
28  uint8_t data;
29 
30  uint8_t mare:1;
31  uint8_t te10:1;
32  uint8_t te20:1;
33  uint8_t te30:1;
34  uint8_t fine:1;
35 };
36 
37 void connector_setup_to_send(struct ge *, struct ge_connector *, uint8_t, uint8_t);
38 void connector_send_tu00(struct ge *, struct ge_connector *);
40 
41 uint8_t connector_get_MARE(struct ge_connector *);
42 uint8_t connector_get_TE10(struct ge_connector *);
43 uint8_t connector_get_TE20(struct ge_connector *);
44 uint8_t connector_get_TE30(struct ge_connector *);
45 uint8_t connector_get_FINE(struct ge_connector *);
46 
47 #endif
48 
void connector_send_tu00(struct ge *, struct ge_connector *)
Definition: reader.c:156
void reader_setup_to_send(struct ge *ge, uint8_t data, uint8_t end)
Definition: reader.c:33
uint8_t connector_get_TE20(struct ge_connector *)
Definition: reader.c:105
uint8_t reader_get_LU08(struct ge *)
Definition: reader.c:68
uint8_t connector_get_FINE(struct ge_connector *)
Definition: reader.c:117
uint8_t reader_get_FINI1(struct ge *)
Definition: reader.c:87
void connector_setup_to_send(struct ge *, struct ge_connector *, uint8_t, uint8_t)
Definition: reader.c:123
uint8_t connector_get_TE30(struct ge_connector *)
Definition: reader.c:111
void reader_send_tu10(struct ge *)
Definition: reader.c:62
uint8_t reader_get_LUPO1(struct ge *)
Definition: reader.c:81
void reader_clear_sending(struct ge *ge)
Definition: reader.c:56
uint8_t connector_get_TE10(struct ge_connector *)
Definition: reader.c:99
uint8_t connector_get_MARE(struct ge_connector *)
Definition: reader.c:93
void reader_send_tu00(struct ge *)
Definition: reader.c:21
void connector_clear_sending(struct ge_connector *)
Definition: reader.c:149
uint8_t te20
Definition: reader.h:32
uint8_t mare
Definition: reader.h:30
uint8_t data
Definition: reader.h:28
uint8_t te30
Definition: reader.h:33
uint8_t fine
Definition: reader.h:34
const char * name
Definition: reader.h:26
uint8_t te10
Definition: reader.h:31
uint8_t lu08
Definition: reader.h:9
The entire state of the emulated system, including registers, memory, peripherals and timings.
Definition: ge.h:94