diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-08 17:47:02 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-08 17:47:02 +0100 |
| commit | 748471a5310f2413afc26c00b282ade64e718a3e (patch) | |
| tree | fda25ce5d9737cbfd3f6ce514b0485abae7de32e /src/main/kotlin/cpu/opcodes/Loads16Bit.kt | |
| parent | d132a0689aede6d856b5057cdb3d8c11bc7986ba (diff) | |
| download | KGB-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.kt | 2 |
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) |