2018-01-04 02:51:20 +00:00
|
|
|
#ifndef _OBJSTORE_H_
|
|
|
|
#define _OBJSTORE_H_
|
|
|
|
|
2018-01-04 03:49:26 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2018-01-04 02:51:20 +00:00
|
|
|
#include "apple2.mem.h"
|
|
|
|
#include "vm_bits.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char header[4];
|
2018-01-09 21:56:21 +00:00
|
|
|
vm_8bit apple2_peripheral_rom[APPLE2_PERIPHERAL_SIZE];
|
|
|
|
vm_8bit apple2_sys_rom[APPLE2_SYSROM_SIZE];
|
2018-01-04 02:51:20 +00:00
|
|
|
vm_8bit apple2_sysfont[APPLE2_SYSFONT_SIZE];
|
|
|
|
} objstore;
|
|
|
|
|
2018-01-04 03:49:26 +00:00
|
|
|
extern bool objstore_ready();
|
2018-01-07 22:30:33 +00:00
|
|
|
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()
|
|
|
|
|
2018-01-09 21:56:21 +00:00
|
|
|
OBJSTORE_DECL(apple2_peripheral_rom);
|
2018-01-04 02:51:20 +00:00
|
|
|
OBJSTORE_DECL(apple2_sys_rom);
|
|
|
|
OBJSTORE_DECL(apple2_sysfont);
|
|
|
|
|
|
|
|
#endif
|