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:
A.M. Rowsell 2025-12-20 15:45:51 -05:00
commit f753eb9642
Signed by: amr
GPG key ID: E0879EDBDB0CA7B1
5 changed files with 372 additions and 246 deletions

21
Makefile Normal file
View 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