fun stuff
This commit is contained in:
parent
04e42a470a
commit
5635038ecc
24
README.md
24
README.md
|
@ -1 +1,23 @@
|
|||
# dsl-sixty-five-oh-two
|
||||
# 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:
|
||||
|
||||
```haskell
|
||||
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!
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 108 KiB |
Binary file not shown.
After Width: | Height: | Size: 229 KiB |
Loading…
Reference in New Issue