From b19f6293308d15f72e0786a49cf4694d49ee9353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20Guldberg?= Date: Mon, 3 Jun 2019 22:28:15 +0200 Subject: [PATCH] version 0.0.6.0: improved xex command, data segment also set correct, which should mean fully correct termination of an executable file --- kernel.nasm | 2 +- lib/xex.nasm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel.nasm b/kernel.nasm index 51c418b..e18f1c6 100644 --- a/kernel.nasm +++ b/kernel.nasm @@ -287,7 +287,7 @@ global_vars: ; this is the bios ID data: - welcome db "###############################################################################", 13, 10, "# Welcome to SingOS - VERSION 0.0.5.2 #", 13, 10, "# #", 13, 10, "###############################################################################", 13, 10, 'Press ESC to halt.', 13, 10, 13, 10, 0 + welcome db "###############################################################################", 13, 10, "# Welcome to SingOS - VERSION 0.0.6.0 #", 13, 10, "# #", 13, 10, "###############################################################################", 13, 10, 'Press ESC to halt.', 13, 10, 13, 10, 0 exit_message db 13, 10, 'Goodbye from SingOS',13,10,'The system has halted.', 0 command_line db 13, 10, 'groot@SingOS $ ', 0 number_one_zstring db '71', 0 diff --git a/lib/xex.nasm b/lib/xex.nasm index 17278fe..1fc8bd7 100644 --- a/lib/xex.nasm +++ b/lib/xex.nasm @@ -130,10 +130,14 @@ xex: ;push 0x0050 ;push 0x0512 + mov ax, 0x2000 + mov ds, ax ; move data segment to the program start retf .this_place: push ax + mov ax, 0x50 + mov ds, ax ; Back to the kernel space call printCRLF mov si, .program_output_text call print