Assembler Hacking: Structures (16-Bit VM in JavaScript 015) @LowByteProductions
Assembler Hacking: Structures (16-Bit VM in JavaScript 015)  @LowByteProductions
Uploaded October 2020 | Updated September 2026, 2 weeks ago
In this episode, we're going to implement structures. This feature allows a programmer to treat a symbolic name (referring to a memory address) as a particular kind of structured data.

00:00 - Intro
00:30 - What do structures do in LLJS Assembly?
02:17 - Implementing the structure parser
04:23 - Implementing the "interpret as structure" parser
06:22 - Writing a test program in assembly
06:43 - Tracking structure types in the assembler
08:41 - Reinterpreting symbols as structures in the assembler
10:40 - Testing structures by generating real machine code

=[ ℹ 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



- Assembly language tour (16-Bit VM ep 7) : youtu.be/ai63l4OUxSs
- Data directives: en.wikipedia.org/wiki/Assembly_language#Data_directives



- Series Playlist: youtube.com/playlist?list=PLP29wDx6QmW5DdwpdwHCRJsEubS5NrQ9b&playnext=1&index=1
- Github Repo: github.com/LowLevelJavaScript/16-Bit-Virtual-Machine
Assembler Hacking: Structures (16-Bit VM in JavaScript 015)Bare Metal Bit Banging: WS2812B DriverTour Through The Assembly Language and The Assembler (16-Bit VM in JavaScript 007)How does an OS boot? //Source Dive// 001Implementing A Generic Priority QueueProgrammatic Painting: Flow FieldsHow does KERNEL memory allocation work? //Source Dive// 004Implementing LOAD instructions: RISC-V ep.5Understanding AES Encryption Mechanics: BMPSBuilding FPGA Hardware Using TypeScript: Driving An RGB LED PanelBuilding A Language Parser and Interpreter [Parser Combinators from Scratch] Episode 5Programmatic Flash Control :: Bare Metal Programming Series 8
Low Byte Productions |

Assembler Hacking: Structures (16-Bit VM in JavaScript 015)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER