??? 03/28/07 01:31 Read: times |
#135995 - Bit Masking Responding to: ???'s previous message |
Hi Irwan,
Independant of any instruction set, you can always do an XOR (eXclusive OR) of any byte of data (in this case the Accumulator) and 0xFF. This will produce the same result as CPL A (except in twice as many bytes and machine cycles, which is why it's better to use CPL with an 805x). If you haven't done so already, you should really look into bit masking. Using AND, OR and XOR to manipulate or test certain bits is a very handy technique to be familiar with. If you're not already familiar with bit masking, fire up www.ask.com (or whatever search engine you're partial to) and search for "bit masking." It will be well worth your time to read up on the subject. Joe |
Topic | Author | Date |
How come there isn't a NOT instruction ? | 01/01/70 00:00 | |
CPL? | 01/01/70 00:00 | |
hahaha | 01/01/70 00:00 | |
google? | 01/01/70 00:00 | |
the beauty of an index is ... | 01/01/70 00:00 | |
I did | 01/01/70 00:00 | |
NOT vs CPL | 01/01/70 00:00 | |
Complement | 01/01/70 00:00 | |
Sigh, you're right | 01/01/70 00:00 | |
Your the Best Carry Bit Ever!! (NM) | 01/01/70 00:00 | |
You can do | 01/01/70 00:00 | |
you want NOT? | 01/01/70 00:00 | |
why do you 'think' | 01/01/70 00:00 | |
well.. CPL works | 01/01/70 00:00 | |
Bit Masking | 01/01/70 00:00 | |
it is right there | 01/01/70 00:00 | |
I'll look into Bit masking![]() | 01/01/70 00:00 |