mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-04-06 19:37:10 +00:00
isolate model classes
This commit is contained in:
parent
78f05a5103
commit
69286c8a86
@ -1,9 +1,10 @@
|
||||
package com.htmlism
|
||||
|
||||
import cats.implicits._
|
||||
|
||||
import java.io.PrintWriter
|
||||
|
||||
import com.htmlism.mos6502.model._
|
||||
|
||||
object MatchOpcodes {
|
||||
def paddedBinary(n: Int, width: Int) =
|
||||
String.format(s"%${width}s", Integer.toBinaryString(n)).replace(" ", "0")
|
||||
|
@ -2,7 +2,7 @@ package com.htmlism.mos6502.dsl
|
||||
|
||||
import scala.collection.mutable.ListBuffer
|
||||
import cats.implicits._
|
||||
import com.htmlism._
|
||||
import com.htmlism.mos6502.model._
|
||||
|
||||
object DslDemo extends App {
|
||||
val cpu =
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.htmlism.mos6502.dsl
|
||||
|
||||
import com.htmlism._
|
||||
import com.htmlism.mos6502.model._
|
||||
|
||||
/**
|
||||
* A typed collection, like memory mapped to screen pixels. Access by index instead of by address.
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.htmlism.mos6502.dsl
|
||||
|
||||
import com.htmlism._
|
||||
import com.htmlism.mos6502.model.Instruction
|
||||
|
||||
sealed trait Statement {
|
||||
def toAsm: String
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.htmlism
|
||||
package com.htmlism.mos6502.model
|
||||
|
||||
sealed trait AddressingMode
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.htmlism
|
||||
package com.htmlism.mos6502.model
|
||||
|
||||
sealed trait Instruction { def theme: String; def color: String }
|
||||
|
Loading…
x
Reference in New Issue
Block a user