Question: / * op shl: set * to * AA shifted by * CNT position to the left, and set the flags of CPU STZTE accordingly.
op shl: set to AA shifted by CNT position to the left, and set the flags
of CPU STZTE accordingly. CNT is a lbyte unsigned integer.
RESTRICTIONS: You are allowed to use uint t and uint t as types.
No other type is allowed. No call to external functions.
tARNING: Do NOT modify CNT Make a local copY. If you modify CNT the
tester will fail with a strange behavior.
FLIAGS:
OF: Becomes if the two most significant bits of the starting value
of were different, otherwise.
ZF: if the final value of A is zero, otherwise.
SF: if the final value of A is negative, otherwise.
void opshl cpustatet cpustate, uintt size, uintt cnt uintt a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
