Commit e6a218d 1 parent fa99db6 commit e6a218d Copy full SHA for e6a218d
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,6 @@ impl Cpu {
830
830
pub fn run ( & mut self , com_bus : & mut CommunicationBus ) {
831
831
while !self . is_halted {
832
832
let ins = self . fetch_decode_next_instruction ( com_bus) ;
833
- eprintln ! ( "ins = {ins}" ) ;
834
833
self . run_instruction ( com_bus, & ins) ;
835
834
}
836
835
}
Original file line number Diff line number Diff line change 1
1
#![ crate_name = "redox_terminal" ]
2
2
3
3
use redox_core:: {
4
- compiling:: compiler:: Compiler ,
4
+ compiling:: { compiler:: Compiler , decompiler :: Decompiler } ,
5
5
ins:: instruction:: Instruction ,
6
6
mem,
7
7
reg:: registers:: RegisterId ,
@@ -73,7 +73,7 @@ fn main() {
73
73
74
74
println ! ( "{data:?}" ) ;
75
75
76
- let instructions = & [
76
+ /* let instructions = &[
77
77
// Indicate that we want to make a seeded random number generator.
78
78
Instruction::OutU8Imm(0x1, 0x0),
79
79
// Specify our seed.
@@ -84,7 +84,7 @@ fn main() {
84
84
Instruction::Halt,
85
85
];
86
86
87
- /* let mut compiler = Compiler::new();
87
+ let mut compiler = Compiler::new();
88
88
let data = compiler.compile(instructions);*/
89
89
90
90
let mut vm = VirtualMachine :: new (
@@ -95,7 +95,7 @@ fn main() {
95
95
) ;
96
96
97
97
println ! ( "----------[Instructions]----------" ) ;
98
- for ins in instructions {
98
+ for ins in Decompiler :: decompile ( data ) {
99
99
println ! ( "{ins}" ) ;
100
100
}
101
101
println ! ( ) ;
You can’t perform that action at this time.
0 commit comments