Uploaded August 2020 | Updated November 2026, 5 hours ago
In this episode we're introducing a maskable interrupt mechanism to the VM. This allows the outside world, as well as software, to Interrupt the regular flow of execution and redirect it to somewhere else, immediately.
=[ ℹ 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
=[ 🔗 Links 🔗 ]=
- 💌 Updates to your inbox: tinyletter.com/lowleveljavascript
- ⭐️ Patreon: patreon.com/lowleveljavascript
- Series Playlist: youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
- Interrupts: en.wikipedia.org/wiki/Interrupt
- 16BitVM Episode 4: youtube.com/watch?v=zAsn8q-X9HM
In this episode we're introducing a maskable interrupt mechanism to the VM. This allows the outside world, as well as software, to Interrupt the regular flow of execution and redirect it to somewhere else, immediately.
=[ ℹ 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
=[ 🔗 Links 🔗 ]=
- 💌 Updates to your inbox: tinyletter.com/lowleveljavascript
- ⭐️ Patreon: patreon.com/lowleveljavascript
- Series Playlist: youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
- Interrupts: en.wikipedia.org/wiki/Interrupt
- 16BitVM Episode 4: youtube.com/watch?v=zAsn8q-X9HM
![Mage ASCII Game Engine
In this video were creating an ASCII game engine that runs in the browser! It should be flexible enough that we can build many different kinds of games in it, but its intended purpose is mainly for rougelike and adventure games.
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/LowLevelJavaScript/mage-ascii-game-engine/ Mage ASCII Game Engine](https://i.ytimg.com/vi/B3uH517XbPs/mqdefault.jpg)

![Zero Extension [The Bits And Bytes Of Binary ep.5]
This mini series is all about binary. Over the course of the series, well be building a library that gives us precise control of every bit and operation.
Youll learn how the logical and arithmetic operations work, how different kinds of numbers are encoded, how to set, clear and toggle bits, and how we can create representations of structured binary data.
1. Bits
2. Operations
3. Unsigned Numbers
4. Addition
5. Zero Extension
6. Twos complement
7. Overflow Addition and Sign Extension
8. Shifting
9. Setting, Clearing, and Toggling Bits
10. Endianness
11. Structures
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
🎥 Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW47oPsNBFNEi_SYTOLDJXqQ
💻 Github Repo: https://github.com/LowLevelJavaScript/The-Bits-And-Bytes-Of-Binary
=[ 🎶 Music 🎶 ]=
Bad Snacks - The Morning After Zero Extension [The Bits And Bytes Of Binary ep.5]](https://i.ytimg.com/vi/BSktALAB6RQ/mqdefault.jpg)
![[stream] Exploring the FT232H and Node Native Addons
=[ 🔗 Links 🔗 ]=
🎥 Stream Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW7jg0LgRJYAmHLM6G_6NDw6
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: [stream] Exploring the FT232H and Node Native Addons](https://i.ytimg.com/vi/DJ-SO0d3sYY/mqdefault.jpg)
![Live Coding A NES Emulator in C++!
This video is a little different, for a few reasons - not least because the language being used isnt JS but rather C++!
Together were building a NES emulator that will run on the teensy 4.1 microcontroller - and in this video specifically were taking a look at the 6502 microcontroller, how its instructions are organised and decoded, implementing clock cycle accuracy for each instruction.
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/francisrstokes/teensy-nes Live Coding A NES Emulator in C++!](https://i.ytimg.com/vi/Dq_cpyrYI70/mqdefault.jpg)
![ROM Hacking: Exploring The BPS Binary Patch Format
In this video, were exploring the BPS binary patch format, used extensively in the ROM hacking scene. BPS has a number of improvements over the IPS format we looked at in a previous installment, offering better composition, compression, and error checking.
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/lowbyteproductions/BPS-Patcher ROM Hacking: Exploring The BPS Binary Patch Format](https://i.ytimg.com/vi/EDsW08Z-Iak/mqdefault.jpg)
![Building The Worlds First CPU in TypeScript? (No Really!)
=[ 🔗 Links 🔗 ]=
First development episode: https://www.youtube.com/watch?v=Vat4p2idDOA
gateware-ts video: https://www.youtube.com/watch?v=Otx96lJnLeo
gateware-ts repo: https://github.com/gateware-ts/gateware-ts
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo (emulator): https://github.com/LowLevelJavaScript/RISC-V-Emulator Building The Worlds First CPU in TypeScript? (No Really!)](https://i.ytimg.com/vi/ER7h4ZTe19A/mqdefault.jpg)
![Parsing Nested Expressions and Disambiguating The Order Of Operations (16-Bit VM in JavaScript 009)
In this episode were continuing with the assembler; finalising the Move Literal To Register instruction parser, and implementing the rules that govern the order of operations.
=[ ℹ 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. Well 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
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- Series Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: https://github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
- arcsecond: https://github.com/francisrstokes/arcsecond
- Parser Combinators From Scratch: https://www.youtube.com/watch?v=6oQLRhw5Ah0&list=PLP29wDx6QmW5yfO1LAgO8kU3aQEj8SIrU
- Binary Operation: https://en.wikipedia.org/wiki/Binary_operation
- Binary Expression (structure): https://en.wikipedia.org/wiki/Binary_expression_tree Parsing Nested Expressions and Disambiguating The Order Of Operations (16-Bit VM in JavaScript 009)](https://i.ytimg.com/vi/EaUBBDESWCY/mqdefault.jpg)
![Building Async/Await FROM SCRATCH using Generators
In this episode we build on the Promise abstraction we built in the previous episode to create async/await from scratch using generator functions.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- Github Repo: https://github.com/LowLevelJavaScript/Promises-From-Scratch
- Specification: https://promisesaplus.com
- Promises (MDN): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
- Generator Functions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*
- Generator Objects: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator
- Iterator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterator_protocol
- Iterable: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol Building Async/Await FROM SCRATCH using Generators](https://i.ytimg.com/vi/Em2jqwROdZc/mqdefault.jpg)
![Adding Method Overloading To Classes In JavaScript?
In this video were building a runtime library that allows us to define more powerful classes. More specifically, itll give us the ability to write strongly typed and overloadable constructors and methods.
=[ 🔗 Links 🔗 ]=
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/francisrstokes/Classiest Adding Method Overloading To Classes In JavaScript?](https://i.ytimg.com/vi/F-fa_yXcJbc/mqdefault.jpg)
![[stream] File System Hacking: Building A FAT32 Layer On Top Of The SD-Card Driver
=[ 🔗 Links 🔗 ]=
🎥 Stream Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW7jg0LgRJYAmHLM6G_6NDw6
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: [stream] File System Hacking: Building A FAT32 Layer On Top Of The SD-Card Driver](https://i.ytimg.com/vi/GMkjey1FTe0/mqdefault.jpg)