Guys, I made this code in asm for a PIC 16F877 that decreases Value (high and low) to 0x00 and increases to 0x64. Does anyone see something wrong with this code, or do you think it could be improved?
I'm not familiar with PIC and the ASM instructions.
But usually one starts with the LOW byte ... and in case of Carry one processes the HIGH byte.
With your solution it seems to be the other way around. Don't know if it's right or wrong.
Don't know what you do with the values 0b00000000, 0b00000011, 0b11101000 .... they don't match your text.
What about drawing a flow chart?
What about running a real world test or simulation?