mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-06 03:29:30 +00:00
14 lines
400 B
Scala
14 lines
400 B
Scala
package com.htmlism.firepower.core
|
|
|
|
import cats.syntax.all.*
|
|
|
|
import com.htmlism.firepower.core.AsmBlock._
|
|
|
|
case class Subroutine(name: String, description: String, intents: () => List[MetaIntent]):
|
|
def call: MetaIntent =
|
|
MetaIntent.Jump(name, description, intents())
|
|
|
|
object Subroutine:
|
|
def apply(name: String, description: String): Subroutine =
|
|
Subroutine(name, description, () => Nil)
|