Interview Question
- 0of 0 votes
AnswersQuestion DETERMINE THE OUTPUT R1,R2,R3 ARE THREE REGISTERS
- anuj.iiit2007 May 12, 2012 in United States
START :POP R1
POP R2
COMPARE R2,0
JUMP_EQ DONE_Z
PUSH R2
PUSH R1
SUBTRATCT R2,1
PUSH R2
CALL START
POP R3
POP R1
POP R2
MULTIPLY R3,R2
JUMP DONE
DONE_Z:MOVE R3,1
DONE:PUSH R3
PUSH R1
RETURN| Report Duplicate | Flag | PURGE
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.