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

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

Рекомендации по теме
Комментарии
Автор

Yes!
This is becoming really beautiful and powerful!

theitatit
Автор

This is getting pretty powerful. I like it.

mladjo
Автор

Hello !
First of all thank you for this priceless content, better formulated and less convoluted than college classes. It was really a pleasure coding along with you.
At the end of this journey, I didn't see the module implementation. Have I missed something ?
Do you plan to continue this series by implementing the higher level language ?

Thanks again mate ! <3

salty_max
Автор

What software do you use for animating your text editing? I don't think it's the right thing for my own style, but I think it's really effective how you use it. So I'm curious.

contextfree
visit shbcf.ru