kvisc/ka/crt/crt.k

59 lines
971 B
Plaintext
Raw Normal View History

2019-05-30 12:44:56 +02:00
; The OS/K Team licenses this file to you under the MIT license.
2019-05-30 12:27:13 +02:00
; See the LICENSE file in the project root for more information.
;
2019-07-24 16:52:26 +02:00
; Limits
2019-05-30 12:27:13 +02:00
;
2019-07-24 16:52:26 +02:00
2019-08-14 20:23:05 +02:00
CHAR_MIN := 0x80
SHRT_MIN := 0x8000
INT_MIN := 0x80000000
2019-07-24 16:52:26 +02:00
LONG_MIN := 0x8000000000000000
XCHAR_MIN := 0xFFFFFFFFFFFFFF80
XSHRT_MIN := 0xFFFFFFFFFFFF8000
XINT_MIN := 0xFFFFFFFF80000000
2019-08-14 20:23:05 +02:00
CHAR_MAX := 0x7F
SHRT_MAX := 0x7FFF
INT_MAX := 0x7FFFFFFF
2019-07-24 16:52:26 +02:00
LONG_MAX := 0x7FFFFFFFFFFFFFFF
2019-08-14 20:23:05 +02:00
BYTE_MAX := 0xFF
WORD_MAX := 0xFFFF
LWORD_MAX := 0xFFFFFFFF
2019-07-24 16:52:26 +02:00
QWORD_MAX := 0xFFFFFFFFFFFFFFFF
2019-08-14 20:23:05 +02:00
FNAME_MAX := 0x80
FILE_MAXSZ := 0x8000
STRLEN_MAX := 0x7AFFFFFF
2019-07-24 16:52:26 +02:00
;
; Magic numbers
;
2019-08-14 20:23:05 +02:00
PRN_CLEAR := 0x8BF00001
PRN_FLUSH := 0x8BF00002
2019-07-24 16:52:26 +02:00
;
; CRT librairies
;
2019-07-09 19:51:03 +02:00
include "crt/sys.k"
2019-08-14 20:23:05 +02:00
include "crt/str.k"
include "crt/mem.k"
include "crt/time.k"
include "crt/fmt/ltostr.k"
include "crt/fmt/strtol.k"
include "crt/fmt/doprnt.k"
include "crt/fmt/printf.k"
2019-08-21 16:57:32 +02:00
exit:
mov rax, Sys.Exit
trap 0
2019-07-22 14:41:50 +02:00
abort:
crash