License and readme
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,14 +1,3 @@
|
||||
; ==================================================================
|
||||
; MikeOS -- The Mike Operating System kernel
|
||||
; Copyright (C) 2006 - 2022 MikeOS Developers -- see doc/LICENSE.TXT
|
||||
;
|
||||
; This is loaded from the drive by BOOTLOAD.BIN, as KERNEL.BIN.
|
||||
; First we have the system call vectors, which start at a static point
|
||||
; for programs to use. Following that is the main kernel code and
|
||||
; then additional system call code is included.
|
||||
; ==================================================================
|
||||
|
||||
|
||||
BITS 16
|
||||
CPU 386 ; pusha offsets depends on a 386 or better
|
||||
; FS and GS require a 386 or better
|
||||
@@ -24,22 +13,6 @@
|
||||
disk_buffer equ 24576
|
||||
|
||||
|
||||
; ------------------------------------------------------------------
|
||||
; OS CALL VECTORS -- Static locations for system call vectors
|
||||
; Note: these cannot be moved, or it'll break the calls!
|
||||
|
||||
; The comments show exact locations of instructions in this section,
|
||||
; and are used in programs/mikedev.inc so that an external program can
|
||||
; use a CrawOS system call without having to know its exact position
|
||||
; in the kernel source code...
|
||||
|
||||
os_call_vectors:
|
||||
jmp os_main ; 0000h -- Called from bootloader
|
||||
jmp os_print_string ; 0003h
|
||||
jmp os_read_input
|
||||
jmp os_display_input
|
||||
jmp os_start_cli
|
||||
|
||||
|
||||
; ------------------------------------------------------------------
|
||||
; START OF MAIN KERNEL CODE
|
||||
@@ -62,16 +35,6 @@ os_main:
|
||||
|
||||
cmp dl, 0
|
||||
je no_change
|
||||
mov [bootdev], dl ; Save boot device number
|
||||
push es
|
||||
mov ah, 8 ; Get drive parameters
|
||||
int 13h
|
||||
pop es
|
||||
and cx, 3Fh ; Maximum sector number
|
||||
mov [SecsPerTrack], cx ; Sector numbers start at 1
|
||||
movzx dx, dh ; Maximum head number
|
||||
add dx, 1 ; Head numbers start at 0 - add 1 for total
|
||||
mov [Sides], dx
|
||||
|
||||
no_change:
|
||||
call os_clear_screen
|
||||
|
BIN
source/kernel.bin
Normal file
BIN
source/kernel.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user