pr2.6
This commit is contained in:
@@ -92,7 +92,6 @@ pub struct VirtualMachine {
|
||||
pub breakpoints: std::collections::HashSet<usize>,
|
||||
}
|
||||
|
||||
// HIP/Handle runtime structures removed per PR-2.1
|
||||
|
||||
impl Default for VirtualMachine {
|
||||
fn default() -> Self {
|
||||
@@ -305,14 +304,6 @@ impl VirtualMachine {
|
||||
})
|
||||
}
|
||||
|
||||
/// Peeks at the next 16-bit value in the ROM without advancing the PC.
|
||||
fn peek_u16(&self) -> Result<u16, String> {
|
||||
if self.pc + 2 > self.program.rom.len() {
|
||||
return Err("Unexpected end of ROM".into());
|
||||
}
|
||||
let bytes = [self.program.rom[self.pc], self.program.rom[self.pc + 1]];
|
||||
Ok(u16::from_le_bytes(bytes))
|
||||
}
|
||||
|
||||
/// Executes a single instruction at the current Program Counter (PC).
|
||||
///
|
||||
@@ -1605,20 +1596,6 @@ mod tests {
|
||||
assert!(vm.pop().is_err()); // Stack should be empty
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hip_traps_oob_removed_legacy() {
|
||||
// Legacy HIP opcodes removed; test deleted.
|
||||
assert!(true);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hip_traps_type_removed_legacy() { assert!(true); }
|
||||
|
||||
#[test]
|
||||
fn test_gate_ids_distinct_and_round_trip_removed_legacy() { assert!(true); }
|
||||
|
||||
#[test]
|
||||
fn test_invalid_gate_traps_removed_legacy() { assert!(true); }
|
||||
|
||||
#[test]
|
||||
fn test_entry_point_ret_with_prepare_call() {
|
||||
|
||||
Reference in New Issue
Block a user