diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-23 20:16:07 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-23 20:16:07 +0100 |
| commit | 6acdde8f7093c0fb2e95d8dbc14dfab096b0a027 (patch) | |
| tree | b9608e85db3704eca7d571cc059e7723448823a9 /src/main/kotlin/cpu/opcodes/Restarts.kt | |
| parent | c6a953d722b1fdc27a9db6f78f00c52fe43a7222 (diff) | |
| download | KGB-6acdde8f7093c0fb2e95d8dbc14dfab096b0a027.tar.xz KGB-6acdde8f7093c0fb2e95d8dbc14dfab096b0a027.zip | |
Move lambda calls outside of parens
Diffstat (limited to 'src/main/kotlin/cpu/opcodes/Restarts.kt')
| -rw-r--r-- | src/main/kotlin/cpu/opcodes/Restarts.kt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/kotlin/cpu/opcodes/Restarts.kt b/src/main/kotlin/cpu/opcodes/Restarts.kt index 606fb21..10e9801 100644 --- a/src/main/kotlin/cpu/opcodes/Restarts.kt +++ b/src/main/kotlin/cpu/opcodes/Restarts.kt @@ -7,14 +7,14 @@ import BitManipulation as bm val restarts = mapOf( - 0xC7 to Operation("RST 00H", 0, 32, {r, m, _ -> restart(0x00, r, m)}), - 0xCF to Operation("RST 08H", 0, 32, {r, m, _ -> restart(0x08, r, m)}), - 0xD7 to Operation("RST 10H", 0, 32, {r, m, _ -> restart(0x10, r, m)}), - 0xDF to Operation("RST 18H", 0, 32, {r, m, _ -> restart(0x18, r, m)}), - 0xE7 to Operation("RST 20H", 0, 32, {r, m, _ -> restart(0x20, r, m)}), - 0xEF to Operation("RST 28H", 0, 32, {r, m, _ -> restart(0x28, r, m)}), - 0xF7 to Operation("RST 30H", 0, 32, {r, m, _ -> restart(0x30, r, m)}), - 0xFF to Operation("RST 38H", 0, 32, {r, m, _ -> restart(0x38, r, m)}) + 0xC7 to Operation("RST 00H", 0, 32) { r, m, _ -> restart(0x00, r, m)}, + 0xCF to Operation("RST 08H", 0, 32) { r, m, _ -> restart(0x08, r, m)}, + 0xD7 to Operation("RST 10H", 0, 32) { r, m, _ -> restart(0x10, r, m)}, + 0xDF to Operation("RST 18H", 0, 32) { r, m, _ -> restart(0x18, r, m)}, + 0xE7 to Operation("RST 20H", 0, 32) { r, m, _ -> restart(0x20, r, m)}, + 0xEF to Operation("RST 28H", 0, 32) { r, m, _ -> restart(0x28, r, m)}, + 0xF7 to Operation("RST 30H", 0, 32) { r, m, _ -> restart(0x30, r, m)}, + 0xFF to Operation("RST 38H", 0, 32) { r, m, _ -> restart(0x38, r, m)} ) |