Question: A table showing the assembly language for a general purpose processor is shown at the end of this question. For each instruction, the operation is

A table showing the assembly language for a general purpose processor is shown at the end of this question. For
each instruction, the operation is specified and the flags that are affected by the instruction are listed. You can
determine when an instruction will set or clear a particular flag based on your knowledge of the meaning of the
flag and the operation being performed. For example, after an addition the carry flag would indicate whether
there was a carry out of the most significant byte.
Assume that before the instruction ADDR2,R0 is executed, the flags are C=0,Z=0 and N=1 and the Registers have
the values R0=5616,R1=5f16R2=0c16 and R3=4216. If the input to the processor is 5f16, what are the values of the
flags after the instruction executes?
C=
A
Z=
A
N=
Assembly Table
Assembly Instruction Format
ADD Rd,Rs
SUB Rd,Input
SUB Rd,Rs
BZC ADDR
BZS ADDR
BNC ADDR
BNS ADDR
BCC ADDR
BCS ADDR
JMP ADDR
Effect on Flags
RdRd+Rs,Z,N,C
Rd Rd-Rs , Z,N,C
Rd Rd-Rs Z,N,C
Branch if Z clear None
Branch if Z set None
Branch if N clear None
Branch if N set None
Branch if C clear None
Branch if C set None
Jump to ADDR None
 A table showing the assembly language for a general purpose processor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!