Modification of assembly language: use 74LS244 as the input port, read the switch state, display this state through 74LS273, and drive the LED again.

From the software point of view, reading 244 to AL is already eight binary bits. Writing a byte should also correspond to eight binary bits, and eight lights should also be controlled.

If you plan to have a port and a light,

Then you need to design eight ports to read and write eight times.