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

34 lines
591 B
Plaintext
Raw Normal View History

2023-11-11 14:45:45 +00:00
import "sysdata/test-programs/hblib/std" as std;
fn main(){
2024-03-11 14:48:56 +00:00
std::Error(":o) h0nk");
std::Warn("Your mom is a worm!");
std::Info("Hello, world!");
2024-03-11 14:48:56 +00:00
// std::Debug("XYZ");
// std::Trace("Trace Deez");
2023-11-20 09:13:18 +00:00
2024-03-11 14:48:56 +00:00
let ADDR = 0xFFFF_FFFF_8100_0000;
let ADDR_PLUS_ONE = ADDR + 1;
let ADDR_PLUS_NINE = ADDR + 9;
li64(r25, 1);
st(r25, r0, ADDR, 1);
li64(r25, 0);
st(r25, r0, ADDR_PLUS_ONE, 8);
li64(r25, 17);
st(r25, r0, ADDR_PLUS_NINE, 1);
li64(r1, 3);
li64(r2, 2);
li64(r3, ADDR);
li64(r4, 0);
eca();
2023-12-01 15:02:56 +00:00
tx();
}
2023-12-01 14:48:57 +00:00
main();