1
0
Fork 0
forked from AbleOS/ableos
ableos_time/sysdata/programs/serial_driver_test/src/main.hb

21 lines
370 B
Plaintext
Raw Normal View History

2024-08-19 13:13:58 -05:00
stn := @use("../../../libraries/stn/src/lib.hb");
.{string, memory, buffer} := stn
frame_buffer := @as(^u8, @bitcast(18446603339442421760))
log_info := fn(): void {
a := buffer.search("XNumber\0")
if a == 0 {
} else {
msg := "XABC\0"
msg_length := string.length(msg)
@eca(void, 3, a, msg, msg_length)
}
return
}
main := fn(): int {
log_info()
return 0
}