Initial stab at implementing some new memory funcs

Borrowed from JPCSP, kept simple.  Got some information about how a game (Sword Art Online) was calling this and seemed to line up roughly with JPCSP's implementation.

I figure something for a memory alloc func is better than random return values.  But will need to figure out some tests.

Early suspicion: could be some sort of TLS for a newer version of an FPL?  Since they are in theadman...

-[Unknown]