An open API service indexing awesome lists of open source software.

https://github.com/wolfadex/elm-lc3

A rough implementation of Little Computer 3 (LC-3) in Elm
https://github.com/wolfadex/elm-lc3

elm lc3 vm

Last synced: 11 months ago
JSON representation

A rough implementation of Little Computer 3 (LC-3) in Elm

Awesome Lists containing this project

README

          

# LC-3

A rough implementation of Little Computer 3 (LC-3) in Elm

Play with it here https://wolfadex.github.io/elm-lc3

Learning resources for my implementation
- https://zserge.com/posts/post-apocalyptic-programming/
- https://github.com/SrivastavaShreyas/Little-Computer-3-LC-3/blob/main/pseudoCode.c
- https://medium.com/@saehwanpark/diving-deeper-into-lc-3-from-opcodes-to-machine-code-4637cf00c878
- https://hwang.lasierra.edu/~enoch/CPTG%20245/LC-3/LC-3%20Instructions.pdf

Op codes supported
- [x] ADD
- [x] AND
- [x] NOT
- [x] BR
- [x] JMP
- [x] RET
- [x] JSR
- [ ] LD
- [ ] LDI
- [ ] LDR
- [ ] ST
- [ ] STI
- [ ] STR
- [ ] LEA
- [ ] TRAP
- [x] HALT ends the program
- [x] GETC gets an ASCII character
- [x] OUT prints an ASCII character