mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
56 lines
851 B
Plaintext
56 lines
851 B
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.
|
|
|
|
;
|
|
; Entry point
|
|
;
|
|
_start:
|
|
; Initializes the stack
|
|
mov rbp, 0x200000
|
|
mov rsp, rbp
|
|
|
|
call main
|
|
|
|
.1:
|
|
stop
|
|
jmp .1
|
|
|
|
;
|
|
; Some definitions
|
|
;
|
|
|
|
CHAR_MIN := 0x80
|
|
SHRT_MIN := 0x8000
|
|
INT_MIN := 0x80000000
|
|
LONG_MIN := 0x8000000000000000
|
|
|
|
XCHAR_MIN := 0xFFFFFFFFFFFFFF80
|
|
XSHRT_MIN := 0xFFFFFFFFFFFF8000
|
|
XINT_MIN := 0xFFFFFFFF80000000
|
|
|
|
CHAR_MAX := 0x7F
|
|
SHRT_MAX := 0x7FFF
|
|
INT_MAX := 0x7FFFFFFF
|
|
LONG_MAX := 0x7FFFFFFFFFFFFFFF
|
|
|
|
BYTE_MAX := 0xFF
|
|
WORD_MAX := 0xFFFF
|
|
LWORD_MAX := 0xFFFFFFFF
|
|
QWORD_MAX := 0xFFFFFFFFFFFFFFFF
|
|
|
|
STRLEN_MAX := 0xFFFFFFFF
|
|
|
|
;
|
|
; Include librairies
|
|
;
|
|
include "err/errno.k"
|
|
include "fmt/format.k"
|
|
include "prn/print.k"
|
|
include "str/string.k"
|
|
|
|
;
|
|
; Disk Operating System
|
|
;
|
|
include "main.k"
|
|
|