Skip to content

Computer-Architecture-Sumi👩‍💻#210

Open
sumi419 wants to merge 9 commits into
bloominstituteoftechnology:masterfrom
sumi419:master
Open

Computer-Architecture-Sumi👩‍💻#210
sumi419 wants to merge 9 commits into
bloominstituteoftechnology:masterfrom
sumi419:master

Conversation

@sumi419
Copy link
Copy Markdown

@sumi419 sumi419 commented Mar 4, 2019

No description provided.

Comment thread ls8/cpu.c Outdated
//reading from the bitwise right shift will give you the number of operands:
unsigned char operandA = 0;
unsigned char operandB = 0;
unsigned int numOp = IR >> 6;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Awesome job with this! 🎉

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Now you just need to make use of this variable.

Comment thread ls8/cpu.c Outdated
running = 0;
break;
default:
printf("Error");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You might want to make this more verbose and include the operation code and the program counter so you can debug better.

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