Part 1:
Write a program to continuously detect whether the addition of 2 numbers stored in memory locations MEM[30h] and MEM[38h] is greater than or equal to 100. The program should output the result of the addition on port0 and if the result is greater than or equal to 100 then turn off (clear) bit P1.0 otherwise turn on (set) P1.0
Part 2:
Write a program to calculate y where y = x2 + 3x + 2. Where x is between 0 and 9 and the look-up table for x2 is located at the ROM address (code space) of 200h. The value x is in memory location MEM[70h], and at the end of the program R2 should have y.
Write a program to continuously detect whether the addition of 2 numbers stored in memory locations MEM[30h] and MEM[38h] is greater than or equal to 100. The program should output the result of the addition on port0 and if the result is greater than or equal to 100 then turn off (clear) bit P1.0 otherwise turn on (set) P1.0
Part 2:
Write a program to calculate y where y = x2 + 3x + 2. Where x is between 0 and 9 and the look-up table for x2 is located at the ROM address (code space) of 200h. The value x is in memory location MEM[70h], and at the end of the program R2 should have y.