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

20 lines
349 B
Plaintext
Raw Normal View History

2024-09-13 16:41:31 -05:00
.{string, buffer} := @use("../../../libraries/stn/src/lib.hb")
2024-08-19 13:13:58 -05:00
log_info := fn(): void {
a := buffer.search("XNumber\0")
if a == 0 {
} else {
msg := "XABC\0"
2024-11-03 16:31:53 -06:00
// inline is broked
// msg_length := @inline(string.length, msg)
msg_length := 5
2024-10-23 15:22:28 -05:00
@as(void, @eca(3, a, msg, msg_length))
2024-08-19 13:13:58 -05:00
}
return
}
main := fn(): int {
log_info()
return 0
}