Skip to main content

process_input_file

Function process_input_file 

Source
pub fn process_input_file(
    target: &PathBuf,
    input_file_type: InputFileType,
) -> (Vec<u16>, Option<Vec<Token>>)
Expand description

Reads and processes the target file, returning its memory and if possible the tokens associated with it. The assembler can take three types of input files:

  • .sbl files will be assembled
  • .bin and .sblx files will only be read