![]() MOV DPTR,#0040 Put off-chip address to be indirectly.MOVX Put off-chip address to be indirectly.MOV R0,#40 Put off-chip address to be indirectly.MOV R0,#40 Put on-chip address to be indirectly. ![]() In the 8051 this is achieved by the following instructions The use and, more appropriately, the abuse of this language feature is largely why C is condemned by some as dangerous! Pointers In Assemblerįor an assembler programmer the C pointer equates closely to indirect addressing. One of C's greatest strengths can also be its greatest weakness - the pointer. ![]() Using Pointers, Arrays, Structures and Unions in 8051 C Compilersīy Olaf Pfieffer, based on the C51 Primer by Mike Beach, Hitex UKĪlthough both the Keil and Raisonance 8051 C compiler systems allow you to use pointers, arrays, structures and unions as in any PC-based C dialect, there are several important extensions allowing to generate more efficient code.
0 Comments
Leave a Reply. |