Skip to content

Evan Carlstrom - Computer Architecture#204

Open
ecarlstrom wants to merge 18 commits into
bloominstituteoftechnology:masterfrom
ecarlstrom:master
Open

Evan Carlstrom - Computer Architecture#204
ecarlstrom wants to merge 18 commits into
bloominstituteoftechnology:masterfrom
ecarlstrom:master

Conversation

@ecarlstrom
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@codejoncode codejoncode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't needed today but maybe needed down the road add a flag to your cpu struct unsigned char FL;

…te both being within cpu_load(), placed them outside where they are supposed to be. Program now outputs normally.
…change a couple other files to accommodate command line arguments and then check to see if files are handled correctly.
Copy link
Copy Markdown

@codejoncode codejoncode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Evan looks good only one issue for your ls8.c main function let's add a condition in because now your program depend on a file name as an argument.

if (argc != 2) {
    fprintf(stderr, "usage: ls8 file.ls8\n");
    return 1;
  }

Copy link
Copy Markdown

@codejoncode codejoncode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To stay consistent maybe a good idea to have your PUSH and POP in the cpu.h file

#define PUSH 0b01000101
#define POP  0b01000110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants