&?

Yesterday I played around with using & to get the address of a variable. In assembler.logo there is a function called get-adr that is called when you do & on a variable.

However, the VM got stuck in an infinite loop when doing this super simple test:

vmthread  MAIN
{
	DATA32 MyVar
	DATA32 MyAddress
	MOVE32_32( &MyVar, MyAdress )
}

So I looked at all the existing LMS files that shipped with the LMS2012 and none of them used the & operator. I’ve done some simple tests to just look at the compiled RBF file when doing & and see if I get any wiser. After that I’ll look into @ and see if that is anything I could use.

Leave a Reply