Add APE interpreter example (#263)

This commit is contained in:
Justine Tunney 2021-09-04 00:58:21 -07:00
parent 5b60e5a37d
commit 969174e155
7 changed files with 210 additions and 14 deletions

View file

@ -30,7 +30,8 @@ EXAMPLES_COMS = \
EXAMPLES_BINS = \
$(EXAMPLES_COMS) \
$(EXAMPLES_COMS:%=%.dbg)
$(EXAMPLES_COMS:%=%.dbg) \
o/$(MODE)/examples/loader.elf
EXAMPLES_DIRECTDEPS = \
DSP_CORE \
@ -130,6 +131,15 @@ o/$(MODE)/examples/nesemu1.com.dbg: \
$(APE)
@$(APELINK)
o/$(MODE)/examples/loader.o: \
OVERRIDE_CCFLAGS += \
-fno-record-gcc-switches
o/$(MODE)/examples/loader.elf: \
o/$(MODE)/examples/loader.o \
examples/loader.lds
@$(ELFLINK) -s -z max-page-size=0x10
$(EXAMPLES_OBJS): examples/examples.mk
usr/share/dict/words: usr/share/dict/words.gz