1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/test-programs/sds_test.rhai

16 lines
277 B
Plaintext
Raw Normal View History

2024-03-22 03:58:59 -05:00
fn set_buffer_protocol(buffer_id, string) {
let str = data::str("01234567" + string);
li64(r10, buffer_id);
str(r10, r0, str, 8);
li64(r1, 3);
li64(r2, 0);
lra(r3, r0, str);
li64(r4, str.len);
eca();
}
set_buffer_protocol(1, "string");
tx();