head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.12 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.10 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.8 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.6 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.4 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.2 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.4.0.8 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.6 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.4 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.2 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.3.0.10 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.8 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.6 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.4 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.2 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.2.0.12 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.10 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.8 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.6 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.4 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.2 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.1.0.8 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.6 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.4 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1; locks; strict; comment @# @; 1.5 date 2024.10.16.04.25.32; author thorpej; state Exp; branches; next 1.4; commitid RTkonHM4SEEXbQtF; 1.4 date 2023.11.27.03.21.00; author thorpej; state Exp; branches; next 1.3; commitid 4B1PZo5UpvWfgcOE; 1.3 date 2022.08.07.17.38.08; author thorpej; state Exp; branches; next 1.2; commitid fXg64Gr2sCsjlYOD; 1.2 date 2021.01.16.12.20.00; author nia; state Exp; branches; next 1.1; commitid yXWzLlNEgxwRPWDC; 1.1 date 2019.12.28.19.32.18; author thorpej; state Exp; branches; next ; commitid Z2ZwCbADNtICBvQB; desc @@ 1.5 log @Update to R48 ("Cadmium"): Features/Fixes * Emulated VERA SPI clock has been updated to half of the VERA clock speed rather than the CPU clock. * Trace for ROM banks 13-15 (x16edit and Basload) is now supported [stefan-b-jakobsson] * Fixed debug reads from the stack and a few unbounded values in the debugger display * VERA PSG: for the saw and triangle waves, the inverse of the pulse width value is XORed with the value of the wave. This is the behavior of VERA 47.0.2 on hardware. [m00dawg] * Allow setting the amount of RAM in the web version of the emulator [JimmyDansbo] * Windows 11: Rounded corners should no longer cut off the lower left and lower right of the emulator window. * New memory statistics feature [irmen] * HostFS: Implement DOS "T"ell command * Debugger now includes elapsed cpu clocks since the last breakpoint or step * 65C816: Fixed stack relative indirect address calulation wrongly using the direct page [Fulgen301] * 65C816: high bytes of .X and .Y are now cleared when PLP or RTI set x=1 [cnelson20] * 65C816: PEI no longer does improper page wraparound, [dp] indirect modes now properly read the address. [Fulgen301] @ text @$NetBSD: patch-Makefile,v 1.4 2023/11/27 03:21:00 thorpej Exp $ Honor CFLAGS/LDFLAGS. Allow the default location of the X16 ROM to be overridden. Allow GIT_REV to be overridden. --- Makefile.orig 2024-10-16 03:56:27.312106336 +0000 +++ Makefile 2024-10-16 03:57:42.190887631 +0000 @@@@ -16,9 +16,9 @@@@ else ifeq ($(OS),Windows_NT) TARGET_WIN32=yes endif -CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -CXXFLAGS=-std=c++17 -O3 -Wall -Werror -Isrc/extern/ymfm/src -LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm -lz +CFLAGS+=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include +CXXFLAGS+=-std=c++17 -O3 -Wall -Werror -Isrc/extern/ymfm/src +LDFLAGS+=$(shell $(SDL2CONFIG) --libs) -lm -lz # build with link time optimization ifndef NOLTO @@@@ -36,10 +36,16 @@@@ ifdef TRACE CFLAGS+=-D TRACE endif +ifdef ROM_RELATIVE_PATH + CFLAGS+=-DROM_RELATIVE_PATH=\"$(ROM_RELATIVE_PATH)\" +endif + X16_OUTPUT=x16emu MAKECART_OUTPUT=makecart +ifndef GIT_REV GIT_REV=$(shell git diff --quiet && /bin/echo -n $$(git rev-parse --short=8 HEAD || /bin/echo "00000000") || /bin/echo -n $$( /bin/echo -n $$(git rev-parse --short=7 HEAD || /bin/echo "0000000"); /bin/echo -n '+')) +endif CFLAGS+=-D GIT_REV='"$(GIT_REV)"' @ 1.4 log @Update the Commander X16 emulator and ROM to version r46. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.3 2022/08/07 17:38:08 thorpej Exp $ d9 4 a12 4 --- Makefile.orig 2023-11-06 03:36:56 +++ Makefile 2023-11-27 03:00:05 @@@@ -10,9 +10,9 @@@@ CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CON SDL2CONFIG=sdl2-config d24 1 a24 1 @@@@ -30,10 +30,16 @@@@ X16_OUTPUT=x16emu @ 1.3 log @Update to x16-emulator r41. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.2 2021/01/16 12:20:00 nia Exp $ d7 5 a11 3 --- Makefile.orig 2022-05-09 06:32:54.000000000 +0000 +++ Makefile 2022-08-07 14:43:29.476121731 +0000 @@@@ -20,8 +20,8 @@@@ else d15 11 a25 9 -CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src -LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm +CFLAGS+=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Isrc/extern/include -Isrc/extern/src +LDFLAGS+=$(shell $(SDL2CONFIG) --libs) -lm ODIR = build SDIR = src @@@@ -66,6 +66,9 @@@@ ifneq ("$(wildcard ./src/rom_labels.h)", HEADERS+=src/rom_labels.h d31 9 a40 2 all: $(OBJS) $(HEADERS) $(CC) -o $(OUTPUT) $(OBJS) $(LDFLAGS) @ 1.2 log @x16-emulator: Honor CFLAGS/LDFLAGS from environment. Should help with RPATH issues seen in bulk builds. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.1 2019/12/28 19:32:18 thorpej Exp $ d7 3 a9 3 --- Makefile.orig 2019-12-20 20:00:49.000000000 +0000 +++ Makefile @@@@ -10,8 +10,8 @@@@ else d13 1 a13 1 -CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src d15 1 a15 1 +CFLAGS+=-std=c99 -Wall $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src d18 4 a21 4 OUTPUT=x16emu @@@@ -48,6 +48,9 @@@@ ifneq ("$(wildcard ./rom_labels.h)","") HEADERS+=rom_labels.h @ 1.1 log @Add a package for the Commander X16 computer system emulator. @ text @d1 3 a3 1 $NetBSD$ d7 1 a7 1 --- Makefile.orig 2019-12-28 18:52:41.000000000 +0000 d9 11 @