removed bounded from VM, bytecode and specs

This commit is contained in:
2026-03-24 13:40:44 +00:00
parent a04f462939
commit cfdca93160
18 changed files with 894 additions and 507 deletions
@@ -635,10 +635,7 @@ impl NativeInterface for VirtualMachineRuntime {
Syscall::GfxClear565 => {
let color_val = expect_int(args, 0)? as u32;
if color_val > 0xFFFF {
return Err(VmFault::Trap(
TRAP_OOB,
"Color value out of bounds (bounded)".into(),
));
return Err(VmFault::Trap(TRAP_OOB, "Color value out of bounds".into()));
}
let color = Color::from_raw(color_val as u16);
hw.gfx_mut().clear(color);
@@ -854,7 +851,6 @@ impl NativeInterface for VirtualMachineRuntime {
Value::Float(f) => *f,
Value::Int32(i) => *i as f64,
Value::Int64(i) => *i as f64,
Value::Bounded(b) => *b as f64,
_ => return Err(VmFault::Trap(TRAP_TYPE, "Expected number for pitch".into())),
};
@@ -892,7 +888,6 @@ impl NativeInterface for VirtualMachineRuntime {
Value::Float(f) => *f,
Value::Int32(i) => *i as f64,
Value::Int64(i) => *i as f64,
Value::Bounded(b) => *b as f64,
_ => return Err(VmFault::Trap(TRAP_TYPE, "Expected number for pitch".into())),
};
let loop_mode = match expect_int(args, 6)? {