u/FrancisStokesin r/node • Recommends
I've Been Making a Video Series about Building a 16-bit Virtual Machine From Scratch In JavaScript. This Episode Is All about Writing a Generic Parser for the Assembly Instructions.
#virtualmachine#parsercombinators#assembly
87K subscribers • 18 videos on Hallway
Advanced. Deep dive for people who know the field.
4.7K views6 years ago1 recommendation
Systems programmingProgramming languagesCompilers and interpretersJavaScript
How to build a generic parser that handles assembly instructions for a custom 16-bit virtual machine in JavaScript.
In this episode we build a parser that can handle every instruction that the VM currently supports. =[ ℹ About ℹ ]= This series is all about building a powerful virtual machine in JavaScript with the following features: - A flexible, extensible, register-based virtual machine - Support for signed, unsigned and floating point operations - A call stack - Interrupt capabilities - Ability to do memory mapping for IO - An assembly language with macro and module support - A higher level, C like language. We'll use and expand the library from the parser combinators from scratch series - And finally, to be able to take the whole thing into the browser and extend it to create a sort of fantasy console - an emulator for a machine that never existed - 💌 Updates to your inbox: tinyletter.com/lowleveljavascript - ⭐️ Patreon: patreon.com/lowleveljavascript - Series Playlist: youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b… - Github Repo: github.com/LowLevelJavaScript/16-Bit-Virtual-Machine - arcsecond: github.com/francisrstokes/arcsecond - Parser Combinators From Scratch: youtube.com/watch?v=6oQLRhw5Ah0&list=PLP29wDx6QmW5yfO1LAgO8k…u/FrancisStokesin r/node • Recommends