Question: Machine Code: I want to know how to construct a program that will read a set of switches contiously and send the data to the
Machine Code: I want to know how to construct a program that will read a set of switches contiously and send the data to the LEDs outputs (Out 1080, Out 1081, Out 1082, Out1083, In1080, In 1081, In 1082, In 1083.)
The starting program that needs to be modified is:
MOV AL,0FH
MOV DX,1080H
AGAIN: IN AL,DX
JMP AGAIN
Here is an example program that calls all the LEDs.

AGAIN: MOV AL,0FH DX, 1080H : 0 OUT1080 1 OUT1081 _2 OUT1082 _3 OUT1083 DX,1080H 4_IN1080 ;-5-1N1081 6_IN1082 ;-7-IN 1083 2 AGAIN AGAIN: MOV AL,0FH DX, 1080H : 0 OUT1080 1 OUT1081 _2 OUT1082 _3 OUT1083 DX,1080H 4_IN1080 ;-5-1N1081 6_IN1082 ;-7-IN 1083 2 AGAIN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
