From 2cf829d3ebc739253c45f0ac0a51f4d11a25bb81 Mon Sep 17 00:00:00 2001 From: Mark Canlas Date: Wed, 3 Jan 2024 14:34:31 -0500 Subject: [PATCH] closer together --- src/main/scala/com/htmlism/MatchOpcodes.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/com/htmlism/MatchOpcodes.scala b/src/main/scala/com/htmlism/MatchOpcodes.scala index c1ba619..7bde9f4 100644 --- a/src/main/scala/com/htmlism/MatchOpcodes.scala +++ b/src/main/scala/com/htmlism/MatchOpcodes.scala @@ -6,6 +6,7 @@ import cats.syntax.all.* import com.htmlism.mos6502.model.* +// sbt "runMain com.htmlism.MatchOpcodes out.html" && open out.html object MatchOpcodes: def paddedBinary(n: Int, width: Int) = String.format(s"%${width}s", Integer.toBinaryString(n)).replace(" ", "0") @@ -172,8 +173,8 @@ object MatchOpcodes: val columns = for y <- 0 to 1 + z <- List(1, 0) x <- 0 to 1 - z <- 0 to 1 yield (z << 2) + (x << 1) + y val rows =