diff --git a/scratchpad/src/main/scala/com/htmlism/scratchpad/Load.scala b/scratchpad/src/main/scala/com/htmlism/scratchpad/Load.scala index 3728d3c..8b5cf97 100644 --- a/scratchpad/src/main/scala/com/htmlism/scratchpad/Load.scala +++ b/scratchpad/src/main/scala/com/htmlism/scratchpad/Load.scala @@ -1,8 +1,9 @@ package com.htmlism.scratchpad trait Load[A]: + // TODO genericize to take in encoder // from constant - def init: String + def loadInt: String // from register def from: String diff --git a/scratchpad/src/main/scala/com/htmlism/scratchpad/Register.scala b/scratchpad/src/main/scala/com/htmlism/scratchpad/Register.scala index b79b388..4ebb17b 100644 --- a/scratchpad/src/main/scala/com/htmlism/scratchpad/Register.scala +++ b/scratchpad/src/main/scala/com/htmlism/scratchpad/Register.scala @@ -15,7 +15,7 @@ object Register: object A: given loadA: Load[A] with - def init: String = + def loadInt: String = "LDA" def from: String = @@ -29,7 +29,7 @@ object Register: object X: given loadX: Load[X] with - def init: String = + def loadInt: String = "LDX" def from: String = @@ -43,7 +43,7 @@ object Register: object Y: given loadY: Load[Y] with - def init: String = + def loadInt: String = "LDY" def from: String = diff --git a/scratchpad/src/main/scala/com/htmlism/scratchpad/syntax/package.scala b/scratchpad/src/main/scala/com/htmlism/scratchpad/syntax/package.scala index d04913b..663bf52 100644 --- a/scratchpad/src/main/scala/com/htmlism/scratchpad/syntax/package.scala +++ b/scratchpad/src/main/scala/com/htmlism/scratchpad/syntax/package.scala @@ -14,7 +14,7 @@ package object syntax: summon[Register[C]].self val loadInstruction = - Load[C].init // TODO load action needs to interact with encoder + Load[C].loadInt // TODO load action needs to interact with encoder val storeInstruction = Store[C].to // TODO store action needs to interact with encoder