ron minnich wrote:
So, this is an example of the reason for the (void *) param I was suggesting some time back. Such needs come up.
One option is to have a convention that globals are at the base of the stack, rounded to 64k.
e.g. %esp & 0xffff0000 is where globals live.
Let's just put the buffer to a well known address. We're trying to add a flexibility here that is just ballast.
The buffer might need to change its position, ie when we are going from CAR to real RAM. Who knows. But other than that...