zola build
zola serve
gerrit0 / n2t-cpu Goto Github PK
View Code? Open in Web Editor NEWAn implementation of the nand2tetris CPU emulator
An implementation of the nand2tetris CPU emulator
When doing step X and an error is thrown, the UI is not updated to show the current state of the machine. It should be.
Currently when refreshing the page, step X is reset to 50 and step rate is set to 3.
These should be saved to localStorage so that user values are persisted.
I didn't want to implement this initially, as I wanted to be able to push code before the assignment was due, but this would be very useful. When loading an asm file, the program should include comments.
Both the RAM and the ROM tables need a way to jump to a specific point. It is rather painful to try to scroll to a specific address.
This should be pretty simple, prompt()
for input then set the scrollTop
of the relevant element.
Like #4, it is reasonable to want to step until a given memory address is accessed and/or modified.
The more I use this the more I realize I want shortcuts similar to other debuggers.
Shortcut | Command |
---|---|
F9 | Step |
F10 | Step X |
F11 | Step X (prompt for X) |
CTRL+G | Go to ROM address |
CTRL+H | Go to RAM address |
Blocked by #2
M=-M
should be displayed as M=-M
, not as M=~M
It would have come in handy when testing the s2020 program:
while (machine.ram[16383] !== 4242) machine.step()
// want to call refreshScreen + refreshGui here
It would be really nice to be able to step to a certain PC value without calculating how many instructions need to be run and entering that in the Step X box, which might be next to impossible in the first place with nested loops.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.