aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-11 17:15:22 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-11 17:15:22 +0100
commit81cef95a0235e917975919a0f58527ba963f11b6 (patch)
tree6d1d863d75c3746ef48a5ed912847e642791b4b1
parent710c64fc02390e41ec29667c7a0d32115bf313ec (diff)
downloadtr8vm-81cef95a0235e917975919a0f58527ba963f11b6.tar.gz
tr8vm-81cef95a0235e917975919a0f58527ba963f11b6.zip
Be specific
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
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)