[−][src]Function spectrusty_formats::sna::read_sna48
pub fn read_sna48<R: Read, M: ZxMemory, C: Cpu>(
rd: R,
cpu: &mut C,
mem: &mut M
) -> Result<BorderColor>
Reads a 48k SNA file and inserts its content into provided memory and configures the Cpu
.
Returns a border color on success.
Note
This function handles only the 48k SNA files.
Errors
This function will return an error if the file is too small. Other errors may also be returned from attempts to read the file.