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

Показать описание
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 🔗 ]=
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 🔗 ]=
Комментарии