I've been looking for matrix handling, in assembler for a 16F877 but found nothing simple to understand.
Could anyone point me in the right direction or just tell me what is the way to go? I am not asking for code (of course it would be good to have it ready) but for the idea to implement the conversion, back and forth, if necessary.
What I actually need is 8 "channels" with 16 ( 8 + 8 ) flags, each.
All what I found in PICLIST related bits handling seem to lead to a unnecessary complex solution.
This should do what you want. It uses indirect addressing to swap the bits around as you describe. This is 8*8 bits which is as you described it diagramatically.