mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-23 01:29:47 +00:00
drop unused mechanics
This commit is contained in:
parent
6345d6c0fd
commit
f99d40e377
@ -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 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] =
|
||||
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):
|
||||
def apply[R: Register]: String =
|
||||
val literal =
|
||||
|
Loading…
Reference in New Issue
Block a user