From 2031fd00bf16cdbdd7c2224217f4022aeac0f1be Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 9 Sep 2024 22:25:09 +0200 Subject: [PATCH] Some more minor bug fixes. --- Makefile | 15 +++++++-------- third_party/rc2014emu/6800.c | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 65ebdcc3..0f01672d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,10 @@ -export OBJ = .obj -export LUA = lua -export CC = gcc -export CXX = g++ -export AR = ar -export CFLAGS = -g -O0 -export LDFLAGS = -g -export NINJAFLAGS = +export OBJ ?= .obj +export LUA ?= lua +export CC ?= gcc +export CXX ?= g++ +export AR ?= ar +export CFLAGS ?= -g -O0 +export LDFLAGS ?= -g .PHONY: all all: +all diff --git a/third_party/rc2014emu/6800.c b/third_party/rc2014emu/6800.c index 9e7e862f..bb52a6ce 100644 --- a/third_party/rc2014emu/6800.c +++ b/third_party/rc2014emu/6800.c @@ -1625,7 +1625,7 @@ static int m6800_execute_one(struct m6800 *cpu) } if (tmp8 <= 0x03 && tmp2 <= 0x03 && (cpu->p & P_H)) { tmpc = 1; - add =- 0x66; + add = -0x66; } } cpu->a += add;