-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript AGC assembly code simulator #31
Labels
Comments
this doc is clear on the subject, i should find others to start with the registers first we should start with this piece of code to define registers // Allowed registers: A, B, C, D, SP
var parseRegister = function (input) {
input = input.toUpperCase();
if (input === 'A') {
return 0;
} else if (input === 'B') {
return 1;
} else if (input === 'C') {
return 2;
} else if (input === 'D') {
return 3;
} else if (input === 'SP') {
return 4;
} else {
return undefined;
}
}; |
btw, i have found in this page the instruction set apollo assembly language manual |
runs pretty slow. About 2 seconds per letter to write hello world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that there is a simulator available, i have just tested it locally, perhaps it could do the job
https://github.com/Schweigi/assembler-simulator
if someone can start to code it it will be really appreciated
The text was updated successfully, but these errors were encountered: