Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/25/02 14:16
Read: times


 
#31405 - RE: Difference?
Acc can be treated as a normal one-byte register (a single unit of 8 bits) or as a bit-addressible SFR (Special Function Register)... that means you can also operate with individual bits of the Accumulator

So if you wanna move a byte of data into A , you can use "mov A, Rn". If you want to check or manipulate each bit in A, you would write "setb ACC.0" or "jb ACC.0" etc.

The difference in "mov A, Rn" and "mov ACC, Rn" is only at the Assembler level. There should be no difference in the generated hex code ("SHOULD" being the operative word!)

kundi

List of 11 messages in thread
TopicAuthorDate
Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      
RE: Difference?            01/01/70 00:00      

Back to Subject List