mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-01 00:41:36 +00:00
fmt
This commit is contained in:
parent
e112877f8d
commit
e6b04c384e
|
@ -1,4 +1,4 @@
|
|||
version = "2.2.1"
|
||||
version = "2.6.3"
|
||||
|
||||
align.tokens = [
|
||||
{code = "%", owner = "Term.ApplyInfix"},
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,7 @@ object DslDemo extends App {
|
|||
|
||||
// demonstrate first example
|
||||
withAssemblyContext { implicit ctx =>
|
||||
cpu.A = 0xC0
|
||||
cpu.A = 0xc0
|
||||
|
||||
cpu.X = cpu.A
|
||||
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue
Block a user