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:19:38 +02:00
|
|
|
; See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
;
|
|
|
|
; Entry point
|
|
|
|
;
|
2019-06-21 22:19:55 +02:00
|
|
|
start:
|
2019-06-15 20:21:38 +02:00
|
|
|
mov rsp, 0x200000
|
|
|
|
xor rbp, rbp
|
2019-05-30 12:19:38 +02:00
|
|
|
|
2019-05-30 12:27:13 +02:00
|
|
|
call main
|
2019-05-30 12:19:38 +02:00
|
|
|
|
2019-06-26 21:25:59 +02:00
|
|
|
call dir_test
|
2019-06-23 20:56:04 +02:00
|
|
|
|
2019-06-27 23:00:35 +02:00
|
|
|
;hlt
|
2019-06-23 20:56:04 +02:00
|
|
|
|
2019-06-21 22:19:55 +02:00
|
|
|
; Wait for and print input indefinitely
|
2019-05-30 12:27:13 +02:00
|
|
|
.1:
|
2019-06-21 22:19:55 +02:00
|
|
|
scan rax
|
|
|
|
xpause
|
|
|
|
|
|
|
|
test rax, rax
|
|
|
|
j.z .1
|
|
|
|
|
|
|
|
prn rax
|
2019-05-30 12:27:13 +02:00
|
|
|
jmp .1
|
2019-05-30 12:19:38 +02:00
|
|
|
|
2019-06-21 22:19:55 +02:00
|
|
|
|
|
|
|
|
2019-06-15 13:42:30 +02:00
|
|
|
include "inc/limits.k"
|
2019-06-21 12:13:09 +02:00
|
|
|
include "crt/crt.k"
|
2019-06-13 17:13:59 +02:00
|
|
|
|
2019-05-30 18:31:50 +02:00
|
|
|
;
|
2019-06-21 12:13:09 +02:00
|
|
|
; Disk Operating System
|
2019-06-14 16:47:01 +02:00
|
|
|
;
|
2019-06-26 21:25:59 +02:00
|
|
|
|
2019-06-21 19:38:31 +02:00
|
|
|
include "sys/drv/cpudev.k"
|
|
|
|
include "sys/drv/memdev.k"
|
2019-06-26 21:25:59 +02:00
|
|
|
include "sys/drv/diskdev.k"
|
|
|
|
|
2019-06-21 12:13:09 +02:00
|
|
|
include "sys/tests.k"
|
|
|
|
include "sys/main.k"
|
2019-05-30 12:19:38 +02:00
|
|
|
|