19 lines
226 B
Plaintext
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
|
|
}
|
|
}
|
|
|