Pointers just clicked

1 month ago 38

Not sure why it took this long, I always thought I understood them, but today I really did.

Turns out pointers are just a fancy way to indirectly access memory. I've been using indirect memory access in PIC assembly for a long time, but I never realized that's exactly what a pointer is. For a while something about pointers was bothering me, and today I got it.

Everything makes so much sense now. No wonder Assembly was way easier than C.

The file select register (FSR) is written with the address of the desired memory operand, after which

The indirect file register (INDF) becomes an alias) for the operand pointed to) by the FSR.

Source

submitted by /u/Popular-Power-6973 to r/C_Programming
[link] [comments]
Read Entire Article