Add agnes NES emulator (very slow).

Add -W <n> -H <n> width and height options to host-sdl
This commit is contained in:
Toby Jaffey 2025-12-15 00:37:12 +00:00
parent 2e90bfa812
commit 035608b04a
14 changed files with 3491 additions and 3 deletions

18
apps/agnes/Makefile Normal file
View file

@ -0,0 +1,18 @@
PROJECT=agnes
TOPDIR=../..
HEAP_SIZE=$(shell echo "1024 * 1024 * 1" | bc)
HOST_EXTRA=-e ${HEAP_SIZE} -i 99999999 -W 256 -H 240
all:
@# zig's objcopy is broken, so use external tool
@# https://ziggit.dev/t/addobjcopy-producing-zero-padding-at-start-of-binary/13384
zig build -Dheapsize=${HEAP_SIZE} && ${PREFIX}objcopy zig-out/bin/${PROJECT} -O binary ${PROJECT}.bin
clean: clean_common
rm -rf zig-out .zig-cache
test: all
${TOPDIR}/hosts/host-sdl/host-sdl ${HOST_EXTRA} ${PROJECT}.bin
include ${TOPDIR}/apps/common/makefile.common