What is the Stack and why do we need it? (16-Bit VM in JavaScript 003) @LowByteProductions
What is the Stack and why do we need it? (16-Bit VM in JavaScript 003)  @LowByteProductions
Uploaded October 2019 | Updated September 2026, 2 weeks ago
In this episode we understand what a stack is, how it can be implemented on the lowest level, and how it can then be harnessed to allow the Virtual Machine to run subroutines without losing state.

=[ ℹ 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 exend it to create a sort of fantasy console - an emulator for a machine that never existed

=[ 🔗 Links 🔗 ]=

- ⭐️ Patreon: patreon.com/lowleveljavascript
- 💌 Updates to your inbox: tinyletter.com/lowleveljavascript

- Series Playlist: youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: github.com/LowLevelJavaScript/16-Bit-Virtual-Machine

- Stack Data Structure: en.wikipedia.org/wiki/Stack_(abstract_data_type)
- Subroutine: en.wikipedia.org/wiki/Subroutine
What is the Stack and why do we need it? (16-Bit VM in JavaScript 003)Understanding Assembly Generated From C :: Bare Metal Programming Series 4.1Contextual Parsing With The Chain Method  [Parser Combinators From Scratch] Episode 4Exceptional Trap Handling: RISC-V ep.10Bits! [The Bits And Bytes Of Binary ep.1]RISC-V Processor In TS: ALU (part 2)UART Driver From Scratch :: Bare Metal Programming Series 5Testing the Packet Protocol :: Bare Metal Programming Series 7.3Dumping GameBoy Cartridges The INTERESTING WayJavaScript Is Weird (EXTREME EDITION)Hiding Data In SoundUnconditional Jumps and Running C code: RISC-V ep.6
Low Byte Productions |

What is the Stack and why do we need it? (16-Bit VM in JavaScript 003)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER