random fixes
This commit is contained in:
parent
7cfd87b6b4
commit
598a2c0fdf
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
|
||||
|
@ -1,4 +1,3 @@
|
||||
org BASE
|
||||
; COM program displaying hello world string
|
||||
|
||||
main:
|
||||
@ -16,5 +15,3 @@ main:
|
||||
|
||||
string:
|
||||
db "Hello world!", 0x0A, 0x0D, 0
|
||||
|
||||
%include "bootsig.inc"
|
||||
|
@ -28,6 +28,5 @@ print8:
|
||||
jl .out
|
||||
add al, 0x07
|
||||
.out:
|
||||
mov ah, 0x0e
|
||||
int 0x10
|
||||
call putc
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user