Chapter 5: Problem 22
Assume that the variables \(a\) and \(b\) are stored in memory locations 300 and 301 , respectively. Also assume that the three integer values \(+1\), \(-1\), and 0 are stored in memory locations 400 , 401 , and 402 , respectively. Finally, assume that the code sequence you are writing begins in memory location 50 . Using any of the machine language instructions shown in Section 5.2.4, translate the following algorithmic operations into their machine language equivalents. a. Set \(a\) to the value of \(a+b-1\) b. if \(a>0\) Set \(b\) to the value \(+1\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.