ableos/sysdata/programs/serial_driver_test/src/main.hb

21 lines
369 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
2024-09-10 14:52:57 -05:00
frame_buffer := @as(^u8, @bitcast(0 - 140734267129856))
2024-08-19 13:13:58 -05:00
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
}