Displaying and storing memory addresses

BlitzMax Forums/BlitzMax Programming/Displaying and storing memory addresses

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Is this what you want?

Strict
Graphics 640,480,0
Local X:Int=5
Local pX: Int Ptr = Varptr(x)
Local addresses: Int Ptr[2]
addresses[0]=px

While Not AppTerminate()
	DrawText "Hex="+Hex(Int(addresses[0]))+" value="+ addresses[0][0],0,0
	Flip
Wend


Doug Stastny