aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cpu/opcodes/Loads16Bit.kt
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2018-07-08 17:47:02 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2018-07-08 17:47:02 +0100
commit748471a5310f2413afc26c00b282ade64e718a3e (patch)
treefda25ce5d9737cbfd3f6ce514b0485abae7de32e /src/main/kotlin/cpu/opcodes/Loads16Bit.kt
parentd132a0689aede6d856b5057cdb3d8c11bc7986ba (diff)
downloadKGB-748471a5310f2413afc26c00b282ade64e718a3e.tar.xz
KGB-748471a5310f2413afc26c00b282ade64e718a3e.zip
Implement 16-Bit arithmetic ops
Diffstat (limited to 'src/main/kotlin/cpu/opcodes/Loads16Bit.kt')
-rw-r--r--src/main/kotlin/cpu/opcodes/Loads16Bit.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/cpu/opcodes/Loads16Bit.kt b/src/main/kotlin/cpu/opcodes/Loads16Bit.kt
index 3db4f7d..134b3a9 100644
--- a/src/main/kotlin/cpu/opcodes/Loads16Bit.kt
+++ b/src/main/kotlin/cpu/opcodes/Loads16Bit.kt
@@ -66,7 +66,7 @@ var loads16Bit = mapOf(
)
-fun pop(r: Registers, m: Ram): Int {
+private fun pop(r: Registers, m: Ram): Int {
val lsb = m.readByte(r.getAndIncrementSP())
val msb = m.readByte(r.getAndIncrementSP())
return bm.bytesToWord(msb, lsb)