Skip to content

Commit

Permalink
add boot driver option - like the normal driver, but less header?
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Jul 14, 2018
1 parent 48d132c commit e890e33
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ASMFLAGS=-case on -l
LDFLAGS=


all : host.driver host.fst boot.sys
all : host.driver boot.driver host.fst boot.sys

host.fst : host.fst.o
$(LD) -t \$$BD -at \$$0000 $< -o $@
Expand All @@ -18,7 +18,15 @@ host.fst : host.fst.o
host.driver : host.driver.o
$(LD) -t \$$BB -at \$$0101 $< -o $@

boot.driver : boot.driver.o
$(LD) -t \$$BB -at \$$0181 $< -o $@

# -d BootDriver must come after -case on
host.driver.o : host.driver.aii gsos.equ
boot.driver.o : host.driver.aii gsos.equ
$(ASM) $(ASMFLAGS) -d BootDriver $< -o $@



host.fst.o : host.fst.aii gsos.equ fst.equ records.equ fst.macros

Expand All @@ -30,7 +38,7 @@ boot.sys: boot

.PHONY : clean
clean :
$(RM) -- host.fst host.driver boot.sys boot *.o
$(RM) -- host.fst host.driver boot.driver boot.sys boot *.o

%.o : %.aii
$(ASM) $(ASMFLAGS) $< -o $@
Expand Down
1 change: 1 addition & 0 deletions gsos.equ
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
; ` prevents expansion during macro processing.
DEFAULT `DEBUG_S16,0
DEFAULT `DebugSymbols,0
DEFAULT `BootDriver,0

****************************************************************
*
Expand Down
3 changes: 2 additions & 1 deletion host.driver.aii
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

string asis
header proc
if not BootDriver then
dc.w dib-header
dc.w 1 ; 1 device
dc.w 0 ; no config list

endif

dib dc.l 0 ;Link pointer to next DIB
dc.l entry ;Entry pointer
Expand Down

0 comments on commit e890e33

Please sign in to comment.