Implementing Stack Mechanics (16-Bit VM in JavaScript 004)

Опубликовано: 16 Июль 2026
на канале: Low Byte Productions
14,600
391

In this episode, we create an implementation for the stack mechanisms that were described in the last episode. If you have seen that, you can find it at    • What is the Stack and why do we need it? (...  


=[ ℹ 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:   / lowleveljavascript  
💌 Updates to your inbox: https://tinyletter.com/lowleveljavasc...

Series Playlist:    • 16-Bit Virtual Machine  
Github Repo: https://github.com/LowLevelJavaScript...

Stack Data Structure: https://en.wikipedia.org/wiki/Stack_(...)
Subroutine: https://en.wikipedia.org/wiki/Subroutine