mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-01-03 08:31:26 +00:00
again
This commit is contained in:
parent
930c483f8c
commit
6a94281fd3
@ -22,9 +22,21 @@ object CodeGenerator extends App:
|
|||||||
println
|
println
|
||||||
println(s" def comment(s: String): Asm$n[$typeParameterList]")
|
println(s" def comment(s: String): Asm$n[$typeParameterList]")
|
||||||
println
|
println
|
||||||
|
println(s" def andThen(that: Asm$n[$typeParameterList]): Asm$n[$typeParameterList] =")
|
||||||
|
println(s" AndThen$n[$typeParameterList](this, that, None)")
|
||||||
|
println
|
||||||
println(s" def widenWith[$nextLetter]: Asm${n + 1}[$typeParameterList, $nextLetter] =")
|
println(s" def widenWith[$nextLetter]: Asm${n + 1}[$typeParameterList, $nextLetter] =")
|
||||||
println(s" Asm${n + 1}Instructions(xs, oComment)")
|
println(s" Asm${n + 1}Instructions(xs, oComment)")
|
||||||
println
|
println
|
||||||
|
println(
|
||||||
|
s"case class AndThen${n}[$typeParameterList](left: Asm$n[$typeParameterList], right: Asm$n[$typeParameterList], oComment: Option[String]) extends Asm${n}[$typeParameterList]:"
|
||||||
|
)
|
||||||
|
println(" def xs: List[String] =")
|
||||||
|
println(" left.xs ++ right.xs")
|
||||||
|
println
|
||||||
|
println(s" def comment(s: String): Asm$n[$typeParameterList] =")
|
||||||
|
println(" copy(oComment = Some(s))")
|
||||||
|
println
|
||||||
println(
|
println(
|
||||||
s"case class Asm${n}Instructions[$typeParameterList](xs: List[String], oComment: Option[String]) extends Asm${n}[$typeParameterList]:"
|
s"case class Asm${n}Instructions[$typeParameterList](xs: List[String], oComment: Option[String]) extends Asm${n}[$typeParameterList]:"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user