1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
kvisc/ka/command.k

29 lines
559 B
Plaintext
Raw Normal View History

2019-06-20 18:13:06 +02:00
; The OS/K Team licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
2019-07-10 17:17:45 +02:00
__cmdstart:
jmp start
include "crt/crt.k"
2019-07-13 12:38:03 +02:00
FILE_LOADP := 0x141000 ; 4KB above stack
2019-07-01 13:16:17 +02:00
start:
2019-07-10 17:17:45 +02:00
mov rsp, 0x140000
xor rbp, rbp
cls
2019-07-10 21:05:26 +02:00
cld
2019-07-10 17:17:45 +02:00
call main
2019-07-01 13:16:17 +02:00
2019-07-13 12:38:03 +02:00
mov rax, Sys.EnterHaltMode
2019-07-10 17:17:45 +02:00
trap 0
2019-07-01 13:16:17 +02:00
2019-07-10 17:17:45 +02:00
crash
2019-07-01 13:16:17 +02:00
2019-07-10 17:17:45 +02:00
include "usr/cmd/main.k"
2019-07-01 13:16:17 +02:00
include "usr/cmd/dir.k"
2019-06-20 18:13:06 +02:00
2019-07-10 22:37:59 +02:00
cmd.versionstr = "COMMAND.COM, version 0.1 (KVISC)\nCopyright (C) 2019, The OS/K Team\nMIT license (permissive), see LICENCE file in source tree"