Skip to content
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

Closed
nazimboudeffa opened this issue Jul 8, 2016 · 3 comments
Closed

Javascript AGC assembly code simulator #31

nazimboudeffa opened this issue Jul 8, 2016 · 3 comments

Comments

@nazimboudeffa
Copy link

nazimboudeffa commented Jul 8, 2016

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

@nazimboudeffa
Copy link
Author

nazimboudeffa commented Jul 8, 2016

this doc is clear on the subject, i should find others to start with the registers first
http://tcf.pages.tcnj.edu/files/2013/12/Apollo-Guidance-Computer-2009.pdf

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;
                }
          };

wronglemlanding

@nazimboudeffa
Copy link
Author

nazimboudeffa commented Jul 9, 2016

btw, i have found in this page the instruction set apollo assembly language manual

@ConnectedReasoning
Copy link

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
Projects
None yet
Development

No branches or pull requests

4 participants