General You will create a small program in 8086 assembly language to simulate systems described further below. There wil
Posted: Mon Jun 06, 2022 12:20 pm
General You will create a small program in 8086 assembly language to simulate systems described further below. There will be a choice of two titles to be selected to simulate. Choose one of the proposed system titles. You will use i8086emu to simulate your system. Your system should provide all functions required as per description Your tasks are to: 2.1. Select input/output ports supposed to connect to external devices (traffic lights, motors. sensors, switches etc...). 2.2. Create the source code to operate the chosen system. 2.3. Ensure the system works by emulating its operation. Pedestrian Crossing Light 4.1. This system simulates a traffic light assisting pedestrian to cross a busy road. 4.2. There are two sets of traffic lights: one for motorists and one for pedestrian. 4.3. The motorists traffic light has three colour lights: red, yellow and green. Initially the light is green. 4.4. The pedestrian traffic light has two colour lights: red and green. Initially the light is red. 4.5. Initially the system waits for a button at the traffic light to be pressed. 4.6. A pedestrian who wants to cross the road, pushes the button. The motorist traffic light turns to yellow, then red. A few seconds later, the pedestrian traffic light turns to green. 4.7. After 20 seconds, the pedestrian traffic light turns back to red. After 5 seconds the motorists traffic light turns to green again. 4.8. The system returns to its initial state waiting for the button to be pressed again. Queue Calling System 5.1. This system simulates a queue system in a service counter, e.g. in a post office, a bank etc. 5.2. There is only one queue. This queue is managed by a counter display, with a 3-digit queue number ranging from 000 to 100 decimal. The number is displayed for customer view. 5.3. Initially the number is 000. There are 3 buttons for the queue: a new customer button, a recall button, and a reset button. 5.4. When the new customer button is pressed, the number displayed increments by one, and blinks three times. This indicate the next customer to approach the service counter to be served. 5.5. When the recall button is pressed, the displayed number blinks five times. This is to get attention of customer who missed the new customer call. 5.6. When the number displayed is 100 (maximum), pressing the new customer button will set the number displayed to 001 and blinks three times. 5.7. When the reset button is pressed, the counter will reset the number displayed to 000