1
0
forked from Rativel/BurritOS

Add launch argument parser, add debug parameter to machine

burritos now launch binary
This commit is contained in:
Quentin Legot
2023-04-06 13:27:03 +02:00
parent 2f0b9e6592
commit 9cc57e7f03
9 changed files with 459 additions and 60 deletions

View File

@@ -245,7 +245,7 @@ mod test {
#[test]
fn test_sc_shutdown() {
let mut machine = Machine::init_machine();
let mut machine = Machine::new(true);
machine.write_int_register(17, SC_SHUTDOWN as i64); // Set type to shutdown
let ecall = Instruction::new(0b000000000000_00000_000_00000_1110011);
@@ -261,7 +261,7 @@ mod test {
#[test]
#[ignore]
fn test_sc_print() {
let mut machine = Machine::init_machine();
let mut machine = Machine::new(true);
let address = machine.read_int_register(10);
// Write string 'HELLO' in memory