This commit is contained in:
nora 2022-07-04 11:10:51 +02:00
parent e3b554bd41
commit 30735f6298
2 changed files with 7 additions and 8 deletions

View file

@ -12,9 +12,9 @@ fn main() -> Result<(), io::Error> {
let result = parser::parse(&file);
let ast = result.unwrap_or_else(|e| report_and_exit(&file, e));
dbg_pls::color!(&ast);
// dbg_pls::color!(&ast);
let stmts = ir::compile(ast.into_iter()).unwrap_or_else(|e| report_and_exit(&file, e));
dbg_pls::color!(&stmts.0);
// dbg_pls::color!(&stmts.0);
interpret::interpret(stmts.0).unwrap_or_else(|e| report_and_exit(&file, e));

View file

@ -1,7 +1,6 @@
mov [0], 40
mov [1], 41
mov [2], 42
mov [3], 43
movb [0], 65
movb [1], 66
movb [2], 67
mov r0, 0
mov r1, 4
mov r1, 3
int 1