This commit is contained in:
Mark Canlas 2020-08-15 03:52:11 -04:00
parent e112877f8d
commit e6b04c384e
6 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
version = "2.2.1"
version = "2.6.3"
align.tokens = [
{code = "%", owner = "Term.ApplyInfix"},

View File

@ -1,4 +1,4 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.13")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.19")

View File

@ -100,7 +100,7 @@ object MatchOpcodes {
out.print("</tr>")
for (r <- Seq(0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xE0)) {
for (r <- Seq(0x00, 0x20, 0x40, 0x60, 0x80, 0xa0, 0xc0, 0xe0)) {
out.print("<tr>")
// left header

View File

@ -19,12 +19,12 @@ object Color {
case Yellow => 0x7
case Orange => 0x8
case Brown => 0x9
case LightRed => 0xA
case DarkGrey => 0xB
case Grey => 0xC
case LightGreen => 0xD
case LightBlue => 0xE
case LightGrey => 0xF
case LightRed => 0xa
case DarkGrey => 0xb
case Grey => 0xc
case LightGreen => 0xd
case LightBlue => 0xe
case LightGrey => 0xf
}
case object Black extends Color

View File

@ -30,7 +30,7 @@ object DslDemo extends App {
// demonstrate first example
withAssemblyContext { implicit ctx =>
cpu.A = 0xC0
cpu.A = 0xc0
cpu.X = cpu.A

View File

@ -27,8 +27,8 @@ case class UnaryInstruction(instruction: Instruction, comment: Option[String]) e
(instruction.toString, None, comment)
}
case class InstructionWithOperand[A](instruction: Instruction, operand: A, comment: Option[String])(
implicit ev: Operand[A]
case class InstructionWithOperand[A](instruction: Instruction, operand: A, comment: Option[String])(implicit
ev: Operand[A]
) extends Statement {
def toAsm: String = {
val left =