reimplemented base.c since robotc has no pointers

*facepalm*