GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
Functions | Variables
pulse.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "ge.h"
#include "signals.h"
#include "log.h"

Go to the source code of this file.

Functions

static uint8_t odd_parity (uint8_t data)
 Compute the odd-parity bit for an 8-bit data value.
 
static void on_TO00 (struct ge *ge)
 
static void on_TO10 (struct ge *ge)
 
static void on_TO11 (struct ge *ge)
 
static void on_TO15 (struct ge *ge)
 
static void on_TO19 (struct ge *ge)
 
static void on_TO20 (struct ge *ge)
 
static void on_TO25 (struct ge *ge)
 
static void on_TO30 (struct ge *ge)
 
static void on_TO40 (struct ge *ge)
 
static void on_TO50 (struct ge *ge)
 
static void on_TO50_1 (struct ge *ge)
 
static void on_TO60 (struct ge *ge)
 
static void on_TO64 (struct ge *ge)
 
static void on_TO65 (struct ge *ge)
 
static void on_TO70 (struct ge *ge)
 
static void on_TO80 (struct ge *ge)
 
static void on_TO89 (struct ge *ge)
 
static void on_TO90 (struct ge *ge)
 
static void on_TI05 (struct ge *ge)
 
static void on_TI06 (struct ge *ge)
 
static void on_TI10 (struct ge *ge)
 
void pulse (struct ge *ge)
 

Variables

static on_pulse_cb pulse_cb [END_OF_STATUS]
 

Function Documentation

◆ odd_parity()

static uint8_t odd_parity ( uint8_t  data)
inlinestatic

Compute the odd-parity bit for an 8-bit data value.

Returns 0 if the data byte already has an odd number of 1-bits (parity bit not needed), or 1 if an additional 1-bit is required to make the total count of 1-bits (data + parity) odd.

Definition at line 15 of file pulse.c.

◆ on_TI05()

static void on_TI05 ( struct ge ge)
static

Definition at line 214 of file pulse.c.

◆ on_TI06()

static void on_TI06 ( struct ge ge)
static

Definition at line 220 of file pulse.c.

◆ on_TI10()

static void on_TI10 ( struct ge ge)
static

Definition at line 221 of file pulse.c.

◆ on_TO00()

static void on_TO00 ( struct ge ge)
static

Definition at line 22 of file pulse.c.

◆ on_TO10()

static void on_TO10 ( struct ge ge)
static

Definition at line 58 of file pulse.c.

◆ on_TO11()

static void on_TO11 ( struct ge ge)
static

Definition at line 68 of file pulse.c.

◆ on_TO15()

static void on_TO15 ( struct ge ge)
static

Definition at line 69 of file pulse.c.

◆ on_TO19()

static void on_TO19 ( struct ge ge)
static

Definition at line 71 of file pulse.c.

◆ on_TO20()

static void on_TO20 ( struct ge ge)
static

Definition at line 76 of file pulse.c.

◆ on_TO25()

static void on_TO25 ( struct ge ge)
static

Definition at line 87 of file pulse.c.

◆ on_TO30()

static void on_TO30 ( struct ge ge)
static

Definition at line 88 of file pulse.c.

◆ on_TO40()

static void on_TO40 ( struct ge ge)
static

Definition at line 90 of file pulse.c.

◆ on_TO50()

static void on_TO50 ( struct ge ge)
static

Definition at line 100 of file pulse.c.

◆ on_TO50_1()

static void on_TO50_1 ( struct ge ge)
static

Definition at line 140 of file pulse.c.

◆ on_TO60()

static void on_TO60 ( struct ge ge)
static

Definition at line 153 of file pulse.c.

◆ on_TO64()

static void on_TO64 ( struct ge ge)
static

Definition at line 154 of file pulse.c.

◆ on_TO65()

static void on_TO65 ( struct ge ge)
static

Definition at line 156 of file pulse.c.

◆ on_TO70()

static void on_TO70 ( struct ge ge)
static

Definition at line 196 of file pulse.c.

◆ on_TO80()

static void on_TO80 ( struct ge ge)
static

Definition at line 201 of file pulse.c.

◆ on_TO89()

static void on_TO89 ( struct ge ge)
static

Definition at line 203 of file pulse.c.

◆ on_TO90()

static void on_TO90 ( struct ge ge)
static

Definition at line 208 of file pulse.c.

◆ pulse()

void pulse ( struct ge ge)

Definition at line 248 of file pulse.c.

Variable Documentation

◆ pulse_cb

on_pulse_cb pulse_cb[END_OF_STATUS]
static
Initial value:
= {
}
static void on_TO70(struct ge *ge)
Definition pulse.c:196
static void on_TO90(struct ge *ge)
Definition pulse.c:208
static void on_TO89(struct ge *ge)
Definition pulse.c:203
static void on_TO50(struct ge *ge)
Definition pulse.c:100
static void on_TO20(struct ge *ge)
Definition pulse.c:76
static void on_TI10(struct ge *ge)
Definition pulse.c:221
static void on_TO10(struct ge *ge)
Definition pulse.c:58
static void on_TO50_1(struct ge *ge)
Definition pulse.c:140
static void on_TI06(struct ge *ge)
Definition pulse.c:220
static void on_TO19(struct ge *ge)
Definition pulse.c:71
static void on_TO11(struct ge *ge)
Definition pulse.c:68
static void on_TI05(struct ge *ge)
Definition pulse.c:214
static void on_TO65(struct ge *ge)
Definition pulse.c:156
static void on_TO40(struct ge *ge)
Definition pulse.c:90
static void on_TO80(struct ge *ge)
Definition pulse.c:201
static void on_TO60(struct ge *ge)
Definition pulse.c:153
static void on_TO25(struct ge *ge)
Definition pulse.c:87
static void on_TO30(struct ge *ge)
Definition pulse.c:88
static void on_TO64(struct ge *ge)
Definition pulse.c:154
static void on_TO00(struct ge *ge)
Definition pulse.c:22
static void on_TO15(struct ge *ge)
Definition pulse.c:69

Definition at line 223 of file pulse.c.