Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(2) consider the following instruction descritpions move R, Y assign Y to R add X, Y assigns to X the value X+)Y sub X, Y
(2) consider the following instruction descritpions move R, Y assign Y to R add X, Y assigns to X the value X+)Y sub X, Y assigns to X the value X-Y call X executes the instruction at value (address) X swap A, B interchange A with B The code fragment below show a metamorphic version of virus instructions move A, 25 add B, C add B, 30 add A,B swap A,B sub A,C sub A, 30 call A (a) Suppose at start A contains 500, B contains the value 1200 and C' contains the value 2000, determine the contents of the register after each instruction, if the final call is the call of the viral code, what address is the virus located at (b) simplify the code to remove the redundant instructions (simplest code to call the virus) (2) consider the following instruction descritpions move R, Y assign Y to R add X, Y assigns to X the value X+)Y sub X, Y assigns to X the value X-Y call X executes the instruction at value (address) X swap A, B interchange A with B The code fragment below show a metamorphic version of virus instructions move A, 25 add B, C add B, 30 add A,B swap A,B sub A,C sub A, 30 call A (a) Suppose at start A contains 500, B contains the value 1200 and C' contains the value 2000, determine the contents of the register after each instruction, if the final call is the call of the viral code, what address is the virus located at (b) simplify the code to remove the redundant instructions (simplest code to call the virus)
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