1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-05-30 12:27:13 +02:00
parent 0d5fd176e3
commit 1b7f72cb43
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
2 changed files with 25 additions and 7 deletions

View File

@ -1,20 +1,21 @@
; The OS/K Team licences this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
hw = "Hello World\n:)"
;
; Entry point
;
main:
_start:
; Initializes the stack
mov rbp, 0x200000
mov rsp, rbp
mov ax0, hw
call print
call main
stop
include "dos/print.k"
.1:
stop
jmp .1
include "dos/print.k"
include "dos/main.k"

17
dos/main.k Normal file
View File

@ -0,0 +1,17 @@
; The OS/K Team licences this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
hw = "Hello World\n:)"
;
; Main function
;
main:
enter
mov ax0, hw
call print
leave
ret