Drop MCBs as mean to manage memory
This commit is contained in:
parent
f7d3d5c62f
commit
4a92c4bc1e
3 changed files with 19 additions and 90 deletions
|
@ -1,9 +1,8 @@
|
|||
cpu 8086
|
||||
org 0
|
||||
jmp 0x07C0:init
|
||||
org 0x500
|
||||
jmp init
|
||||
|
||||
%include "inc/bpb.asm"
|
||||
%include "kernel/mcb.asm"
|
||||
|
||||
banner: db "rdos", 0xA, 0xD, 0
|
||||
|
||||
|
@ -223,21 +222,7 @@ ldbpb: push ds
|
|||
pop ds
|
||||
ret
|
||||
|
||||
init: cli
|
||||
mov ax, cs
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
mov ss, ax
|
||||
xor sp, sp
|
||||
|
||||
call dnconv
|
||||
call select
|
||||
|
||||
call mcb_init
|
||||
|
||||
main: push cs
|
||||
pop ds
|
||||
mov si, banner
|
||||
main: mov si, banner
|
||||
mov ah, 0x0e
|
||||
xor bx, bx
|
||||
loop: lodsb
|
||||
|
@ -248,3 +233,19 @@ loop: lodsb
|
|||
end: hlt
|
||||
jmp end
|
||||
|
||||
init: cli
|
||||
xor ax, ax
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
mov ss, ax
|
||||
xor sp, sp
|
||||
|
||||
mov si, 0x7C00
|
||||
mov di, $$
|
||||
mov cx, (init-$$)
|
||||
rep movsb
|
||||
|
||||
call dnconv
|
||||
call select
|
||||
|
||||
jmp 0:main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue