Ben Eater's computer in Vue2. Works with node@v16.
For more information about the reference implementation of the computer, check out Ben Eater's homepage.
npm install
npm run dev
To run the test program, follow these steps:
- Uncheck the Enable astable generator flag in the Clock module;
- Click Reset to clear bus;
- Click Load program – wait until it finishes;
- Check back the Enable astable generator flag in the module;
The program will start counting down by 32 to 0 and back up.
A test program is available in the src/text.S
file.
Instruction addresses in the program are counted from 0. For example jmp 4
means jump to the position of the 5th instruction in the program.
ldbi 1 @ Load the value 1 into register b
ldai 12 @ Load the value 12 into register a
out @ Output the value in register a
sub @ Subtract the value in register b from register a
jz 1 @ Jump to the first instruction if zero flag is set
jmp 2 @ Jump to the second instruction
docker compose up
npm run build
Lint with ESLint
npm run lint