1.1 --- a/src/state.h Tue Dec 28 17:25:46 2010 +0000 1.2 +++ b/src/state.h Tue Dec 28 17:31:28 2010 +0000 1.3 @@ -31,6 +31,8 @@ 1.4 //// Main system RAM 1.5 uint8_t *base_ram; ///< Base RAM data buffer 1.6 size_t base_ram_size; ///< Size of Base RAM buffer in bytes 1.7 + uint8_t *exp_ram; ///< Expansion RAM data buffer 1.8 + size_t exp_ram_size; ///< Size of Expansion RAM buffer in bytes 1.9 1.10 /// Video RAM 1.11 uint8_t vram[0x8000]; 1.12 @@ -81,11 +83,12 @@ 1.13 /** 1.14 * @brief Initialise system state 1.15 * 1.16 - * @param ramsize RAM size in bytes -- must be a multiple of 512KiB, min 512KiB, max 4MiB. 1.17 + * @param base_ram_size Base RAM size in bytes -- must be a multiple of 512KiB, min 512KiB, max 2MiB. 1.18 + * @param exp_ram_size Expansion RAM size in bytes -- must be a multiple of 512KiB, min 0, max 2MiB. 1.19 * 1.20 * Initialises the emulator's internal state. 1.21 */ 1.22 -int state_init(size_t ramsize); 1.23 +int state_init(size_t base_ram_size, size_t exp_ram_size); 1.24 1.25 /** 1.26 * @brief Deinitialise system state