pub fn new_from_rom(rom: &Rom) -> Ram 
	{ 
		let mut ram = Ram { mem: [0; 0x1000] };
		ram.mem[0x000..0x050].clone_from_slice(&FONT_DATA[..]);
		ram.mem[0x200..(0x200 + rom.length)].clone_from_slice(&rom.data[0..rom.length]);
		ram
	}
/// Initialize a new RAM with the ROM provided copied into the work area at address 0x200 onwards.
Initialize a new RAM with the ROM provided copied into the work area at address 0x200 onwards.
Initialize a new RAM with the ROM provided copied into the work area at address 0x200 onwards .
pub fn new_from_rom(rom: &Rom) -> Ram 
	{ 
		let mut ram = Ram { mem: [0; 0x1000] };
		ram.mem[0x000..0x050].clone_from_slice(&FONT_DATA[..]);
		ram.mem[0x200..(0x200 + rom.length)].clone_from_slice(&rom.data[0..rom.length]);
		ram
	}
pub fn new_from_rom ( rom : & Rom ) -> Ram { let mut ram = Ram { mem : [ 0 ; 0x1000 ] } ; ram . mem [ 0x000 .. 0x050 ] . clone_from_slice ( & FONT_DATA [ .. ] ) ; ram . mem [ 0x200 .. ( 0x200 + rom . length ) ] . clone_from_slice ( & rom . data [ 0 .. rom . length ] ) ; ram }
Initialize a new RAM with the ROM provided copied into the work area at address 0x200 onwards.
Initialize a new RAM with the ROM provided copied into the work area at address 0x200 onwards .
rom
&Rom