mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2025-04-09 23:37:16 +00:00
asm demo sans comments
This commit is contained in:
parent
178159f97e
commit
10e6eea846
@ -13,14 +13,23 @@ object PrintPrograms extends ZIOAppDefault:
|
||||
|
||||
private val programs =
|
||||
List[(String, String)](
|
||||
"one-line.txt" -> "one line",
|
||||
"two-lines.txt" -> (Line.mkString _)
|
||||
"one-line.txt" -> "one line",
|
||||
"two-lines.txt" -> (Line.mkString _)
|
||||
.apply(List("foo", "bar")),
|
||||
"two-paragraphs.txt" -> (Line.mkString _)
|
||||
"two-paragraphs.txt" -> (Line.mkString _)
|
||||
.compose(Paragraph.mkLines)
|
||||
.apply(List(Paragraph("foo", "bar"), Paragraph("alpha", "bravo")))
|
||||
.apply(List(Paragraph("foo", "bar"), Paragraph("alpha", "bravo"))),
|
||||
"annotated-snake.asm" -> (Line.mkString _)
|
||||
.compose(Paragraph.mkLines)
|
||||
.apply(List(Paragraph(asciiArt), Paragraph("Change direction: W A S D")))
|
||||
)
|
||||
|
||||
lazy val asciiArt =
|
||||
""" ___ _ __ ___ __ ___
|
||||
|/ __|_ _ __ _| |_____ / /| __|/ \_ )
|
||||
|\__ \ ' \/ _` | / / -_) _ \__ \ () / /
|
||||
||___/_||_\__,_|_\_\___\___/___/\__/___|""".stripMargin
|
||||
|
||||
def run: Task[Unit] =
|
||||
for {
|
||||
// just a traverse in slow motion...
|
||||
|
Loading…
x
Reference in New Issue
Block a user