Well, of course you can use the memory commands to "simulate" it (it's the real deal, of course, but the syntax will be more messy, hence the quotation marks).
I'd really reccommend IanM's memory plugin, as it allows for peeking / poking other types than longwords as well.
You can't just get a reference to a variable's memory location though; you'll have to use raw pointers, which is obviously a downside.
myIntPtr1 as dword
myIntPtr2 as dword
myIntPtr1 = alloc(4) // Allocate memory to store an integer
poke integer myIntPtr1, 50 // Set value
myIntPtr2 = alloc(4)
poke integer myIntPtr2, 9
// Retrieve the stored values
print "First integer: "; getInt(myIntPtr1)
print "Second integer: "; getInt(myIntPtr2)
// Free the memory once done. Don't forget this ;)
free myIntPtr1
free myIntPtr2
wait key
end
// Retrieves the value of a single integer pointer
function getInt(ptr as dword)
i = peek integer(ptr)
endfunction i