From 81cef95a0235e917975919a0f58527ba963f11b6 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 11 May 2023 17:15:22 +0100 Subject: Be specific --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.c b/vm.c index 6652e2b..aa21275 100644 --- a/vm.c +++ b/vm.c @@ -66,7 +66,7 @@ static uint8_t flags(uint8_t *f, uint16_t v, uint8_t mask) if (mask & SF) *f |= (v & 0x80) ? SF : 0; - return v; + return (v & 0xff); } static void dump(Tr8 *vm) -- cgit v1.2.3