Read the port, shift right 2, and AND it with %00000111, so say port = 11110111, shift right 2 gives 00111101, logical AND it with %00000111 should give you value of %101.
Read the port, shift right 2, and AND it with %00000111, so say port = 11110111, shift right 2 gives 00111101, logical AND it with %00000111 should give you value of %101.
Bookmarks