コード例 #1
0
ファイル: AccelEditor.cpp プロジェクト: mleo2003/vba-rr
void AccelEditor::OnReset()
{
	m_mgr.Default(); /// FIXME accelerator reset NYI
	systemMessage(
	    0,
	    "The \"Reset All Accelerators\" feature is currently unimplemented.\nYou can achieve the same result by closing VBA, opening up your \"vba.ini\" file, deleting the line that starts with \"keyboard\", then reopening VBA.");
	InitCommands(); // update the listboxes.
}
コード例 #2
0
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
CGatewayEpos2ToMaxonSerialV1::CGatewayEpos2ToMaxonSerialV1()
{
    m_pCommand_ProcessProtocol = NULL;
    m_pCommand_SendFrame = NULL;
	m_pCommand_AbortProtocol = NULL;

    InitCommands();
    InitErrorHandling();
}
コード例 #3
0
CCommandSetLayerSettingServices_DCS_Esam::CCommandSetLayerSettingServices_DCS_Esam()
{
    m_strCommandSetName = COMMAND_SET_LAYER_SETTING_SERVICES;

    m_pCommand_ReadLSSFrame = NULL;
    m_pCommand_SendLSSFrame = NULL;

    InitCommands();
}
コード例 #4
0
CCommandSetGeneralGateway_DCS_Epos2::CCommandSetGeneralGateway_DCS_Epos2()
{
    m_strCommandSetName = COMMAND_SET_GENERAL_GATEWAY;

    m_pCommand_RequestCANFrame = NULL;
    m_pCommand_SendCANFrame = NULL;
    m_pCommand_ReadCANFrame = NULL;

    InitCommands();
}
コード例 #5
0
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
CProtocolStack_MaxonSerialV1::CProtocolStack_MaxonSerialV1()
{
    m_strProtocolStackName = PROTOCOL_MAXON_SERIAL_V1;

    m_pCommand_ProcessProtocol = 0;
    m_pCommand_SendFrame = 0;
	m_pCommand_AbortProtocol = 0;

    m_pJournalManager = 0;
    InitCommands();
    InitErrorHandling();
    CreatePlugInManager();
}
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
CCommandSetInputsPositionMarker_VCS_Drive2::CCommandSetInputsPositionMarker_VCS_Drive2()
{
    m_strCommandSetName = COMMAND_SET_INPUTS_POSITION_MARKER;

    m_pCommand_SetPositionMarkerParameter = NULL;
    m_pCommand_GetPositionMarkerParameter = NULL;
    m_pCommand_ActivatePositionMarker = NULL;
    m_pCommand_DeactivatePositionMarker = NULL;
    m_pCommand_ReadPositionMarkerCounter = NULL;
    m_pCommand_ReadPositionMarkerCapturedPosition = NULL;
    m_pCommand_ResetPositionMarkerCounter = NULL;

    InitCommands();
}
コード例 #7
0
CProtocolStack_InfoteamSerial::CProtocolStack_InfoteamSerial()
{
    m_strProtocolStackName = PROTOCOL_INFOTEAM_SERIAL;

    m_pCommand_ProcessProtocol = 0;
    m_pCommand_ProcessProtocolMaxon = 0;
	m_pCommand_AbortProtocolMaxon = 0;
    m_pCommand_SendChunk = 0;
    m_pCommand_ReceiveData = 0;

    m_pJournalManager = 0;
    InitCommands();
    InitErrorHandling();
    CreatePlugInManager();
}
コード例 #8
0
ファイル: AccelEditor.cpp プロジェクト: mleo2003/vba-rr
BOOL AccelEditor::OnInitDialog()
{
	CDialog::OnInitDialog();

	DIALOG_SIZER_START(sz)
	DIALOG_SIZER_ENTRY(ID_OK, DS_MoveX)
	DIALOG_SIZER_ENTRY(ID_CANCEL, DS_MoveX)
	DIALOG_SIZER_ENTRY(IDC_ACCELEDIT_APPLY, DS_MoveX)
	DIALOG_SIZER_ENTRY(IDC_ASSIGN, DS_MoveX)
	DIALOG_SIZER_ENTRY(IDC_REMOVE, DS_MoveX)
	DIALOG_SIZER_ENTRY(IDC_ACCELEDIT_REPLACE, DS_MoveX)
	DIALOG_SIZER_ENTRY(IDC_COMMANDS, DS_SizeX | DS_SizeY)
	DIALOG_SIZER_ENTRY(IDC_CURRENTS, DS_MoveX | DS_SizeY)
	DIALOG_SIZER_ENTRY(IDC_EDIT_KEY, DS_MoveX | DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_EDIT_KEY, DS_MoveX | DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_STATIC2, DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_STATIC3, DS_MoveX | DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_STATIC4, DS_MoveX | DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_STATIC5, DS_MoveX | DS_MoveY)
	DIALOG_SIZER_ENTRY(IDC_ACCELEDIT_AUTOTIMEOUT, DS_SizeX | DS_MoveY)
	DIALOG_SIZER_END()
	SetData(sz,
	        TRUE,
	        HKEY_CURRENT_USER,
	        "Software\\Emulators\\VisualBoyAdvance\\Viewer\\AccelEditor",
	        NULL);

	if (m_pExtMgr)
		m_result = m_mgr = *m_pExtMgr;

	m_currents.SetExtendedStyle(LVS_EX_FULLROWSELECT);
	m_currents.InsertColumn(0, "Keys");
	m_currents.SetColumnWidth(0, LVSCW_AUTOSIZE_USEHEADER);
	InitCommands();
	m_autoMode	   = AUTO_REPLACE;
	m_modified	   = FALSE;
	m_timeoutValue = 1000;
	CString timeoutStr;
	timeoutStr.Format("%d", m_timeoutValue);
	m_timeout.SetWindowText(timeoutStr);
	m_progress.SetPos(0);

	GetDlgItem(IDC_ACCELEDIT_APPLY)->EnableWindow(FALSE);
	return TRUE; // return TRUE unless you set the focus to a control
	             // EXCEPTION: OCX Property Pages should return FALSE
}
コード例 #9
0
ファイル: Commands.c プロジェクト: mhanlon/xlogo
const unichar *CommandName(long command)
{
	Command	*p;

	p = g_commands;
	if(!p)
	{
		InitCommands();
		p = g_commands;
	}
	while(p->name)
	{
		if(command == p->commandNumber)
		{
			return(p->name);
		}
		p++;
	}
	return(NULL);
}
コード例 #10
0
ファイル: sp_main.cpp プロジェクト: MrMalina/Source.Python
//-----------------------------------------------------------------------------
// Purpose: called when the plugin is loaded, load the interface we need from the engine
//-----------------------------------------------------------------------------
bool CSourcePython::Load(	CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory )
{
	// This seems to be new with
#ifdef ENGINE_CSGO
	ConnectInterfaces(&interfaceFactory, 1);
#else
	ConnectTier1Libraries( &interfaceFactory, 1 );
	ConnectTier2Libraries( &interfaceFactory, 2 );
#endif

	// Get all engine interfaces.
	if( !GetInterfaces(gEngineInterfaces, interfaceFactory) ) {
		return false;
	}

	// Get all game interfaces.
	if( !GetInterfaces(gGameInterfaces, gameServerFactory) ) {
		return false;
	}

	gpGlobals = playerinfomanager->GetGlobalVars();

	MathLib_Init( 2.2f, 2.2f, 0.0f, 2.0f );
	InitCommands();

	// Initialize game paths.
	if( !g_GamePaths.Initialize() ) {
		DevMsg(0, "Could not initialize game paths.");
		return false;
	}

	// Initialize python
	if( !g_PythonManager.Initialize() ) {
		DevMsg(0, "Could not initialize python.");
		return false;
	}

	return true;
}
コード例 #11
0
//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
CGatewayCANopenToEpos::CGatewayCANopenToEpos():
	k_MaxRS232DataSize(7)
{
    m_pCommand_WriteObject = NULL;
	m_pCommand_InitiateSegmentedWrite = NULL;
	m_pCommand_SegmentedWrite = NULL;
	m_pCommand_ReadObject = NULL;
	m_pCommand_InitiateSegmentedRead = NULL;
	m_pCommand_SegmentedRead = NULL;
	m_pCommand_AbortSegmentedTransfer = NULL;
	m_pCommand_SendNMTService = NULL;
	m_pCommand_RequestCANFrame = NULL;
	m_pCommand_SendCANFrame = NULL;

	m_pBufferedData = NULL;
	m_dBufferedDataSize = 0;
	m_dBufferedDataRead = 0;
	m_oNoMoreSegments = FALSE;
	m_oToggle = FALSE;
	m_WriteSegmentSize = 0;
	ResetBufferedData();

	InitCommands();
}
コード例 #12
0
ファイル: Commands.c プロジェクト: mhanlon/xlogo
long LookupCommand(const unichar *aCommand, unsigned long length, const unsigned char **p_template)
{
	Command	*p;

	p = g_commands;
	if(!p)
	{
		InitCommands();
		p = g_commands;
	}
	while(p->name)
	{
		if(unimatchin(p->name, aCommand, length))
		{
			break;
		}
		p++;
	}
	if(p_template)
	{
		*p_template = p->matchTemplate;
	}
	return(p->commandNumber);
}
コード例 #13
0
void AccelEditor::OnReset()
{
  mgr.Default();
  InitCommands(); // update the listboxes.
}
コード例 #14
0
ファイル: sp_main.cpp プロジェクト: Doldol/Source.Python
//-----------------------------------------------------------------------------
// Purpose: called when the plugin is loaded, load the interface we need from the engine
//-----------------------------------------------------------------------------
bool CSourcePython::Load(	CreateInterfaceFn interfaceFactory, CreateInterfaceFn gameServerFactory )
{
	// This seems to be new with
#ifdef ENGINE_CSGO
	DevMsg(1, MSG_PREFIX "Connecting interfaces...\n");
	ConnectInterfaces(&interfaceFactory, 1);
#else
	DevMsg(1, MSG_PREFIX "Connecting tier1 libraries...\n");
	ConnectTier1Libraries( &interfaceFactory, 1 );

	DevMsg(1, MSG_PREFIX "Connecting tier2 libraries...\n");
	ConnectTier2Libraries( &interfaceFactory, 2 );
#endif

	// Get all engine interfaces.
	DevMsg(1, MSG_PREFIX "Retrieving engine interfaces...\n");
	if( !GetInterfaces(gEngineInterfaces, interfaceFactory) ) {
		return false;
	}

	// Get all game interfaces.
	DevMsg(1, MSG_PREFIX "Retrieving game interfaces...\n");
	if( !GetInterfaces(gGameInterfaces, gameServerFactory) ) {
		return false;
	}
	
	DevMsg(1, MSG_PREFIX "Retrieving global variables...\n");
	gpGlobals = playerinfomanager->GetGlobalVars();
	if (!gpGlobals) {
		Msg(MSG_PREFIX "Could retrieve global variables.\n");
		return false;
	}
	
	DevMsg(1, MSG_PREFIX "Initializing mathlib...\n");
	MathLib_Init( 2.2f, 2.2f, 0.0f, 2.0f );

	DevMsg(1, MSG_PREFIX "Initializing server and say commands...\n");
	InitCommands();

	// Initialize python
	DevMsg(1, MSG_PREFIX "Initializing python...\n");
	if( !g_PythonManager.Initialize() ) {
		Msg(MSG_PREFIX "Could not initialize python.\n");
		return false;
	}

	// TODO: Don't hardcode the 64 bytes offset
#ifdef ENGINE_LEFT4DEAD2
	#define CACHE_NOTIFY_OFFSET 68
#else
	#define CACHE_NOTIFY_OFFSET 64
#endif

	DevMsg(1, MSG_PREFIX "Retrieving the current cache notifier...\n");
	m_pOldMDLCacheNotifier = *(IMDLCacheNotify **)(((unsigned long) modelcache) + CACHE_NOTIFY_OFFSET);

	DevMsg(1, MSG_PREFIX "Setting the new cache notifier...\n");
	modelcache->SetCacheNotify(this);
	
	Msg(MSG_PREFIX "Loaded successfully.\n");
	return true;
}
コード例 #15
0
ファイル: task_shell.c プロジェクト: nustpq/uif_host_os_v2
/*
*********************************************************************************************************
*                                    App_TaskGenieShell()
*
* Description : Realize a command shell interface on Debug_UART for real time debug purpose.
*
* Argument(s) : p_arg   Argument passed to 'App_TaskGenieShell()' by 'OSTaskCreate()'.
*
* Return(s)   : none.
*
* Note(s)     : (1) The first line of code is used to prevent a compiler warning because 'p_arg' is not
*                   used.  The compiler should not generate any code for this statement.
*********************************************************************************************************
*/
void App_TaskGenieShell( void *p_arg )
{
  
    (void)p_arg;     
  
    CPU_INT08U  index ;		/*index is the pointer of commandbuf */
    CPU_INT08U  num ;   
    CPU_CHAR    ch ;	    
    CPU_CHAR    CommandBuf[ MaxLenComBuf + 1 ];	/*store '\0'*/
    CPU_INT08U  (*Func)(CPU_INT08U argc, CPU_CHAR **argv); 
    CPU_CHAR    *argv[10];
    CPU_INT08U  argc;  
    CPU_INT08U  error_code;  
    
    index  =  0 ;
    CommandBuf[0] = '\0';    
                		
    InitCommands();     
    OSTimeDly(200);
	
    /*To be done: Login & Password*/
    UART_SHELL_SEND_STR(( "\n\rLaunching Genieshell, press any to continue..."));	   
    UART_SHELL_GET_BYTE(());
    UART_SHELL_SEND_STR(("\n\r>"));    
    
    while (DEF_TRUE) { 
      
        do {	    //only accept a-z,0-9,A-Z,.,space,/,-
	      ch = UART_SHELL_GET_BYTE(());	   
          
        } while(  !(   (ch>='0'&&ch<='9')||(ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')\
                     ||(ch=='.')||(ch==' ')||(ch=='-')||(ch=='/')\
                     ||(ch=='\r')||(ch=='\b')||(ch==',')  )  );
		
        switch(ch) {
          
            case '\r':				//enter
                if ( index == 0 ){     //commandbuf is null,begin a new line
                    UART_SHELL_SEND_STR(("\n\r>"));     
                    
                } else {
                  
                    if(CommandBuf[index-1]==' ') {
                        index--;			//get rid of the end space
                    }
                    CommandBuf[index] = '\0';
                    //UART_SHELL_SEND_STR("\n\rThe command is %s",CommandBuf);
                    num = CommandParse( CommandBuf,&argc,argv );	//analys the argv in the commandbuf
                    if( num == ERRORCOMMAND ){             	//error or none exist command
                        index = 0;
                        CommandBuf[index] = '\0';
                        //UART_SHELL_SEND_STR("\n\rError command is %s",CommandBuf);
                        UART_SHELL_SEND_STR(("Error: bad command or filename."));
                        UART_SHELL_SEND_STR(("\n\r>"));
                        
                    } else {                      
                        Func = ShellComms[num].CommandFunc;	//call corresponding CommandFunc
                        error_code = Func(argc,argv) ;
                        if( error_code == 1 ) {
                          UART_SHELL_SEND_STR(("Error : number of parameters error..."));  
                          
                        } else if(error_code == 2 ) {
                          UART_SHELL_SEND_STR(("Error : parameters content error ..."));
                          
                        } else if(error_code == 3 ) {
                           UART_SHELL_SEND_STR(("Error : Function execution error ..."));
                           
                        } else if(error_code > 3) {
                           UART_SHELL_SEND_STR(("Error : Unknown error ..."));
                           
                        }
                        index = 0;
                        CommandBuf[index] = '\0';
                        LED_Toggle(LED_DS2);
                        UART_SHELL_SEND_STR(("\n\r>")); 
                        
                    }
                }
            break;
    
            case '\b':				//backspace
                if ( index==0 ){		//has backed to first one
                    //do nothing
                } else {
                    index--;			   //pointer back once                
                    UART_SHELL_SEND_BYTE(('\b'));	//cursor back once
                    UART_SHELL_SEND_BYTE((' '));	      //earse last char in screen
                    UART_SHELL_SEND_BYTE(('\b'));		//cursor back again
                                     
                }
            break;
        
            case ' ':               //don't allow continuous or begin space(' ')
                if((CommandBuf[index-1] == ' ')||(index==0)||( index>MaxLenComBuf) ){
                    //do nothing
                } else {
                    CommandBuf[index] = ch;
                    index++;
                    UART_SHELL_SEND_BYTE((ch));  //display and store ch                   
                }
            break;
    
            default:				//normal key
                if ( index> MaxLenComBuf ){	//the buf reached MAX 
                //do nothing
                } else {
                    CommandBuf[index] = ch;
                    index++;
                    UART_SHELL_SEND_BYTE((ch));  //display and store ch                   
                }
            break;
            
	}  //switch end
        
        
    OSTimeDly(10);
        
    }
    
    
}
コード例 #16
0
ファイル: Protocol.cpp プロジェクト: Natzugen/ExilliumS3-EP1
// GameServer Protocol Core
void ProtocolCoreEx(BYTE protoNum,unsigned char* aRecv,int aLen,int aIndex,int Encrypt,int serial)
{
	// Protocol Cases
	switch(protoNum)
	{
		// PChatProc
		// Commands
		case 0x00:
			InitCommands(aIndex,aRecv);
		break;
		// CGClientMsg
		// Connect Notice
		case 0x03:													  
			CGClientMsgEx(aIndex);
		break;
		// CGUseItemRecv
		// New Jewels
		case 0x26:
			CustomJewels.CGUseItemRecv((PMSG_USEITEM*)aRecv,aIndex);
			break;
		// CGTalkRequestRecv
		// Stone Exchanger
		case 0x30:
			Exchanger.Talk(aIndex,(aRecv[4] + aRecv[3] * 256));
		break;
		// CGTradeResponseRecv
		// NPC Trade Fix
		case 0x37:
			if(gObj[gObj[aIndex].TargetNumber].Type != 1)
			{
				Log.AddTime("[Anti-Hack][Crash Attempt] [NPC Trade] (%s)(%s)",gObj[aIndex].AccountID,gObj[aIndex].Name);
				return;
			}
			break;
		// CGGuildMasterInfoSave
		// Guild System
		case 0x55:
			GuildSystem.Check(aIndex, (PMSG_GUILDINFOSAVE *)aRecv);
			return;
			break;
		// ChaosBoxMix
		// New Mixes
		case 0x86:
			ChaosMachine.ChaosBoxHook(aIndex,aRecv[3]);
			break;
		// CGReqJewelMix
		// CGReqJewelUnMix
		// Duping Fix
		case 0xBC:
			if(gObj[aIndex].TargetNumber != -1 && gObj[aIndex].pTransaction == 1)
			{
				Log.AddTime("[Anti-Hack][Dupe Attempt] [Trade] (%s)(%s)",gObj[aIndex].AccountID,gObj[aIndex].Name);
				GCServerMsgStringSend("[SYSTEM]: Duping is not allowed here.",aIndex,0);
				CloseClient(aIndex);
				return;
			}
			else if(gObj[aIndex].m_IfState.use > 0 && gObj[aIndex].m_IfState.type != 12)
			{
				Log.AddTime("[Anti-Hack][Dupe Attempt] [Lahap] (%s)(%s)",gObj[aIndex].AccountID,gObj[aIndex].Name);
				GCServerMsgStringSend("[SYSTEM]: Duping is not allowed here.",aIndex,0);
				CloseClient(aIndex);
				return;
			}
			break;

	}

	// Jump to Original Function
	ProtocolCore(protoNum,aRecv,aLen,aIndex,Encrypt,serial);
}
コード例 #17
0
ファイル: TacticalManager.cpp プロジェクト: fishxz/omni-bot
void TacticalManager::Init( System & system )
{
	rmt_ScopedCPUSample( TacticalManagerInit );
	InitCommands();
}
コード例 #18
0
PushConsoleManager::PushConsoleManager(cure::ResourceManager* resource_manager, cure::GameManager* game_manager,
	UiCure::GameUiManager* ui_manager, cure::RuntimeVariableScope* variable_scope, const PixelRect& area):
	Parent(resource_manager, game_manager, ui_manager, variable_scope, area) {
	InitCommands();
}
コード例 #19
0
ファイル: commands.c プロジェクト: wangzhouwang/ucosii_video
/**
  * @brief  shell 任务			
  * @param  Id 任务参数				
  * @retval None
  */  
static void shell_task_entry(void *Id)             //Main_Test_Task   
{   

    INT8U i=0,num,err;      /*i is the pointer of commandbuf */   
    char ch;   
    char c1[1];   
    INT8U (*Func)(INT8U argc,char **argv);   
    char CommandBuf[MaxLenComBuf+1];    /*store '\0'*/      
    InitCommands();   
    CommandBuf[0] = '\0';   
   
    printf("\n\r***********************************************\n");   
    printf("\n\r*           Welcom to fighter shell           *\n");   
    printf("\n\r*           Author:fighter 2014-12-28         *\n");   
    printf("\n\r***********************************************\n\r");   
           
	/*To be done: Login & Password*/   
   
    printf("\nBEGIN UCOS SHELL,press any to continue.....");   
    shell_get_char((INT8U *)c1);   
    printf("\n\rc:\\sk>");   
    while(1)
    {   
        do
        {                
        	/* only accept a-z,0-9,A-Z,.,space,/,-   */
			err = shell_get_char((INT8U *)c1);   
			if(err == 1)
			{
				ch=c1[0];   
			}
			else
			{
				OSTimeDly(1);
				ch = 0;
			}
        }while(!((ch>='0'&&ch<='9')||(ch>='a'&&ch<='z')||(ch>='A'&&ch<='Z')||(ch=='.')||(ch==' ')||(ch=='-')||(ch=='/')||(ch=='\r')||(ch=='\b')||(ch==',')));   
           
        switch(ch)   
        {   
			case '\r':              //enter   
			{
				if (i==0)
				{                              //commandbuf is null,begin a new line   
					printf("\n\rc:\\sk>");     
				}   
				else
				{   
					if(CommandBuf[i-1]==' ')    
					{
						i--;  
					}
				   //get rid of the end space   
					CommandBuf[i] = '\0';   
					//printf("\n\rThe command is %s",CommandBuf);   
					num = CommandAnalys(CommandBuf);    //analys the argv in the commandbuf   
					if(num==ERRORCOMMAND)
					{              //error or none exist command   
						i = 0;   
						CommandBuf[i] = '\0';   
						//printf("\n\rError command is %s",CommandBuf);   
						printf("\n\rBad command or filename.");   
						printf("\n\rc:\\sk>");    
					}   
					else
					{   
						Func = ShellComms[num].CommandFunc; //call corresponding CommandFunc   
						Func(argc,argv);   
						i = 0;   
						CommandBuf[i] = '\0';   
						printf("\n\rc:\\sk>");   
					}   
				}   
				break;   
			}
        case '\b':              //backspace   
        {
			if ( i==0 )				//has backed to first one   
			{        	
				//do nothing   
			}   
			else
			{   
				i--;            //pointer back once   
				shell_put_char('\b');      //cursor back once   
				shell_put_char(' ');         //earse last char in screen   
				shell_put_char('\b');      //cursor back again   
				//moverel(-1,0);   
			}   
			break;   
        }       
        case ' ':               //don't allow continuous or begin space(' ')   
        {
			if((CommandBuf[i-1] == ' ')||(i==0)||(i>MaxLenComBuf))
			{   
				//do nothing   
			}   
			else
			{   
				CommandBuf[i] = ch;   
				i++;   
				shell_put_char(ch);  //display and store ch   
			}   
			break;   
        }
        default:                //normal key   
        {
			if (i>MaxLenComBuf)//the buf reached MAX    
			{ 
				//do nothing   
			}              
			else
			{   
  				CommandBuf[i] = ch;   
  				i++;   
  				shell_put_char(ch);  //display and store ch   
			}   
       	break;   
        }
       }     
       OSTimeDly(OS_TICKS_PER_SEC/100);   
    }//for(;;)   
}