dev: fixed assembly errors, added linker script and Makefile
Additionally created a .gitignore to avoid committing object code and output formats
This commit is contained in:
parent
1353091dda
commit
f753eb9642
5 changed files with 372 additions and 246 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
ASM=vasm_z80_std
|
||||
LINK=vlink
|
||||
|
||||
ASMFLAGS=-Fvobj
|
||||
LINKFLAGS=-b ihex -T linker.cmd
|
||||
|
||||
all: float.hex
|
||||
|
||||
float.o: float.asm
|
||||
$(ASM) $(ASMFLAGS) -o $@ $<
|
||||
|
||||
printChar.o: printChar.asm
|
||||
$(ASM) $(ASMFLAGS) -o $@ $<
|
||||
|
||||
float.hex: float.o printChar.o linker.cmd
|
||||
$(LINK) $(LINKFLAGS) -o $@ float.o printChar.o
|
||||
|
||||
clean:
|
||||
rm -f float.o printChar.o float.hex
|
||||
|
||||
.PHONY: all clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue