fixed memset/memcpy, inlined procedures for all typed memory regions, crazy implmentation