diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-16 21:27:33 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-16 21:27:33 +0100 |
| commit | ae3bb9819aad653d6a2ed972000e3c3696e39bf1 (patch) | |
| tree | 38cf07fc92c728807f03603ac0b0f7c51df77115 /src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt | |
| parent | 244cf2663133abb2fb861bce0474344999652f67 (diff) | |
| download | KGB-ae3bb9819aad653d6a2ed972000e3c3696e39bf1.tar.xz KGB-ae3bb9819aad653d6a2ed972000e3c3696e39bf1.zip | |
Implement JUMP ops
Diffstat (limited to 'src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt')
| -rw-r--r-- | src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt b/src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt index 0c2c9cb..0eff88a 100644 --- a/src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt +++ b/src/main/kotlin/cpu/opcodes/Arithmetic16Bit.kt @@ -17,7 +17,7 @@ var arithmetic16Bit = mapOf( val absoluteValue = bm.getAbsoluteValue(a[0]) - if (bm.isSignedBitNegative(a[0])) { + if (bm.isSignedByteNegative(a[0])) { r.setFlagFromBool(Flag.HALF_CARRY, r.SP and 0x0F < absoluteValue and 0x0F) r.setFlagFromBool(Flag.CARRY,r.SP and 0xFF < absoluteValue) r.SP = r.SP - absoluteValue |