Files
lang/data/test.lang
2024-11-26 22:42:39 -05:00

19 lines
226 B
Plaintext

trait Add {
fn add(self, other: Self) -> Self
}
impl Add for b32 {
asm fn add(self, other) {
add {out}, {self}, {other}
}
}
fn main() {
asm {
li a0, 3
li a7, 93
ecall
}
}