Localization2.asm

This is localization code WITH ability to get orientation.
The code itself is finished, however it gives me errors when compiling
because there appears to not be enough memory.
Any help would be appreciated.