A parser for every instruction? (16-Bit VM in JavaScript 010)

preview_player
Показать описание
In this episode we build a parser that can handle every instruction that the VM currently supports.

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

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

I'm actually building a 8-bit computer inspired on BenEater's one, and using this videos to create an Assembler for the computer. Many thanks for the excellent videos.

IsaacPiera
Автор

It is a good feeling when you can refactor it into more generic parts (like in the formats.js) and it all works :)

-P
Автор

Wow, that was very fluid and a big step for the parser. Now on to bigger things.

mladjo
Автор

Came here from Reddit. Glad I found this channel.

Subbed! 👌

singha
Автор

This entire channel is solid gold, subscribed, joined subreddit, followed on GH and starred FWIW, joined modest patreon level. I got here as quick as I could. I would love to acquire the skillset and conceptual understanding that Francis demonstrates in these videos to be able to synthesize these types of projects. As a self taught software dev (PHP -> node/JS/TS -> Golang)(only about 6 years professional experience so still in that mid level/almost senior range) I'm a little late to the game IMHO on learning these lower level concepts. I'm completely fascinated by this though! I want to learn this, & support/help out however I can. Doing amazing work here!
I also loved the parser combinator series as well. It's my first introduction to these concepts other than very high-level-I-read-an-article a couple times introduction. I'm really digging and still wrapping my mind around some of the functional programming stuff too, but it's glorious. Any suggestions on studying these types of lower level concepts? learning/building with assembly?

altair_cepheus
Автор

Thanks for the AMAZING videos! It should be more viewed...

About the three-operand instruction, you could handle it with some extra parsing and just hide two actual instructions inside it, ofr example:

MOV $42, &R1, R2 ; could be translated to:

ADD $42, R1
MOV &ACC, R2

verbumtech
Автор

Oh, i finally made a basic ASM compiler, but, i will view this video

devhonking
Автор

Could you possibly increase the font size on the next video?

ibrahimfadel
Автор

I haven't finished the video, so I don't know if you did yet.

ceorecdeclec