org 0000h
main:
mov a,po; /get value from port and store in an accumulator
mov R1,a; /mov from acc to r1 reg
mov a,p1; /get another value from pi and store in an acc
add a,R1; /add acc and reg r1
mov p3,a; /move result to p3
end
("select inputs from the port window of the keil soft")
org 0000h main: mov a,po;
("select inputs from the port window of the keil soft")