forked from AbleOS/ableos
koniifer
3df6f18c85
update hblang auto cpu feature detection for repbuild less verbose buffer api add peony's tetris stub
22 lines
508 B
Plaintext
22 lines
508 B
Plaintext
string := @use("string.hb")
|
|
|
|
recv := fn(buffer_id: int, memory_map_location: ^u8, length: int): ^u8 {
|
|
return @eca(4, buffer_id, memory_map_location, length)
|
|
}
|
|
|
|
write := fn(msg: ^u8, buffer_id: int, length: int): void {
|
|
return @eca(3, buffer_id, msg, length)
|
|
}
|
|
|
|
create := fn(msg: ^u8): int {
|
|
msg_length := @inline(string.length, msg);
|
|
*msg = 0
|
|
return @eca(3, 0, msg, msg_length)
|
|
}
|
|
|
|
search := fn(msg: ^u8): int {
|
|
msg_length := @inline(string.length, msg);
|
|
*msg = 3
|
|
|
|
return @eca(3, 0, msg, msg_length)
|
|
} |