I want to write assembly code for 8051
switch A is connected to P0.1
switch B is connected to P0.2
LED is connected to P1.0
IF both switches high then the LED is turn on otherwise turn off
switch A high then turn off LED
switch B high then turn of LED
both A B high then turn on LED
both A B low then turn off led
I want to write assembly program using AND logic statement
How to write statement for AND logic for switches
switch A is connected to P0.1
switch B is connected to P0.2
LED is connected to P1.0
IF both switches high then the LED is turn on otherwise turn off
switch A high then turn off LED
switch B high then turn of LED
both A B high then turn on LED
both A B low then turn off led
I want to write assembly program using AND logic statement
How to write statement for AND logic for switches