As you know I don't do C but think thats saying IF rb0 - rb3 are set to 1000 then do whatever follows.
So in assembly you just read that Port /Bits and compare it to 1000 using whatever methods you choose; a bit at a time or the whole nibble/byte .
If equal then do that function, if not skip/goto
As you know I don't do C but think thats saying IF rb0 - rb3 are set to 1000 then do whatever follows.
So in assembly you just read that Port /Bits and compare it to 1000 using whatever methods you choose; a bit at a time or the whole nibble/byte .
If equal then do that function, if not skip/goto
Have never done robots so cannot help you directly.
Not sure what your logic for those two lists are ? It all depend on the thickness of the line and how far the sensors are apart and how the robot approaches the line.
Perhaps have a search of the the forum including the Robotics section.
Have a look at his thread where I assisted with a bit of assembler code, its only a simple device but good practical experience. https://www.edaboard.com/threads/276222/