pr 60
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use prometeu_bytecode::disasm::disasm;
|
||||
use prometeu_bytecode::v0::BytecodeLoader;
|
||||
use prometeu_bytecode::BytecodeLoader;
|
||||
use prometeu_compiler::compiler::compile;
|
||||
use prometeu_compiler::frontends::pbs::ast::Node;
|
||||
use prometeu_compiler::frontends::pbs::parser::Parser;
|
||||
|
||||
@@ -86,7 +86,7 @@ fn test_hip_conformance_core_to_vm_to_bytecode() {
|
||||
let bytecode = emit_result.rom;
|
||||
|
||||
// 4. Assert industrial PBS\0 format
|
||||
use prometeu_bytecode::v0::BytecodeLoader;
|
||||
use prometeu_bytecode::BytecodeLoader;
|
||||
let module = BytecodeLoader::load(&bytecode).expect("Failed to parse industrial PBC");
|
||||
assert_eq!(&bytecode[0..4], b"PBS\0");
|
||||
|
||||
|
||||
@@ -66,8 +66,8 @@ fn test_integration_test01_link() {
|
||||
let unit = compile(&project_dir).expect("Failed to compile and link");
|
||||
|
||||
let mut vm = VirtualMachine::default();
|
||||
// Use initialize to load the ROM and resolve entrypoint
|
||||
vm.initialize(unit.rom, "frame").expect("Failed to initialize VM");
|
||||
// Use initialize to load the ROM; entrypoint must be numeric or empty (defaults to 0)
|
||||
vm.initialize(unit.rom, "").expect("Failed to initialize VM");
|
||||
|
||||
let mut native = SimpleNative;
|
||||
let mut hw = SimpleHardware::new();
|
||||
|
||||
Reference in New Issue
Block a user