??? 08/24/09 14:18 Modified: 08/24/09 14:53 Read: times |
#168516 - Not vast - actually quite small. Responding to: ???'s previous message |
Daniel Contarino said:
Hi Matthew,
Unfortunately, 8051 instrustion set is vast, but no such instruction. SETB, CLR, JBC, etc, work only with absolute bit addresses (or de carry bit in some cases). Daniel The instruction set is actually quite tiny. To try to keep many instructions 8-bit large, a few bits are used to select the instruction, to leave as many bits as possible to specify what the instruction should operate on. That is also a reason why an old-timer can learn to program a chip directly in machine code - much of the total combinations possible can be remembered using a few rules. The small instruction set can be seen as a limitation, but gives the advantage that most instructions are tiny, which is good for a chip designed when the code space (ROM, EPROM, ...) was very expensive. The tiny instructions makes it trivial to decode the instructions, which is another reason for the success of the 805x cores. It delivers a "you know what you get". On the other hand, the C compiler vendors have to invest much blood to get good code generation. Edit: Fixed spelling in subject line |
Topic | Author | Date |
Addressing bit memory indirectly | 01/01/70 00:00 | |
Not possible. | 01/01/70 00:00 | |
so why Bit addressable memory? | 01/01/70 00:00 | |
sure you can and THINK | 01/01/70 00:00 | |
Fast and saves code and RAM space | 01/01/70 00:00 | |
No such instruction... | 01/01/70 00:00 | |
Thanks so much | 01/01/70 00:00 | |
That's _too_ limited... | 01/01/70 00:00 | |
Not vast - actually quite small. | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
store bit address... | 01/01/70 00:00 | |
Thanks | 01/01/70 00:00 | |
if '2051' is the Atmel, then | 01/01/70 00:00 | |
"cable" only for the "S" | 01/01/70 00:00 | |
I second the motion and add | 01/01/70 00:00 | |
I have... | 01/01/70 00:00 | |
Smoking bad for the health | 01/01/70 00:00 | |
an issue many newbies are not aware of is ... | 01/01/70 00:00 | |
NXP??? | 01/01/70 00:00 | |
Design flaw? | 01/01/70 00:00 | |
a feature | 01/01/70 00:00 | |
cheap | 01/01/70 00:00 | |
Code: Addressing bit memory indirectly![]() | 01/01/70 00:00 |