From 1b7f72cb433906235f323c04adb8a483f7c04150 Mon Sep 17 00:00:00 2001 From: julianb0 Date: Thu, 30 May 2019 12:27:13 +0200 Subject: [PATCH] fix --- dos/dos.k | 15 ++++++++------- dos/main.k | 17 +++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 dos/main.k diff --git a/dos/dos.k b/dos/dos.k index 508e945..6e8f9eb 100644 --- a/dos/dos.k +++ b/dos/dos.k @@ -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" diff --git a/dos/main.k b/dos/main.k new file mode 100644 index 0000000..4f8eca1 --- /dev/null +++ b/dos/main.k @@ -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 +