From: d83@ath.forthnet.gr (Don Schullian)
Subject: CODEPTR32
Hi,
I came across an idea today and thought that it could be useful in certain
instances!
DIM Data_PTR AS BYTE PTR
Data_PTR = CODEPTR32( "MyData" )
Last% = @Data_PTR
FOR Idx% = 1 TO Last%
X? = @Data_PTR[Idx%]
NEXT
END
MyData:
$INLINE 5, 1, 2, 3, 4, 5
Now, the question is....
If, instead of using $INLINE I use DATA, the pointer doesn't seem to point to
the data itself. Where _IS_ it pointing?
TIA,
____ _ ____ ____ _____
| _ \ / \ / ___) __ | ___)(_ _)
| |_) / _ \ \____\/ \| _) | |
|____//_/ \_\(____/\__/|_| |_|
Reply to: d83@ath.forthnet.gr
www.basicguru.com/schullian
*** QwkNews (tm) v2.1
* [TN71] alt.lang.powerbasic POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)
|