#### Description of this paper

##### WEEK 5 - ECET-330: iLab 5

**Description**

solution

**Question**

III. Procedures;1. Study the steps in the program shown in example above and predict the return value in variable z. The program simply implements the algorithm for the formula z = (2w+3)/4.;A. Edit, assemble, and run the program shown in the example above on the Tower. Check the value that it produces in z on your calculator.;B. Cut and paste memory to show the value of z.;C. Cut and paste the Register window to show the remainder.;2. Write a main program to call a procedure that converts the Fahrenheit temperature value stored in the location labeled TdegF to its Celsius equivalent. The range of temperatures is 32 ? F to 212 ? F. The procedure stores the converted temperature in location TdegC.;The following is the algorithm for temperature conversion;- Subtract 32 from Fahrenheit temperature;- Multiply the result of subtraction by five, and;- 00000000Divide the result of multiplication by nine.;A. Cut and paste the source code.;B. Test your program for three different values and show the result of each one by dumping memory.;3. Edit, assemble, and run the program shown in Example 2 above on the Tower.;A. Check the code for the value, $73. Cut and paste the memory to show the number of zeros for this value.;B. Check the code for the value, $88. Cut and paste the memory to show the number of zeros for this value.;3. Even parity is where there is an even number of 1s in a string of data bits. Write a program to check the value loaded into Accumulator B and determine the state of the extra bit that would need to be added to the string in B in order to make all nine-bits have EVEN parity. Store that ninth (parity) bit as the MSB of Accumulator A and exit.;Example: If the value of B is 00111010, the number of ones in this pattern is four. This number is already even. Therefore, the extra bit is zero.;Example: If the value of B is 00101100, the number of ones in this pattern is three. This number is odd. Therefore, the extra bit is 1. The total number of ones, including the extra bit, becomes even.;A. Cut and paste the source code.;B. Test the code with the two values, 00111010 and 00101100. Cut and paste the Register window for each case to show the value of the extra bit in Register A.

Paper#65979 | Written in 18-Jul-2015

Price :*$27*