Rename kernel to bdos
This commit is contained in:
parent
d789131eb6
commit
f81de2bfe8
13
Makefile
13
Makefile
@ -1,8 +1,9 @@
|
|||||||
FLOPPY = 360
|
FLOPPY = 360
|
||||||
BIOS = 0xFA00
|
|
||||||
|
RAM = 0x10000
|
||||||
|
|
||||||
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard com/*.asm))
|
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard com/*.asm))
|
||||||
DISTFILES = rdos.bin $(PROGRAMS)
|
DISTFILES = bdos.bin $(PROGRAMS)
|
||||||
ROMS =
|
ROMS =
|
||||||
|
|
||||||
QEMU_ARCH = $(shell uname -m)
|
QEMU_ARCH = $(shell uname -m)
|
||||||
@ -11,7 +12,7 @@ QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
|
|||||||
|
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
NASM_ARGS = -s -Ilib -Plib/nasmcomp.asm -w-macro-params
|
NASM_ARGS = -s -Ilib -Plib/nasmcomp.asm -w-macro-params
|
||||||
NASM_ARGS += -DBIOS=$(BIOS)
|
NASM_ARGS += -DRAM=$(RAM)
|
||||||
|
|
||||||
EMUL = utils/emul
|
EMUL = utils/emul
|
||||||
|
|
||||||
@ -32,9 +33,9 @@ endif
|
|||||||
|
|
||||||
default: fdimage.img
|
default: fdimage.img
|
||||||
|
|
||||||
# Kernel image
|
# BDOS image
|
||||||
rdos.bin: kernel/*.asm lib/*.asm
|
bdos.bin: bdos/*.asm lib/*.asm
|
||||||
$(NASM) $(NASM_ARGS) -o $@ -I kernel kernel/main.asm
|
$(NASM) $(NASM_ARGS) -o $@ -I bdos bdos/main.asm
|
||||||
|
|
||||||
# Boot sectors
|
# Boot sectors
|
||||||
boot/%.bs: boot/%.asm
|
boot/%.bs: boot/%.asm
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
ORG BIOS
|
ORG (RAM - 0x0800)
|
||||||
CPU 8086
|
CPU 8086
|
||||||
|
|
||||||
DISKCX: EQU 0x40
|
DISKCX: EQU 0x8
|
||||||
DISKDX: EQU 0x42
|
DISKDX: EQU 0xA
|
||||||
DISKBX: EQU 0x44
|
DISKBX: EQU 0xC
|
||||||
|
|
||||||
JMP NEAR BOOT
|
JMP NEAR BOOT
|
||||||
JMP NEAR WBOOT
|
JMP NEAR WBOOT
|
||||||
|
@ -234,7 +234,7 @@ error:
|
|||||||
int 0x19
|
int 0x19
|
||||||
|
|
||||||
kernel_name:
|
kernel_name:
|
||||||
db "RDOS BIN"
|
db "BDOS BIN"
|
||||||
|
|
||||||
times (0x1FE - ($-$$)) db 0
|
times (0x1FE - ($-$$)) db 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user