mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-08-09 23:24:59 +00:00
drop unused mechanics
This commit is contained in:
@@ -34,17 +34,3 @@ trait Asm3[A, B, C]:
|
|||||||
case class Asm3Instructions[A, B, C](xs: List[String]) extends Asm3[A, B, C]
|
case class Asm3Instructions[A, B, C](xs: List[String]) extends Asm3[A, B, C]
|
||||||
|
|
||||||
case class R[A]()
|
case class R[A]()
|
||||||
|
|
||||||
// TODO needs evidence that it is a storable target of one thing
|
|
||||||
case class StoreTo[A: Register, B]() extends Asm2[A, B]:
|
|
||||||
// TODO
|
|
||||||
def xs: List[String] =
|
|
||||||
Nil
|
|
||||||
|
|
||||||
case class LoadImmediate[R: Register, A: ImmediateValue]() extends Asm1[R]:
|
|
||||||
// TODO
|
|
||||||
def xs: List[String] =
|
|
||||||
Nil
|
|
||||||
|
|
||||||
trait ImmediateValue[A]:
|
|
||||||
def toByte(x: A): Int
|
|
||||||
|
@@ -5,9 +5,6 @@ package object syntax:
|
|||||||
def writeConst[A: Loadable](x: A): syntax.PartiallyAppliedWrite[A, Addr] =
|
def writeConst[A: Loadable](x: A): syntax.PartiallyAppliedWrite[A, Addr] =
|
||||||
new syntax.PartiallyAppliedWrite(reg, x)
|
new syntax.PartiallyAppliedWrite(reg, x)
|
||||||
|
|
||||||
def writeFrom[R: Register]: Asm2[R, Addr] =
|
|
||||||
StoreTo[R, Addr]()
|
|
||||||
|
|
||||||
class PartiallyAppliedWrite[Addr: Loadable, A](reg: WriteByteAddress[A], x: Addr):
|
class PartiallyAppliedWrite[Addr: Loadable, A](reg: WriteByteAddress[A], x: Addr):
|
||||||
def apply[R: Register]: String =
|
def apply[R: Register]: String =
|
||||||
val literal =
|
val literal =
|
||||||
|
Reference in New Issue
Block a user