321
OS-Design / Eigenes FS
« am: 02. April 2005, 18:24 »
was meinst du damit?
29. March 2024, 14:41
Diese Sektion erlaubt es dir alle Beiträge dieses Mitglieds zu sehen. Beachte, dass du nur solche Beiträge sehen kannst, zu denen du auch Zugriffsrechte hast.
;Springe zu diesem Kernel
mov ax, 0x1000 ; Die Adresse des Programms
mov es, ax ; Segmentregister updaten
mov ds, ax
push ax
mov ax, 0
push ax
retf
reboot:
db 0EAh
dw 0000h
dw 0FFFFh
mov ax,1000h
mov ds,ax
mov es,ax
start:
mov si,msg
call putstr
mov si,msg_clear
call putstr
mov si,msg_os1
call putstr
mov si,msg_os2
call putstr
mov si,msg_os3
call putstr
mov si,msg_os4
call putstr
mov si,msg_os5
call putstr
mov si,msg_os6
call putstr
mov si,msg_os7
call putstr
mov si,msg_os8
call putstr
mov si,msg_os9
call putstr
mov si,msg_os0
call putstr
mov si,msg_clear
call putstr
mov si,msg_boot
call putstr
call getkey
jmp reboot
msg db " Jeremia B",132,"r pr",132,"sentiert:",13,10,0
msg_boot db " Diskette entnehmen und Taste dr",129,"cken....",10,0
msg_clear db "",10,0
msg_os1 db " 00000 0 000 00000",10,0
msg_os2 db " 0 0 00 00 0 ",10,0
msg_os3 db " 0 0 0 0 0 ",10,0
msg_os4 db " 0 0 0 0 0 0 ",10,0
msg_os5 db " 0000 0 00 0 0 00000",10,0
msg_os6 db " 0 0 000 00000 0000 0 00 0 0 0",10,0
msg_os7 db " 0 000 0 0 0 0 00 000 0 0 0",10,0
msg_os8 db " 0 0 00000 0 0 0 00 0 0 0",10,0
msg_os9 db " 0 0 0 0 000 0 00 00 00 0",10,0
msg_os0 db " 0 0 00000 000 0 0 0 000 00000",10,0
putstr:
lodsb
or al,al
jz short putstrd
mov ah,0x0e
mov bx,0x0007
int 0x10
jmp putstr
putstrd:
retn
getkey:
mov ah,0
int 016h
ret
reboot:
db 0eah
dw 0000h
dw 0ffffh
In unserem Tutorial-Bereich gibt es einige Infos zu FAT12, die sollten denke ich weiterhelfen, da sich das schreiben nur unwesentlich vom lesen unterscheidet.