GE-115 Emulator
An Emulator of the General Electrics GE-115 computer
Data Structures | Macros | Enumerations | Functions
cap.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  cap_deck_info
 

Macros

#define CAP_COLS_PER_CARD   80
 

Enumerations

enum  cap_deck_family { CAP_FAMILY_UNKNOWN = 0 , CAP_FAMILY_SCATTER , CAP_FAMILY_ISOLATION }
 

Functions

struct cap_deckcap_load (const char *path)
 
struct cap_deckcap_create (void)
 
int cap_num_cards (const struct cap_deck *d)
 
int cap_card_ncols (const struct cap_deck *d, int i)
 
const uint16_t * cap_card_columns (const struct cap_deck *d, int i)
 
int cap_append_card (struct cap_deck *d, const uint16_t *cols, int ncols)
 
int cap_save (const struct cap_deck *d, const char *path)
 
void cap_free (struct cap_deck *d)
 
enum cap_deck_family cap_detect_family (const struct cap_deck *d, int mode, struct cap_deck_info *info)
 
const char * cap_family_name (enum cap_deck_family family)
 
int cap_load_scattered (const char *path, int mode, unsigned char *image, unsigned *lo, unsigned *hi)
 
int cap_load_isolation_stream (const char *path, unsigned char *image, unsigned org, unsigned *lo, unsigned *hi)
 

Macro Definition Documentation

◆ CAP_COLS_PER_CARD

#define CAP_COLS_PER_CARD   80

Definition at line 5 of file cap.h.

Enumeration Type Documentation

◆ cap_deck_family

Enumerator
CAP_FAMILY_UNKNOWN 
CAP_FAMILY_SCATTER 
CAP_FAMILY_ISOLATION 

Definition at line 9 of file cap.h.

Function Documentation

◆ cap_append_card()

int cap_append_card ( struct cap_deck d,
const uint16_t *  cols,
int  ncols 
)

Definition at line 221 of file cap.c.

◆ cap_card_columns()

const uint16_t * cap_card_columns ( const struct cap_deck d,
int  i 
)

Definition at line 214 of file cap.c.

◆ cap_card_ncols()

int cap_card_ncols ( const struct cap_deck d,
int  i 
)

Definition at line 207 of file cap.c.

◆ cap_create()

struct cap_deck * cap_create ( void  )

Definition at line 195 of file cap.c.

◆ cap_detect_family()

enum cap_deck_family cap_detect_family ( const struct cap_deck d,
int  mode,
struct cap_deck_info info 
)

Definition at line 386 of file cap.c.

◆ cap_family_name()

const char * cap_family_name ( enum cap_deck_family  family)

Definition at line 374 of file cap.c.

◆ cap_free()

void cap_free ( struct cap_deck d)

Definition at line 263 of file cap.c.

◆ cap_load()

struct cap_deck * cap_load ( const char *  path)

Definition at line 124 of file cap.c.

◆ cap_load_isolation_stream()

int cap_load_isolation_stream ( const char *  path,
unsigned char *  image,
unsigned  org,
unsigned *  lo,
unsigned *  hi 
)

Definition at line 505 of file cap.c.

◆ cap_load_scattered()

int cap_load_scattered ( const char *  path,
int  mode,
unsigned char *  image,
unsigned *  lo,
unsigned *  hi 
)

Definition at line 442 of file cap.c.

◆ cap_num_cards()

int cap_num_cards ( const struct cap_deck d)

Definition at line 200 of file cap.c.

◆ cap_save()

int cap_save ( const struct cap_deck d,
const char *  path 
)

Definition at line 238 of file cap.c.