Uploaded April 2022 | Updated November 2026, 3 hours ago
In this video, after something of a hiatus, we're getting backing into the RISC-V swing!
We're diving into machine mode, the associated CSRs, and how they relate to next big piece of functionality we'll be tackling: Traps - Exceptions and Interrupts.
We also take a deep dive into the memory map of the design, relating it to the compilation and linking of the C and assembly code that will run on the processor.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist: youtube.com/watch?v=ER7h4ZTe19A&list=PLP29wDx6QmW4sXTvFYgbHrLygqH8_oNEH
💌 Updates to your inbox: tinyletter.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo (emulator): github.com/LowLevelJavaScript/RISC-V-Emulator
In this video, after something of a hiatus, we're getting backing into the RISC-V swing!
We're diving into machine mode, the associated CSRs, and how they relate to next big piece of functionality we'll be tackling: Traps - Exceptions and Interrupts.
We also take a deep dive into the memory map of the design, relating it to the compilation and linking of the C and assembly code that will run on the processor.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist: youtube.com/watch?v=ER7h4ZTe19A&list=PLP29wDx6QmW4sXTvFYgbHrLygqH8_oNEH
💌 Updates to your inbox: tinyletter.com/lowleveljavascript
🗣 Discord: discord.gg/FPWaVgk
⭐️ Patreon: patreon.com/lowleveljavascript
💻 Github Repo (emulator): github.com/LowLevelJavaScript/RISC-V-Emulator
![Command Line Hex Editor in TypeScript 🧙🏻
In this video were spite-coding a command line hex editor that allows the editing of binary files in a simple and friendly interface like nano.
Since the recording of this video, the development of `bewitched` has continued quite a bit, and you can find the latest code over on github (linked below).
If you want to try it out for yourself, you can run `npm i -g bewitched` to install. If you have ideas for features or want to report bugs, please use the github issues, or pass by the LLJS discord channel (linked below).
=[ 🔗 Links 🔗 ]=
💌 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/francisrstokes/bewitched Command Line Hex Editor in TypeScript 🧙🏻](https://i.ytimg.com/vi/132wDVovzhw/mqdefault.jpg)
![Using LEDs As Precise GPIOs
In this video, were looking at a technique for precisely analyzing signals from firmware when all you can do is blink a LED. By writing to an LED as if it were a typical GPIO, and building a surprisingly simple receiver, we can probe signals with an oscilloscope without even touching the board!
=[ 🔗 Links 🔗 ]=
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript Using LEDs As Precise GPIOs](https://i.ytimg.com/vi/1Y91DioUufA/mqdefault.jpg)
![Implementing the mechanics [Parser Combinators From Scratch] Episode 2
In this episode we explore how the primary mechanism of parser combinators works: A function that transforms one parser state into another. We implement the str and sequenceOf parsers, as well as a internal error handling mechanism.
=[ ℹ About ℹ ]=
During this series we will develop an understanding of the concept of parsing, and build our own parser combinator system from scratch. The system we build will be capable of parsing both binary and text data. Well make use of both object-oriented and function programming principles to develop an effective and intuitive library.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- arcsecond : https://github.com/francisrstokes/arcsecond
- Daniel Holdens Article: http://daniel-holden.com/page/you-could-have-invented-parser-combinators
- LLJS Subreddit: https://reddit.com/r/lowleveljavascript
- Wikipedia Article On Parser : https://en.wikipedia.org/wiki/Parsing Implementing the mechanics [Parser Combinators From Scratch] Episode 2](https://i.ytimg.com/vi/1axJDmK_pnE/mqdefault.jpg)
![Maintaining Firmware Integrity :: Bare Metal Programming Series 12
In this episode, we add a mechanism to ensure that a firmware was properly transferred during an update. Problems can occur if power is lost during an update, or the cable connection is dropped. By checking the main application integrity in the bootloader before executing it, we can prevent potentially dangerous situations.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW7HaCrRydOnxcy8QmW0SNdQ
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/lowbyteproductions/bare-metal-series Maintaining Firmware Integrity :: Bare Metal Programming Series 12](https://i.ytimg.com/vi/4-dle5L9REs/mqdefault.jpg)
![Promises From Scratch In A Post-Apocalyptic Future
=[ ℹ About ℹ ]=
In this installment of Low Level JavaScript we build a Promise implementation from scratch in order to understand exactly how asynchronous abstractions can be built on top of lower level primitives like callbacks.
=[ 🔗 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 Promises From Scratch In A Post-Apocalyptic Future](https://i.ytimg.com/vi/4GpwM8FmVgQ/mqdefault.jpg)
![Generating Machine Code (16-Bit VM in JavaScript 011)
In this episode we take the AST representation of the assembly code we get from the parser and turn it into real machine code - the bytes in memory that the virtual CPU executes as instructions. Along the way well add support for labels, allowing us to write location independent and logically grouped assembly code.
Big shout out to patron Max Starr, whose LLJS IDE Project (https://github.com/manmon42/lljsvm-ide) is featured in this episode.
=[ ℹ 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
- 💌 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
- LLJS IDE: https://github.com/manmon42/lljsvm-ide
- arcsecond: https://github.com/francisrstokes/arcsecond
- Parser Combinators From Scratch: https://www.youtube.com/watch?v=6oQLRhw5Ah0&list=PLP29wDx6QmW5yfO1LAgO8kU3aQEj8SIrU
=[ 🔗 Links 🔗 ]=
- Playlist: https://www.youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: https://github.com/LowLevelJavaScript/16-Bit-Virtual-Machine Generating Machine Code (16-Bit VM in JavaScript 011)](https://i.ytimg.com/vi/5PXMwvUkOKI/mqdefault.jpg)
![Building an DECODER for QOI Images (Quite OK Image Format)
The Quite OK Image Format (qoi) is a lossless compression image format that has similar performance to PNG, but with substantially faster encoding and decoding, making it a great choice for embedded systems.
In this video were going wrap our encoder implementation into a library, and build the corresponding decoder, which allows us to take a compressed QOI image and turn into a buffer of RGBA pixels.
=[ 🔗 Links 🔗 ]=
- Encoder Video: https://www.youtube.com/watch?v=GgsRQuGSrc0
- The QOI format: https://qoiformat.org/
- Dominic Szablewski (the creator): https://twitter.com/phoboslab
💌 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/QOI Building an DECODER for QOI Images (Quite OK Image Format)](https://i.ytimg.com/vi/5bWopQj-oQs/mqdefault.jpg)
![Turning Pixels Into Waves
In this video, were building an awesome graphical effect, where an image is processed into a series of animated waves. The math behind the technique is fascinating, and will lead us into to how sine waves work, the magic of linear interpolation, and signal processing techniques like amplitude modulation!
=[ 🔗 Links 🔗 ]=
🗣 Discord: https://discord.gg/FPWaVgk
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
💻 Github Repo: https://github.com/lowbyteproductions/Turning-Pixels-Into-Waves Turning Pixels Into Waves](https://i.ytimg.com/vi/5vzMgNAzEuA/mqdefault.jpg)
![How Parser Combinators Work [Parser Combinators From Scratch] Episode 1
In this episode we dive into what a parser combinator library is, and how it is used in practice.
During this series we will develop an understanding of the concept of parsing, and build our own parser combinator system from scratch. The system we build will be capable of parsing both binary and text data. Well make use of both object-oriented and function programming principles to develop an effective and intuitive library.
=[ 🔗 Links 🔗 ]=
- ⭐️ Patreon: https://www.patreon.com/lowleveljavascript
- 💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
- arcsecond : https://github.com/francisrstokes/arcsecond
- Daniel Holdens Article: http://daniel-holden.com/page/you-could-have-invented-parser-combinators
- Wikipedia Article On Parser : https://en.wikipedia.org/wiki/Parsing
- LLJS Subreddit: https://reddit.com/r/lowleveljavascript How Parser Combinators Work [Parser Combinators From Scratch] Episode 1](https://i.ytimg.com/vi/6oQLRhw5Ah0/mqdefault.jpg)
![Packing Bits For Compression
In this video, were 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 well be exploring methods for compressing data.
=[ 🔗 Links 🔗 ]=
🎥 Series Playlist:
💌 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/Bit-Packer Packing Bits For Compression](https://i.ytimg.com/vi/74co_YG39Bw/mqdefault.jpg)
![[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)