mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-28 15:29:34 +00:00
15 lines
362 B
Scala
15 lines
362 B
Scala
package com.htmlism.firepower.core
|
|
|
|
import cats.syntax.all.*
|
|
|
|
import com.htmlism.firepower.core.AsmBlock._
|
|
|
|
case class Subroutine(name: String, intents: List[Intent]):
|
|
def call: Intent.Instruction =
|
|
Intent.Instruction.One("jsr", name, None)
|
|
|
|
def attach: NamedCodeBlock =
|
|
NamedCodeBlock(name, "this is a named block".some, intents)
|
|
|
|
object Subroutine
|