This commit is contained in:
wborgeaud 2022-07-27 11:27:04 +02:00
parent bb773e42b3
commit ce23d4377a

View File

@ -36,7 +36,7 @@ impl InterpreterMemory {
}
// TODO: Remove `code` and `stack` fields as they are contained in `memory`.
pub(crate) struct Interpreter<'a> {
pub struct Interpreter<'a> {
code: &'a [u8],
jumpdests: Vec<usize>,
offset: usize,
@ -468,8 +468,6 @@ fn find_jumpdests(code: &[u8]) -> Vec<usize> {
mod tests {
use std::collections::HashMap;
use hex_literal::hex;
use crate::cpu::kernel::interpreter::{run, Interpreter};
use crate::memory::segments::Segment;