mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-12-21 18:29:22 +00:00
snake stub
This commit is contained in:
parent
3aa9f058aa
commit
248cafbdae
0
data/snake-easy-6502.asm
Normal file
0
data/snake-easy-6502.asm
Normal file
@ -43,6 +43,9 @@ object PrintPrograms extends ZIOAppDefault:
|
||||
),
|
||||
"print-three-lower.asm" -> PrintThree.assemble(
|
||||
AssemblerOptions(InstructionCase.Lowercase, DefinitionsMode.UseLiterals)
|
||||
),
|
||||
"snake-easy-6502.asm" -> SnakeEasy6502.assemble(
|
||||
AssemblerOptions(InstructionCase.Uppercase, DefinitionsMode.UseDefinitions)
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
package com.htmlism.firepower.demo
|
||||
|
||||
import scala.util.chaining._
|
||||
|
||||
import com.htmlism.firepower.core._
|
||||
|
||||
object SnakeEasy6502:
|
||||
def assemble(opts: AssemblerOptions): String =
|
||||
(Nil)
|
||||
.map(AsmBlock.toLines(opts.instructionCase))
|
||||
.pipe(xs => AsmBlock.interFlatMap(xs)(List("", ""), identity))
|
||||
.pipe(str.Line.mkString)
|
Loading…
Reference in New Issue
Block a user