News:

Let's find out together what makes a PIC Tick!

Main Menu

Float Lookup table

Started by shantanu@india, Today at 10:30 AM

Previous topic - Next topic

shantanu@india

Hi ,
Suppose I have two tables...one for byte variables & another for float variables. I use "RecordPointer" byte to push & pop data from the table:
Dim  FloatTable[8]  as Float
Dim  ByteTable[8]   as Byte
Dim  RecordPointer  as Byte

Does FloatTable[RecordPointer] automatically point to the (RecordPointer+4) position of the FloatTable ? Or to get the first float value I have to use FloatTable[0] & to get the secondfloat value I have to use FloatTable[4]?
 
A small confusion!!

Regards
Shantanu