19 lines
339 B
Plaintext
19 lines
339 B
Plaintext
fn create_buffer_protocol(string) {
|
|
let str = data::str("0" + string);
|
|
li8(r10, 0);
|
|
str(r10, r0, str, 1);
|
|
|
|
li64(r1, 3);
|
|
li64(r2, 0);
|
|
lra(r3, r0, str);
|
|
li64(r4, str.len);
|
|
eca();
|
|
}
|
|
|
|
|
|
create_buffer_protocol("protocol Math {\n\r"+
|
|
"\tfn add(i64, i64) -> i64;\n\r"+
|
|
"\tfn div(i64, i64) -> i64;\n\r"+
|
|
"}");
|
|
|
|
tx(); |