1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/test-programs/sds_test.rhai
2024-03-22 05:13:17 -05:00

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();