Professional Documents
Culture Documents
DISCUSSION
Step simulate the program above and observe the LED display.
Which LED lights up?
7
6
5
4
3
2
1
0
PA0
Remove PA0 and PA4 from the LED0 and LED4 display and swap the
ports assignment. LED0 assign with PA4 while LED4 assign with PA0.
Step simulate again and explain your observation.
LED0 with PA4 will be turn off & LED4 with PA0 will be turn on.
The output is started with port PA0.
Reset the LEDs with the proper port assignments. Change the
instruction at line 6 to:
MVI A,16.