Rename kernel to bdos

This commit is contained in:
Nero 2019-10-27 18:59:42 +00:00
parent d789131eb6
commit f81de2bfe8
11 changed files with 12 additions and 11 deletions

View File

@ -1,8 +1,9 @@
FLOPPY = 360
BIOS = 0xFA00
RAM = 0x10000
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard com/*.asm))
DISTFILES = rdos.bin $(PROGRAMS)
DISTFILES = bdos.bin $(PROGRAMS)
ROMS =
QEMU_ARCH = $(shell uname -m)
@ -11,7 +12,7 @@ QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
NASM = nasm
NASM_ARGS = -s -Ilib -Plib/nasmcomp.asm -w-macro-params
NASM_ARGS += -DBIOS=$(BIOS)
NASM_ARGS += -DRAM=$(RAM)
EMUL = utils/emul
@ -32,9 +33,9 @@ endif
default: fdimage.img
# Kernel image
rdos.bin: kernel/*.asm lib/*.asm
$(NASM) $(NASM_ARGS) -o $@ -I kernel kernel/main.asm
# BDOS image
bdos.bin: bdos/*.asm lib/*.asm
$(NASM) $(NASM_ARGS) -o $@ -I bdos bdos/main.asm
# Boot sectors
boot/%.bs: boot/%.asm

View File

@ -1,9 +1,9 @@
ORG BIOS
ORG (RAM - 0x0800)
CPU 8086
DISKCX: EQU 0x40
DISKDX: EQU 0x42
DISKBX: EQU 0x44
DISKCX: EQU 0x8
DISKDX: EQU 0xA
DISKBX: EQU 0xC
JMP NEAR BOOT
JMP NEAR WBOOT

View File

@ -234,7 +234,7 @@ error:
int 0x19
kernel_name:
db "RDOS BIN"
db "BDOS BIN"
times (0x1FE - ($-$$)) db 0