newoswan/oswan/source/memory.h
Godzil ea6bfacb66 Don't use "pre made" EEPROM content, just fill it with 0, it works fine for now.
Also set the "system" at a proper time
And set the correct (?) size for EEPROM
2019-09-04 15:13:52 +01:00

38 lines
793 B
C

//////////////////////////////////////////////////////////////////////////////
//
//////////////////////////////////////////////////////////////////////////////
//
//
//
//
//
//
//////////////////////////////////////////////////////////////////////////////
#ifndef __MEMORY_H__
#define __MEMORY_H__
extern uint8 *ws_staticRam;
extern uint8 *internalRam;
extern uint8 *externalEeprom;
void ws_memory_init(uint8 *rom, uint32 romSize);
void ws_memory_reset(void);
uint8 *memory_getRom(void);
uint32 memory_getRomSize(void);
uint16 memory_getRomCrc(void);
void ws_memory_done(void);
void memory_load(int fp);
void memory_save(int fp);
void ws_sram_load(char *path);
void ws_sram_save(char *path);
void dump_memory();
#define BW_IEEPROM_SIZE (128)
#define COLOR_IEEPROM_SIZE (2048)
#endif