PIC16f877A byte reverse

Thread Starter

simo_x

Joined Dec 23, 2010
200
Hi all, I have to reverse a byte with a PIC16F877A in Assmbly code.
I tried to implement a function by shifting to left te W register, tried with a function with 256 retlw but it also did not work due to stack overflow..

Do you know or do you have an algorithm for this purpose?
Thank you for your help
 
Last edited:

t06afre

Joined May 11, 2009
5,934
Hi all, I have to reverse a byte with a PIC16F877A.
I tried to implement a function by shifting to left te W register, tried with a function with 256 retlw but it also did not work due to stack overflow..

Do you know or do you have an algorithm for this purpose?
Thank you for your help
It would be nice to have some idea of which programming language you use. And what you have done so far.
 

Thread Starter

simo_x

Joined Dec 23, 2010
200
I am sorry. I understand your correctly answer. I have edited the post later.. I work with Assembly Language in MPLAB.
Later I will post my wrong code, I can't post it now due to it's on Windows in VBox, just turned it off and I have to turn off the laptop. :(
 
Top