Skip to content

Pointer and Index

Kannagi edited this page Oct 16, 2024 · 5 revisions

A pointer is defined with @

To get the address of a variable or label then you must use $ (and # for the high value).

The indexes are like this: [0x1000,idx,uint16,shift]
(only the first is mandatory the rest depends on the implementation of the target platform).

The calculation for the index in C would give this:

uint16 *array = 0x1000;
array[idx<<shift];
Clone this wiki locally