Compare commits

..

No commits in common. "7120b60ae778997d0c07a10f7a1e2e1948f0aa9e" and "dcfbebe7452859017ff464fdbf1e7805d9b0f5f3" have entirely different histories.

2 changed files with 2 additions and 8 deletions

View File

@ -3,7 +3,7 @@ lazy val firepower =
.in(file(".")) .in(file("."))
.withCats .withCats
.withTesting .withTesting
.aggregate(nescant, core, cpu, demo) .aggregate(nescant, core, demo)
lazy val nescant = lazy val nescant =
project.withCats.withTesting project.withCats.withTesting
@ -13,11 +13,6 @@ lazy val core =
.withCats .withCats
.withTesting .withTesting
lazy val cpu =
module("cpu")
.settings(description := "CPU emulation suitable for unit testing")
.withTesting
lazy val demo = lazy val demo =
module("demo") module("demo")
.dependsOn(core) .dependsOn(core)

View File

@ -6,7 +6,6 @@ import cats.syntax.all.*
import com.htmlism.mos6502.model.* import com.htmlism.mos6502.model.*
// sbt "runMain com.htmlism.MatchOpcodes out.html" && open out.html
object MatchOpcodes: object MatchOpcodes:
def paddedBinary(n: Int, width: Int) = def paddedBinary(n: Int, width: Int) =
String.format(s"%${width}s", Integer.toBinaryString(n)).replace(" ", "0") String.format(s"%${width}s", Integer.toBinaryString(n)).replace(" ", "0")
@ -173,8 +172,8 @@ object MatchOpcodes:
val columns = val columns =
for for
y <- 0 to 1 y <- 0 to 1
z <- List(1, 0)
x <- 0 to 1 x <- 0 to 1
z <- 0 to 1
yield (z << 2) + (x << 1) + y yield (z << 2) + (x << 1) + y
val rows = val rows =