Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ * 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started