TheComputaNerd
Gesperrt
Hallo, ich möchte Programme in meinem OS erstellen, die aber unabhängig vom Kernel sind. Ich versuche z.B.:ein kleines Hallo Welt Programm zu öffnen. Es ist auch in NASM geschrieben und auch in einer .bin Datei. Mein einziges Problem ist: Ich versuche diese Datei genauso zu öffnen, wie der Bootloader den Kernel. Aber leider funktioniert nach irgendwelchen Gründen nicht. Was genau habe ich falsch gemacht?
Hier noch meine Makefile.sh:
Code:
mov ax, 0x1000
mov es, ax
mov ds, ax
mov ax, 0x2200
mov es, ax
mov ds, ax
push ax
mov ax, 0
push ax
retf
mov [bootdrive], dl
call load
bootdrive db 0
load:
mov ah, 0
mov dl, [bootdrive]
int 13h
load1:
mov ax, 0x2200
mov es, ax
xor bx, bx
mov ah, 2
mov al, 5
mov cx, 2
mov dh, 0
int 13h
times 512 - ($ - $$) hlt
Hier noch meine Makefile.sh:
Code:
nasm -f bin -o a.bin a.asm
nasm -f bin -o b.bin b.asm
nasm -f bin -o e.bin e.asm
cat a.bin b.bin e.bin >d.img
qemu -fda d.img