2024-02-05 09:05:48 +02:00

5 lines
146 B
Rust

use crate::errors::RunError;
pub fn dup(memory: &mut Vec<u16>) {
memory.push(*memory.last().expect(&format!("{}", RunError::MemoryEmpty)));
}