aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-26 15:34:30 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-26 15:34:30 +0100
commitce21b8cd25cf832e5d8b4c16474c2b3b8f421d23 (patch)
tree1674de50076b1017c23c481f02398cc31e86bdfa /src
parentafa524db9951332a615ebbd8bc2911f9734088f5 (diff)
Set VF to 1, not some arbitrary N>0
Diffstat (limited to 'src')
-rw-r--r--src/ahoy/emulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c
index c805fcd..63d3514 100644
--- a/src/ahoy/emulator.c
+++ b/src/ahoy/emulator.c
@@ -175,7 +175,7 @@ opexec(uint16_t op)
c8.V[x] = c8.V[y] - c8.V[x];
break;
case 0xE:
- c8.V[0xF] = c8.V[x] & 0x80;
+ c8.V[0xF] = (bool)(c8.V[x] & 0x80);
c8.V[x] <<= 1;
break;
default: