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
Peter Evans 06d37d24d7 Allow us to call objstore_init more than once.
This also separates some code into objstore_ready().
2018-01-03 21:49:26 -06:00

27 lines
523 B
C

#ifndef _OBJSTORE_H_
#define _OBJSTORE_H_
#include <stdbool.h>
#include "apple2.mem.h"
#include "vm_bits.h"
typedef struct {
char header[4];
vm_8bit apple2_disk2_rom[APPLE2_DISK2_ROM_SIZE];
vm_8bit apple2_sys_rom[0x4000];
vm_8bit apple2_sysfont[APPLE2_SYSFONT_SIZE];
} objstore;
extern int objstore_init();
extern bool objstore_ready();
#define OBJSTORE_DECL(x) \
const vm_8bit *objstore_##x()
OBJSTORE_DECL(apple2_disk2_rom);
OBJSTORE_DECL(apple2_sys_rom);
OBJSTORE_DECL(apple2_sysfont);
#endif