From 8e5cb9d205e58ed143f058e0305748f363d440db Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 28 Jan 2019 21:15:27 -0800 Subject: Initial stab at overflow flag implementation in CPU DSL. Probably broken for subtraction --- ztestrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ztestrun.c') diff --git a/ztestrun.c b/ztestrun.c index 4a59534..42c934f 100644 --- a/ztestrun.c +++ b/ztestrun.c @@ -116,7 +116,7 @@ int main(int argc, char ** argv) printf("Flags: SZYHXVNC\n" " %d%d%d%d%d%d%d%d\n", context->last_flag_result >> 7, context->zflag != 0, context->last_flag_result >> 5 & 1, context->chflags >> 3 & 1, - context->last_flag_result >> 3 & 1, context->pvflag != 0, context->nflag, context->chflags >> 7 & 1 + context->last_flag_result >> 3 & 1, context->pvflag != 0, context->nflag != 0, context->chflags >> 7 & 1 ); puts("--Alternate Regs--"); printf("A: %X\nB: %X\nC: %X\nD: %X\nE: %X\nHL: %X\n", -- cgit v1.2.3