6502-opcodes/nescant/src/main/scala/com/htmlism/nescant/Operand.scala
2023-06-19 05:33:43 -04:00

9 lines
144 B
Scala

package com.htmlism.nescant
trait Operand[A]:
def encode(x: A): String
object Operand:
given operandForInt: Operand[Int] =
_.toString