random fixes
This commit is contained in:
parent
7cfd87b6b4
commit
598a2c0fdf
3 changed files with 5 additions and 11 deletions
10
Makefile
10
Makefile
|
@ -1,6 +1,6 @@
|
|||
FLOPPY = 360
|
||||
|
||||
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard com/*.asm))
|
||||
PROGRAMS = hello.com
|
||||
DISTFILES = $(PROGRAMS)
|
||||
ROMS =
|
||||
|
||||
|
@ -55,13 +55,11 @@ vga11.com: cp437.bin
|
|||
$(NASM) $(NASM_ARGS) -DBASE=0x7C00 -DNBP -o $@ $<
|
||||
|
||||
# BIOS option roms
|
||||
%.rom: %.asm utils/fix-rom
|
||||
%.rom: rom/%.asm utils/fix-rom
|
||||
$(NASM) $(NASM_ARGS) -DBASE=0x0000 -DROM -o $@ $< && utils/fix-rom $@
|
||||
|
||||
fdimage.img: fat.bs $(BDOSIMG) $(BIOSIMG) $(DISTFILES)
|
||||
mformat -R 9 -C -i $@ -f $(FLOPPY) -B boot/fat.bs ::
|
||||
dd if=$(BDOSIMG) bs=512 seek=1 count=4 conv=notrunc of=$@
|
||||
dd if=$(BIOSIMG) bs=512 seek=5 count=4 conv=notrunc of=$@
|
||||
fdimage.img: fat.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $(FLOPPY) -B fat.bs ::
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
|
||||
hdimage.img: boot/mbr.bs fdimage.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue