This could be confusing since o2 uses the @ operator as codeptr or 'address of'
GLOBAL Sgp1 AS DWORD PTR
' and later use the pointer
Sgp1 = CODEPTR(somelabel)
LOCAL Amm AS LONG
Amm = @Sgp1[Amm]
sys Sgp1
Sgp1 =@somelabel
dim Amm AS LONG
amm=1
Amm = *(Sgp1+Amm)
print hex Amm 'result: 302
end
somelabel:
db 01 02 03 00 00