mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-09-24 17:56:49 +00:00
22 lines
326 B
Scala
22 lines
326 B
Scala
package com.htmlism.mos6502.dsl
|
|
|
|
import cats.data.NonEmptyList
|
|
|
|
trait EnumAsm[A]:
|
|
def comment: String
|
|
|
|
/**
|
|
* An ordered list of every value in this enumeration
|
|
*/
|
|
def all: NonEmptyList[A]
|
|
|
|
/**
|
|
* ASM-safe label
|
|
*/
|
|
def label(x: A): String
|
|
|
|
/**
|
|
* Comment string
|
|
*/
|
|
def comment(x: A): String
|