kvisc/ka/crt/crt.k

59 lines
1.1 KiB
Plaintext

; The OS/K Team licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
;
; Limits
;
#define CHAR_MIN 0x80
#define SHRT_MIN 0x8000
#define INT_MIN 0x80000000
#define LONG_MIN 0x8000000000000000
#define XCHAR_MIN 0xFFFFFFFFFFFFFF80
#define XSHRT_MIN 0xFFFFFFFFFFFF8000
#define XINT_MIN 0xFFFFFFFF80000000
#define CHAR_MAX 0x7F
#define SHRT_MAX 0x7FFF
#define INT_MAX 0x7FFFFFFF
#define LONG_MAX 0x7FFFFFFFFFFFFFFF
#define BYTE_MAX 0xFF
#define WORD_MAX 0xFFFF
#define LWORD_MAX 0xFFFFFFFF
#define QWORD_MAX 0xFFFFFFFFFFFFFFFF
#define FNAME_MAX 0x80
#define FILE_MAXSZ 0x8000
#define STRLEN_MAX 0x7AFFFFFF
;
; Magic numbers
;
#define PRN_CLEAR 0x8BF00001
#define PRN_FLUSH 0x8BF00002
;
; CRT librairies
;
#include "crt/sys.k"
#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"
exit:
mov eax, Sys.Exit
trap 0
abort:
crash