mirror of https://github.com/irmen/ksim65.git
kotlin 1.7.10
This commit is contained in:
parent
87c7aad49a
commit
5cc3f8fddd
|
@ -5,7 +5,7 @@ import kotlin.math.max
|
|||
|
||||
plugins {
|
||||
// Apply the Kotlin JVM plugin to add support for Kotlin on the JVM.
|
||||
kotlin("jvm") version "1.6.10"
|
||||
kotlin("jvm") version "1.7.10"
|
||||
`maven-publish`
|
||||
application
|
||||
java
|
||||
|
@ -37,6 +37,7 @@ allprojects {
|
|||
dependencies {
|
||||
// Align versions of all Kotlin components
|
||||
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
|
||||
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||
|
||||
// Use the Kotlin JDK 8 standard library.
|
||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
||||
|
|
|
@ -188,9 +188,7 @@ open class Cpu6502 : BusComponent() {
|
|||
|
||||
regPC++
|
||||
instrCycles = currentInstruction.cycles
|
||||
val extraCycleFromAddr = applyAddressingMode(currentInstruction.mode)
|
||||
val extraCycleFromInstr = dispatchOpcode(currentOpcode)
|
||||
if(extraCycleFromAddr and extraCycleFromInstr)
|
||||
if(applyAddressingMode(currentInstruction.mode) and dispatchOpcode(currentOpcode))
|
||||
instrCycles++
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue