/* * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * * The Initial Developer of this code is David Baum. * Portions created by David Baum are Copyright (C) 1998 David Baum. * All Rights Reserved. * * Portions created by John Hansen are Copyright (C) 2005 John Hansen. * All Rights Reserved. * */ #include "RCX_Target.h" #include "RCX_Constants.h" static const class RCX_Target sTargets[] = { { kRCX_RCXTarget, "RCX", "__RCX", "1", { 0, 10, 0, 8, 0, 0, 0, 0 }, 32, 0, false, false, false, true, false, false }, { kRCX_CMTarget, "CyberMaster", "__CM", "1", { 0, 4, 0, 4, 0, 0, 0, 0 }, 32, 0, false, false, false, true, false, false }, { kRCX_ScoutTarget, "Scout", "__SCOUT", "1", { 0, 6, 0, 3, 0, 0, 0, 0 }, 10, 8, true, true, false, true, false, false }, { kRCX_RCX2Target, "RCX2", "__RCX", "2", { 0, 10, 0, 8, 0, 0, 0, 0 }, 32, 16, true, true, true, false, false, false }, { kRCX_SpyboticsTarget, "Spybotics", "__SPY", "1", { 8, 8, 128, 32, 64, 16, 8, 8 }, 32, 4, true, true, true, false, true, false }, { kRCX_SwanTarget, "Swan", "__SWAN", "1", { 0, 10, 0, 8, 0, 0, 0, 0 }, 256, 0, true, true, true, false, true, true }, }; const RCX_Target *getTarget(RCX_TargetType type) { // don't assume order of array matches types for(unsigned i=0; i= kRCX_ChunkTypeCount) return 0; return fRanges[type].fBase + fRanges[type].fCount; }