tested ported ramtron code