??? 12/21/04 22:55 Read: times |
#83591 - easy question: CLR A vs. CLR ACC |
So I was debugging a short program I'd written and I was having some weird problems. Working through it with a debugger showed me that CLR A and CLR ACC were not equivalent (which I did not expect).
I'm working with the AS31 compiler. Here's how the commands act in the simulator (the one from http://www.vaultbbs.com/sim8052/ ) CLR ACC ;seems to clear only A.0 bit CLR A ;seems to clear all Acc bits CLR B ;seems to clear only B.0 bit ???? ;can I use CLR to clear all B bits or ;do I have to use mov B, #0 Can someone explain this to me? Because it just seems weird, and I didn't see any references in the tutorial or the 8052 instruction list pages. Thanks! -Sam |
Topic | Author | Date |
easy question: CLR A vs. CLR ACC | 01/01/70 00:00 | |
A & ACC | 01/01/70 00:00 | |
Clearly 3 instructions only... | 01/01/70 00:00 | |
Notes | 01/01/70 00:00 | |
Got it!![]() | 01/01/70 00:00 |