1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-02 11:29:36 +00:00
erc-c/include/apple2.h
2017-12-06 15:21:39 -06:00

27 lines
601 B
C

#ifndef _APPLE2_H_
#define _APPLE2_H_
#include "mos6502.h"
typedef struct {
/*
* The apple 2 hardware used an MOS-6502 processor.
*/
mos6502 *cpu;
/*
* This is the literal memory that the CPU above will create. You
* should _not_ attempt to free this memory; allow the CPU's own
* delete function to do that.
*/
vm_segment *memory;
} apple2;
extern apple2 *apple2_create();
extern void apple2_free(apple2 *);
extern void apple2_press_key(apple2 *, vm_8bit);
extern void apple2_clear_strobe(apple2 *);
extern void apple2_release_key(apple2 *);
#endif