drop unused mechanics

This commit is contained in:
Mark Canlas 2022-11-20 03:07:27 -05:00
parent 6345d6c0fd
commit f99d40e377
2 changed files with 0 additions and 17 deletions

View File

@ -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

View File

@ -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 =