fn write_instruction_word_into_bytestream(
    bytesteam: &mut Vec<u16>,
    instruction_word: u16,
    arg1: Option<u16>,
    arg2: Option<u16>,
) {
    bytesteam.push(instruction_word);
    if arg1.is_some() {
        bytesteam.push(arg1.unwrap());
    }
    if arg2.is_some() {
        bytesteam.push(arg2.unwrap());
    }
}
/// Writes an individual instruction word into the bytestream.
Writes an individual instruction word into the bytestream.
Writes an individual instruction word into the bytestream .
fn write_instruction_word_into_bytestream(
    bytesteam: &mut Vec<u16>,
    instruction_word: u16,
    arg1: Option<u16>,
    arg2: Option<u16>,
) {
    bytesteam.push(instruction_word);
    if arg1.is_some() {
        bytesteam.push(arg1.unwrap());
    }
    if arg2.is_some() {
        bytesteam.push(arg2.unwrap());
    }
}
fn write_instruction_word_into_bytestream ( bytesteam : & mut Vec < u16 > , instruction_word : u16 , arg1 : Option < u16 > , arg2 : Option < u16 > , ) { bytesteam . push ( instruction_word ) ; if arg1 . is_some ( ) { bytesteam . push ( arg1 . unwrap ( ) ) ; } if arg2 . is_some ( ) { bytesteam . push ( arg2 . unwrap ( ) ) ; } }
Writes an individual instruction word into the bytestream.
Writes an individual instruction word into the bytestream .
bytesteam
&mut Vec<u16>
instruction_word
u16
arg1
Option<u16>
arg2
Option<u16>