Uploaded January 2022 | Updated November 2026, 3 hours ago
In this video, we're writing a "Bit Packer" - a tool that takes data that does not make use of every single bit in its representation, and "packs" it into a buffer that takes up the minimal amount of space. Technically this requires quite a bit of bit manipulation, and is trickier than you might think at first glance!
This will be needed for some projects in the future, where we'll be exploring methods for compressing data.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist:
💌 Updates to your inbox: tinyletter.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo: github.com/LowLevelJavaScript/Bit-Packer
In this video, we're writing a "Bit Packer" - a tool that takes data that does not make use of every single bit in its representation, and "packs" it into a buffer that takes up the minimal amount of space. Technically this requires quite a bit of bit manipulation, and is trickier than you might think at first glance!
This will be needed for some projects in the future, where we'll be exploring methods for compressing data.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist:
💌 Updates to your inbox: tinyletter.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo: github.com/LowLevelJavaScript/Bit-Packer
![[stream] More USB Reverse Engineering + Drivers
=[ 🔗 Links 🔗 ]=
Edgeguard Keyboard Adapter: https://keyboard.gg/
ebpf-usb: https://github.com/francisrstokes/ebpf-usb
eBPF: https://ebpf.io/
Book: USB Complete by Jan Axelson
Marcan reverse engineering a MIDI controller: https://www.youtube.com/watch?v=cUVuTBH51GY
USB 2.0 Spec: https://www.usb.org/document-library/usb-20-specification
Blog with useful resources: https://hackernoon.com/usb-reverse-engineering-down-the-rabbit-hole-c4809a5b55c4
GreatFET: https://greatscottgadgets.com/greatfet/
🎥 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: https://github.com/francisrstokes/GMMK-Driver [stream] More USB Reverse Engineering + Drivers](https://i.ytimg.com/vi/7Zo3bdaqfbo/mqdefault.jpg)
![Interrupts (16-Bit VM in JavaScript 013)
In this episode were 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. 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
=[ 🔗 Links 🔗 ]=
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- ⭐️ Patreon: https://www.patreon.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
- Interrupts: https://en.wikipedia.org/wiki/Interrupt
- 16BitVM Episode 4: https://youtube.com/watch?v=zAsn8q-X9HM Interrupts (16-Bit VM in JavaScript 013)](https://i.ytimg.com/vi/9KQ7a-0cSdk/mqdefault.jpg)
![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)