A 65C02 Assembly eDSL in Haskell
Go to file
Aearnus 5635038ecc fun stuff 2018-05-25 01:50:04 -07:00
app working use case 2018-05-25 01:40:25 -07:00
src/SixtyFiveOhTwo It works! 2018-05-25 00:56:12 -07:00
test init 2018-05-23 03:51:24 -07:00
.gitignore init 2018-05-23 03:51:24 -07:00
ChangeLog.md init 2018-05-23 03:51:24 -07:00
LICENSE init 2018-05-23 03:51:24 -07:00
README.md fun stuff 2018-05-25 01:50:04 -07:00
Setup.hs init 2018-05-23 03:51:24 -07:00
fancy_banner.png fun stuff 2018-05-25 01:50:04 -07:00
package.yaml Generated instructions 2018-05-24 01:44:32 -07:00
screenshot.png fun stuff 2018-05-25 01:50:04 -07:00
stack.yaml init 2018-05-23 03:51:24 -07:00

README.md

A 65C02 Assembly DSL for Haskell

... shut up, show me the code!

Here's some example code utilizing all of the features of the DSL:

import SixtyFiveOhTwo.Instruction

accumulatorLoadNStore :: Instruction
accumulatorLoadNStore = do
    lda (Immediate 0x10)
    sta (Absolute 0x0200)
    rts (Implied)

myProgram :: Instruction
myProgram = do
    define "accumulatorLoadNStore" accumulatorLoadNStore
    call "accumulatorLoadNStore"

(taken from main.hs)

More documentation coming soon!