entry main.enter; import "../../IMPORT/callsys.h"; import "../../IMPORT/proc.h"; import "../../IMPORT/callsys.lib.s"; import "../../IMPORT/string.lib.s"; import "../../IMPORT/number.lib.s"; import "../../IMPORT/io.lib.s"; public block main { data { a: quad 0; b: quad 0; } data code { public enter: { ldiq $t0, a; ldiq $t1, 1; stq $t1, ($t0); } { ldiq $t0, b; ldiq $t1, 0; stq $t1, ($t0); } { { const { string: asciiz "a = %d, b = %d\n"; align; } const ldiq $t0, string; } mov $t0, $a0; ldiq $t0, a; ldq $t0, ($t0); mov $t0, $a1; ldiq $t0, b; ldq $t0, ($t0); mov $t0, $a2; bsr IO.printf.enter; } clr $a0; bsr Sys.exit.enter; } code } block main