src/state.h

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