Browse Source

version 0.0.6.0: improved xex command, data segment also set correct, which should mean fully correct termination of an executable file

master
Jørn Guldberg 5 years ago
parent
commit
b19f629330
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      kernel.nasm
  2. +4
    -0
      lib/xex.nasm

+ 1
- 1
kernel.nasm View File

@ -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

+ 4
- 0
lib/xex.nasm View File

@ -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

Loading…
Cancel
Save