Page 387 Q.4 Marks: 25 (a) Two sensors are connected to a microprocessor through a peripheral circuit. The readings of t
Posted: Fri Apr 29, 2022 8:36 am
Page 387 Q.4 Marks: 25 (a) Two sensors are connected to a microprocessor through a peripheral circuit. The readings of these two sensors are stored in two arrays (sensor_1. sensor_2). Which are given by: sensor_1 = OxA3, 0x22, 0xF1, 0x40, OxEE, Ox54, 0x33, 0x11 sonsor_2- 0x35, 0x25, 0x81, 0x96, 0x1E, 0x52, 0x44,0x66 The size of each reading is 2 byes. Construct an assembly program for Pentium processor using in-line assembly in MS Visual C++, that will compare the corresponding sensor reading and store the maximum result in a new array called MAX. (15 marks]