mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-08-13 18:24:59 +00:00
avoid shadowing
This commit is contained in:
@@ -6,12 +6,12 @@ package object syntax:
|
|||||||
new PartiallyAppliedWrite(reg, x)
|
new PartiallyAppliedWrite(reg, x)
|
||||||
|
|
||||||
class PartiallyAppliedWrite[A: Loadable, B <: Address](reg: WriteAddress[B], x: A):
|
class PartiallyAppliedWrite[A: Loadable, B <: Address](reg: WriteAddress[B], x: A):
|
||||||
def apply[B: Register]: String =
|
def apply[C: Register]: String =
|
||||||
val literal =
|
val literal =
|
||||||
summon[Loadable[A]].show(x)
|
summon[Loadable[A]].show(x)
|
||||||
|
|
||||||
val register =
|
val register =
|
||||||
summon[Register[B]].self
|
summon[Register[C]].self
|
||||||
|
|
||||||
val first =
|
val first =
|
||||||
s"LD$register $literal"
|
s"LD$register $literal"
|
||||||
|
Reference in New Issue
Block a user