Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~360 People Reached
Favorite Forums
Favorite Tags
Member Avatar for sciconf
Member Avatar for lcfoo
0
163
Member Avatar for sciconf

How to extract the opcode and the data form the instruction? "instruction" is inst below in decimal. For some values of "??", I should be able to extract the opCode and data??? opCode = inst >>??; data = inst & ??; It is done on a x86 processor using C. …

Member Avatar for Salem
0
115
Member Avatar for sciconf

Hi I am doing a project of simulating a CPU using my pc and Turbo C. I have, void execInst(int inst) { int opCode; int operand; opCode = inst >> 8; operand = inst & 0xff; switch (opCode) { // default: Handle illegal instruction here. case LDA: Cpu.a = operand; …

Member Avatar for Evenbit
0
81