Start work on shell
This commit is contained in:
parent
2a2985640e
commit
f39f25a4c1
3 changed files with 17 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -6,8 +6,10 @@ PYTHON = python3
|
|||
|
||||
all: ponydos.img
|
||||
|
||||
ponydos.img: ponydos.bin wallpaper.bin
|
||||
$(PYTHON) assemble_floppy.py $@ ponydos.bin wallpaper.bin
|
||||
FS_FILES = wallpaper.bin shell.bin
|
||||
|
||||
ponydos.img: ponydos.bin $(FS_FILES)
|
||||
$(PYTHON) assemble_floppy.py $@ ponydos.bin $(FS_FILES)
|
||||
|
||||
.asm.bin:
|
||||
$(NASM) -fbin -o $@ $<
|
||||
|
|
11
ponydos.asm
11
ponydos.asm
|
@ -71,6 +71,16 @@ load_wallpaper:
|
|||
call read_sectors
|
||||
; TODO: error management? Surely this works...
|
||||
|
||||
load_shell:
|
||||
mov ax, 0x1000
|
||||
mov es, ax
|
||||
mov si, shell_name
|
||||
call open_file
|
||||
xor bx, bx
|
||||
call read_sectors
|
||||
|
||||
call 0x1000:0
|
||||
|
||||
initialize_screen:
|
||||
; Disable text cursor
|
||||
mov ah, 0x01
|
||||
|
@ -226,6 +236,7 @@ modify_sector:
|
|||
; ------------------------------------------------------------------
|
||||
|
||||
wallpaper_name: db 'wallpaper.bin', 0
|
||||
shell_name: db 'shell.bin', 0
|
||||
|
||||
; in:
|
||||
; ds:si = file name
|
||||
|
|
2
shell.asm
Normal file
2
shell.asm
Normal file
|
@ -0,0 +1,2 @@
|
|||
org 0
|
||||
retf
|
Loading…
Reference in a new issue