Setup Configuration - aaronboult/emulator-8080 GitHub Wiki
A struct containing data that can be modified depending on the game that is to be emulated.
-
input_handler:
fn(&mut Processor8080, u8, &Vec<u8>) -> u8
- The function called whenIN
instructions are processed -
output_handler:
fn(&mut Processor8080, u8, u8, &mut Vec<u8>, &mut AudioController)
- The function called whenOUT
instructions are processed -
key_event_handler:
fn(&mut Machine)
- The function called to handle SDL2 key events -
interrupt_handler:
fn(&mut Machine)
- The function called that is responsible for generating CPU interrupts when they are required, mimicking external hardware interrupts -
drawer:
fn(&mut Machine)
- The function called to draw the contents of the video memory to the screen - files: Vec<FileToLoad> - A vector of FileToLoad structs in the order that they should be loaded into memory
-
ports:
[u8; 256]
- An array of all 256 ports on the processor - window: sdl2::video::window - The display window; modification of the size and title of the window is available
- audio_tracks: Vec<Chunk> - The audio tracks for the game that is to be emulated - the index of each track in this vector is used to play said track