ableos/sysdata/test-programs/main.rhai

34 lines
591 B
Plaintext
Raw Normal View History

2023-11-11 08:45:45 -06:00
import "sysdata/test-programs/hblib/std" as std;
fn main(){
2024-03-11 09:48:56 -05:00
std::Error(":o) h0nk");
std::Warn("Your mom is a worm!");
std::Info("Hello, world!");
2024-03-11 09:48:56 -05:00
// std::Debug("XYZ");
// std::Trace("Trace Deez");
2023-11-20 03:13:18 -06:00
2024-03-11 09:48:56 -05: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 09:02:56 -06:00
tx();
}
2023-12-01 08:48:57 -06:00
main();