GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
gecode.h
Go to the documentation of this file.
1/*
2 * gecode.h - GE 100-series internal graphic character code.
3 *
4 * Single source of the machine's internal character set so the disassembler
5 * (gdis, DB-comment glyphs) and the runtime (printer/typewriter capture) cannot
6 * drift apart. See gecode.c for the table and its provenance.
7 */
8#ifndef GECODE_H
9#define GECODE_H
10
11#include <stdint.h>
12
13/* Return the ASCII rendering of the GE-120 internal graphic byte `b`, or '.'
14 * for any non-graphic code (and for graphics with no ASCII equivalent). */
15char ge_glyph(uint8_t b);
16
17/* Translate an ASCII byte to the GE-120 internal graphic code used by the
18 * compiler/runtime and the integrated typewriter path. Unsupported characters
19 * fold to space; '\n' becomes the runtime line-feed control byte 0x00. */
20uint8_t ge_code(uint8_t ascii);
21
22#endif /* GECODE_H */
uint8_t ge_code(uint8_t ascii)
Definition gecode.c:47
char ge_glyph(uint8_t b)
Definition gecode.c:37