1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-30 08:51:53 +00:00
erc-c/include/objstore.h

30 lines
656 B
C
Raw Normal View History

2018-01-04 02:51:20 +00:00
#ifndef _OBJSTORE_H_
#define _OBJSTORE_H_
#include <stdbool.h>
2018-01-04 02:51:20 +00:00
#include "apple2.mem.h"
#include "vm_bits.h"
typedef struct {
char header[4];
vm_8bit apple2_sys_rom[APPLE2_SYSROM_SIZE];
2018-01-15 23:10:27 +00:00
vm_8bit apple2_peripheral_rom[APPLE2_PERIPHERAL_SIZE];
2018-01-04 02:51:20 +00:00
vm_8bit apple2_sysfont[APPLE2_SYSFONT_SIZE];
2018-01-24 20:26:28 +00:00
vm_8bit apple2_invfont[APPLE2_SYSFONT_SIZE];
2018-01-04 02:51:20 +00:00
} objstore;
extern bool objstore_ready();
extern int objstore_init();
extern void objstore_clear();
2018-01-04 02:51:20 +00:00
#define OBJSTORE_DECL(x) \
const vm_8bit *objstore_##x()
OBJSTORE_DECL(apple2_peripheral_rom);
2018-01-04 02:51:20 +00:00
OBJSTORE_DECL(apple2_sys_rom);
OBJSTORE_DECL(apple2_sysfont);
2018-01-24 20:26:28 +00:00
OBJSTORE_DECL(apple2_invfont);
2018-01-04 02:51:20 +00:00
#endif