mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-08 17:29:36 +00:00
9 lines
144 B
Scala
9 lines
144 B
Scala
package com.htmlism.nescant
|
|
|
|
trait Operand[A]:
|
|
def encode(x: A): String
|
|
|
|
object Operand:
|
|
given operandForInt: Operand[Int] =
|
|
_.toString
|