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
- Host: GitHub
- URL: https://github.com/wolfadex/elm-lc3
- Owner: wolfadex
- Created: 2025-07-09T00:35:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T03:08:53.000Z (11 months ago)
- Last Synced: 2025-07-09T03:36:43.806Z (11 months ago)
- Topics: elm, lc3, vm
- Language: Elm
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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