mirror of
https://github.com/DataKinds/sixty-five-oh-two.git
synced 2024-06-03 17:29:26 +00:00
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!
|
||||||
|
|
BIN
fancy_banner.png
Normal file
BIN
fancy_banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 108 KiB |
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 229 KiB |
Loading…
Reference in New Issue
Block a user