Commits

Mikael Degerfalt  committed 2035b2c

Placeholder for MSX code, for testing.

  • Participants
  • Parent commits ceea92b

Comments (0)

Files changed (2)

File msx1/Makefile

+
+SRC = hello_msx.s
+OBJS = $(SRC:.s=.o)
+
+LNKFILE = linkfile.lnk
+BINFILE = hello_msx.bin
+
+all: $(BINFILE)
+
+
+$(BINFILE): $(OBJS) $(LNKFILE)
+	wlalink -vr $(LNKFILE) $@
+
+%.o: %.s
+	wla-z80 -o $< $@
+
+
+$(LNKFILE):
+	@echo "[objects]" > $@
+	@echo "$(OBJS)" >> $@
+
+
+clean:
+	@rm -f $(LNKFILE) $(OBJS) $(BINFILE)

File msx1/hello_msx.s

+
+
+.MEMORYMAP
+  SLOTSIZE $4000
+  DEFAULTSLOT 0
+  SLOT 0 $0000
+  SLOT 1 $4000
+  SLOT 2 $8000
+.ENDME
+
+.ROMBANKSIZE $4000
+.ROMBANKS 1
+
+.BANK 0 SLOT 0
+.orga	$0
+
+	ret
+