kvisc/ka/command.k

28 lines
548 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-24 17:42:42 +02:00
FILE_LOADP := 0x121000 ; 4KB above stack
2019-07-13 12:38:03 +02:00
2019-07-01 13:16:17 +02:00
start:
2019-07-24 17:42:42 +02:00
mov rsp, 0x120000
2019-07-17 22:25:50 +02:00
mov rbp, zero
2019-07-17 22:40:13 +02:00
2019-07-10 17:17:45 +02:00
cls
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"