Skip to content

Commit

Permalink
Ported Peanut-GB to the Numworks.
Browse files Browse the repository at this point in the history
  • Loading branch information
M4xi1m3 committed Apr 25, 2020
1 parent a51092c commit fc8c0f9
Show file tree
Hide file tree
Showing 15 changed files with 7,416 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apps.tar: apps/KhiCAS/app.elf apps/Periodic/app.elf apps/Nofrendo/app.elf
apps.tar: apps/KhiCAS/app.elf apps/Periodic/app.elf apps/Nofrendo/app.elf apps/Peanut-GB/app.elf
./archive $@ $^

flash: apps.tar
Expand All @@ -10,6 +10,9 @@ api/libapi.a:
apps/Periodic/app.elf: api/libapi.a
make -C apps/Periodic

apps/Peanut-GB/app.elf: api/libapi.a
make -C apps/Peanut-GB

apps/KhiCAS/app.elf: api/libapi.a
make -C apps/KhiCAS

Expand All @@ -22,4 +25,5 @@ clean:
make -C apps/Periodic clean
make -C apps/KhiCAS clean
make -C apps/Nofrendo clean
make -C apps/Peanut-GB clean

Binary file modified apps/KhiCAS/app.elf
Binary file not shown.
Binary file modified apps/Nofrendo/app.elf
Binary file not shown.
22 changes: 22 additions & 0 deletions apps/Peanut-GB/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
API=../../api
CC=arm-none-eabi-gcc
OBJCOPY=arm-none-eabi-objcopy
CFLAGS=-DNDEBUG -ggdb3 -I$(API) -Os -mcpu=cortex-m7 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fno-common -fdata-sections -ffunction-sections -fno-exceptions
LDFLAGS=-Wl,-L$(API) -Wl,--gc-sections -Wl,--entry=entrypoint --specs=nosys.specs -nostartfiles -Wl,-Ur -lapi

NES_ROM = epsilon/2048.nes

CFLAGS += -I./

OBJS = main.o selector.o lz4.o

app.elf: $(OBJS)
$(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)

FORCE:

%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@

clean:
rm -f $(OBJS) app.elf
Binary file added apps/Peanut-GB/app.elf
Binary file not shown.
Binary file added apps/Peanut-GB/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fc8c0f9

Please sign in to comment.