In a gaming arena, the manager decides to launch a pinball game. The hardware of the game consists of two mechanical arms attached with two full drive stepper motors (SM1 and SM2). Moreover, the hardware of the game also consists of two negative logic push buttons (B1 and B2) to control the stepper motors. Considering the game requirement, the hardware must work as per the following conditions:
1. As the push button B1 is pressed, stepper motor SM1 must four complete rotations in clockwise direction and return to initial location whenever the button is released.
2. As the push button B2 is pressed, stepper motor SM2 must take four complete rotations in anti-clockwise direction and return to initial location whenever the button is released.
3. The stepper motor must retain its position until the button is pressed.
4. The push buttons B1 and B2 are attached at PC0 and PC1 of the 8255 PPI respectively.
5. The four-pole stepper motor SM1 is attached at PB0 to PB3 of the 8255 PPI.
6. The four-pole stepper motor SM2 is attached at PA4 to PA7 of the 8255 PPI.
7. 8255 PPI is interfaced at 0B0H.
Now being a design engineer, you are hired to design the circuit of game using 8088 microprocessor. You are also required to provide an assembly language code and labelled schematic diagram as per the forementioned instructions