Page 387 Q.4 Marks: 25 (a) Two sensors are connected to a microprocessor through a peripheral circuit. The readings of t
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Page 387 Q.4 Marks: 25 (a) Two sensors are connected to a microprocessor through a peripheral circuit. The readings of t
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]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!