Powering Up With New Instructions (16-Bit VM in JavaScript 006)

preview_player
Показать описание
In this episode we add new instructions and capabilities to the VM, including:

- More move instructions
- More arithmetic capabilities for doing math
- Binary logic instructions
- Branches

=[ ℹ 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 exend it to create a sort of fantasy console - an emulator for a machine that never existed

=[ 🔗 Links 🔗 ]=

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

Every time I come across one of your videos, I'd binge watch everything in the playlist. LOL I can't stop!

BryanChance
Автор

Loving every new bit of this series. Excuse the pun.

mladjo
Автор

5:56 Better late than never but multiplication actually does work the same for unsigned and two's complement signed integers, as long as you truncate the result to the same number of bits as the inputs. This is why, for example, the ARM mul instruction is used for both. This makes sense when you remember that multiplies basically dissolve into adds and left shifts in both software and hardware implementations, and neither of them care about signedness.

rolandzfolyfe
Автор

So happy when you upload a new video 🔥🔥🔥

jonathanbouchard
Автор

Ah XOR, you can make 𝐚𝐧 𝐞𝐧𝐜𝐫𝐲𝐩𝐭𝐢𝐨𝐧 out of this!

_yannis
Автор

6 days since upload, ofc youtube won't reccomend me this... Great vid tho

frankeke
Автор

hey there im interestet in ths theme and i find your stackmachine very ineresting. but now i have a question or request to you, can you make a tutorial for an register machine (my thinking gives me 4bit for opcode/4bit for adressingmode/and 4/8 bit for register/register adressing or 8bit literal, so the machine have 16 regs) is this architrcture makabe? if yes how if not how not?

so my request is a 16bit machine with 16 regs where the PC never increments by 1 or 3>... only 2 is alowed.
i have planed it out in varios versions but i always run in trobble... i hope you can help or make another series about register machines :/

hecatonecles
welcome to shbcf.ru