Hi, I would like to get some help on a simple program. I wanted to compare the most significant nibble from P2(so P2.4 to P2.7) with a number using CJNE, but I don't know how to select that number from the nibble to introduce it in the CJNE
But "mask with" isn't really "the full answer". It most definitely takes a visit to the processor instruction set documentation to get a usable solution.
The important thing is that there are normally many different ways something can be solved. Solving and handing in one specific solution would not make a student see/realize other choices.