asm output, random fixes
This commit is contained in:
13
data/test2.lang
Normal file
13
data/test2.lang
Normal file
@@ -0,0 +1,13 @@
|
||||
fn start() {
|
||||
let x = asm(out = t0) {
|
||||
li t0, 40
|
||||
};
|
||||
exit(x);
|
||||
}
|
||||
|
||||
fn exit(status: 64) {
|
||||
asm (a0 = status) {
|
||||
li a7, 93
|
||||
ecall
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user