18 lines
294 B
Plaintext
18 lines
294 B
Plaintext
func main() {
|
|
var abc = 0;
|
|
// an asm block may use variables outside of the asm scope
|
|
asm {
|
|
li r1, abc
|
|
}
|
|
// This is not really a requirement
|
|
opcode {
|
|
01
|
|
}
|
|
|
|
// Exit
|
|
var exit_status = 0;
|
|
asm {
|
|
li r255, exit_status
|
|
tx
|
|
}
|
|
} |