mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-14 18:29:53 +00:00
closer together
This commit is contained in:
parent
dcfbebe745
commit
2cf829d3eb
@ -6,6 +6,7 @@ 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")
|
||||||
@ -172,8 +173,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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user