亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pc.c

?? zlggui.rar
?? C
?? 第 1 頁 / 共 2 頁
字號:
{
//change by cmj
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    


//    PC_ExitFlag  = FALSE;                                  /* Indicate that we are not exiting yet!    */
//    OSTickDOSCtr =     1;                                  /* Initialize the DOS tick counter          */
//    PC_TickISR   = PC_VectGet(VECT_TICK);                  /* Get MS-DOS's tick vector                 */
    
//    PC_VectSet(VECT_DOS_CHAIN, PC_TickISR);                /* Store MS-DOS's tick to chain             */
    
//    setjmp(PC_JumpBuf);                                    /* Capture where we are in DOS              */
//    if (PC_ExitFlag == TRUE) {                             /* See if we are exiting back to DOS        */
//        OS_ENTER_CRITICAL();
//        PC_SetTickRate(18);                                /* Restore tick rate to 18.2 Hz             */
//        OS_EXIT_CRITICAL();
//        PC_VectSet(VECT_TICK, PC_TickISR);                 /* Restore DOS's tick vector                */
//        PC_DispClrScr(DISP_FGND_WHITE + DISP_BGND_BLACK);  /* Clear the display                        */
//        exit(0);                                           /* Return to DOS                            */
//    }
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                       ELAPSED TIME INITIALIZATION
*
* Description : This function initialize the elapsed time module by determining how long the START and
*               STOP functions take to execute.  In other words, this function calibrates this module
*               to account for the processing time of the START and STOP functions.
*
* Arguments   : None.
*
* Returns     : None.
*********************************************************************************************************
*/
void PC_ElapsedInit(void)
{
    PC_ElapsedOverhead = 0;
    PC_ElapsedStart();
    PC_ElapsedOverhead = PC_ElapsedStop();
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                         INITIALIZE PC'S TIMER #2
*
* Description : This function initialize the PC's Timer #2 to be used to measure the time between events.
*               Timer #2 will be running when the function returns.
*
* Arguments   : None.
*
* Returns     : None.
*********************************************************************************************************
*/
//change by cmj
        void PC_ElapsedStart(void)
{
    PC_ElapsedOverhead = T0TC;
}

//void PC_ElapsedStart(void)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT8U      data;


//    OS_ENTER_CRITICAL();
//    data  = (INT8U)inp(0x61);                              /* Disable timer #2                         */
//    data &= 0xFE;
//    outp(0x61, data);
//    outp(TICK_T0_8254_CWR,  TICK_T0_8254_CTR2_MODE0);      /* Program timer #2 for Mode 0              */
//    outp(TICK_T0_8254_CTR2, 0xFF);
//    outp(TICK_T0_8254_CTR2, 0xFF);
//    data |= 0x01;                                          /* Start the timer                          */
//    outp(0x61, data);
//    OS_EXIT_CRITICAL();
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                 STOP THE PC'S TIMER #2 AND GET ELAPSED TIME
*
* Description : This function stops the PC's Timer #2, obtains the elapsed counts from when it was
*               started and converts the elapsed counts to micro-seconds.
*
* Arguments   : None.
*
* Returns     : The number of micro-seconds since the timer was last started.
*
* Notes       : - The returned time accounts for the processing time of the START and STOP functions.
*               - 54926 represents 54926S-16 or, 0.838097 which is used to convert timer counts to
*                 micro-seconds.  The clock source for the PC's timer #2 is 1.19318 MHz (or 0.838097 uS)
*********************************************************************************************************
*/
//change by cmj
        INT16U PC_ElapsedStop(void)
{
    return ((T0TC - PC_ElapsedOverhead) / (Fpclk / 1000000));
}

//INT16U PC_ElapsedStop(void)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT8U      data;
//    INT8U      low;
//    INT8U      high;
//    INT16U     cnts;


//    OS_ENTER_CRITICAL();
//    data  = (INT8U)inp(0x61);                                    /* Disable the timer                  */
//    data &= 0xFE;
//    outp(0x61, data);
//    outp(TICK_T0_8254_CWR, TICK_T0_8254_CTR2_LATCH);             /* Latch the timer value              */
//    low  = inp(TICK_T0_8254_CTR2);
//    high = inp(TICK_T0_8254_CTR2);
//    cnts = (INT16U)0xFFFF - (((INT16U)high << 8) + (INT16U)low); /* Compute time it took for operation */
//    OS_EXIT_CRITICAL();
//    return ((INT16U)((INT32U)cnts * 54926L >> 16) - PC_ElapsedOverhead);
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                       GET THE CURRENT DATE AND TIME
*
* Description: This function obtains the current date and time from the PC.
*
* Arguments  : s     is a pointer to where the ASCII string of the current date and time will be stored.
*                    You must allocate at least 21 bytes (includes the NUL) of storage in the return 
*                    string.  The date and time will be formatted as follows:
*
*                        "YYYY-MM-DD  HH:MM:SS"
*
* Returns    : none
*********************************************************************************************************
*/
//change by cmj
        void PC_GetDateTime (char *s)
{
    INT32U da_year,da_mon,da_day,ti_hour,ti_min,ti_sec;
    

    ti_sec = SEC;
    ti_min = MIN;
    ti_hour = HOUR;
    da_day = DOM;
    da_mon = MONTH;
    da_year = YEAR;

    sprintf(s, "%04d-%02d-%02d  %02d:%02d:%02d",
               da_year,da_mon,da_day,ti_hour,ti_min,ti_sec);
}

//void PC_GetDateTime (char *s)
//{
//    struct time now;
//    struct date today;


//    gettime(&now);
//    getdate(&today);
//    sprintf(s, "%04d-%02d-%02d  %02d:%02d:%02d",
//               today.da_year,
//               today.da_mon,
//               today.da_day,
//               now.ti_hour,
//               now.ti_min,
//               now.ti_sec);
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                        CHECK AND GET KEYBOARD KEY
*
* Description: This function checks to see if a key has been pressed at the keyboard and returns TRUE if
*              so.  Also, if a key is pressed, the key is read and copied where the argument is pointing
*              to.
*
* Arguments  : c     is a pointer to where the read key will be stored.
*
* Returns    : TRUE  if a key was pressed
*              FALSE otherwise
*********************************************************************************************************
*/
//change by cmj
    BOOLEAN PC_GetKey (INT16S *c)
{
    if ((U0LSR & 0x00000001) != 0)
    {
        *c = U0RBR;
        return (TRUE);
    }
    else
    {
        *c = 0x00;
        return (FALSE);
    }
}

//BOOLEAN PC_GetKey (INT16S *c)
//{
//    if (kbhit()) {                                         /* See if a key has been pressed            */
//        *c = (INT16S)getch();                              /* Get key pressed                          */
//        return (TRUE);
//    } else {
//        *c = 0x00;                                         /* No key pressed                           */
//        return (FALSE);
//    }
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                      SET THE PC'S TICK FREQUENCY
*
* Description: This function is called to change the tick rate of a PC.
*
* Arguments  : freq      is the desired frequency of the ticker (in Hz)
*
* Returns    : none
*
* Notes      : 1) The magic number 2386360 is actually twice the input frequency of the 8254 chip which
*                 is always 1.193180 MHz.
*              2) The equation computes the counts needed to load into the 8254.  The strange equation
*                 is actually used to round the number using integer arithmetic.  This is equivalent to
*                 the floating point equation:
*
*                             1193180.0 Hz
*                     count = ------------ + 0.5
*                                 freq
*********************************************************************************************************
*/
//del by cmj
//void PC_SetTickRate (INT16U freq)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U     count;


//    if (freq == 18) {                            /* See if we need to restore the DOS frequency        */
//        count = 0;
//    } else if (freq > 0) {                        
                                                 /* Compute 8254 counts for desired frequency and ...  */
                                                 /* ... round to nearest count                         */
//        count = (INT16U)(((INT32U)2386360L / freq + 1) >> 1); 
//    } else {
//        count = 0;
//    }
//    OS_ENTER_CRITICAL();
//    outp(TICK_T0_8254_CWR,  TICK_T0_8254_CTR0_MODE3); /* Load the 8254 with desired frequency          */  
//    outp(TICK_T0_8254_CTR0, count & 0xFF);            /* Low  byte                                     */
//    outp(TICK_T0_8254_CTR0, (count >> 8) & 0xFF);     /* High byte                                     */
//    OS_EXIT_CRITICAL();
//}
/*$PAGE*/
/*
*********************************************************************************************************
*                                        OBTAIN INTERRUPT VECTOR
*
* Description: This function reads the pointer stored at the specified vector.
*
* Arguments  : vect  is the desired interrupt vector number, a number between 0 and 255.
*
* Returns    : The address of the Interrupt handler stored at the desired vector location.
*********************************************************************************************************
*/
//del by cmj
//void *PC_VectGet (INT8U vect)
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U    *pvect;
//    INT16U     off;
//    INT16U     seg;
    
    
//    pvect = (INT16U *)MK_FP(0x0000, vect * 4);        /* Point into IVT at desired vector location     */
//    OS_ENTER_CRITICAL();
//    off   = *pvect++;                                 /* Obtain the vector's OFFSET                    */
//    seg   = *pvect;                                   /* Obtain the vector's SEGMENT                   */
//    OS_EXIT_CRITICAL();
//    return (MK_FP(seg, off));
//}

/*
*********************************************************************************************************
*                                        INSTALL INTERRUPT VECTOR
*
* Description: This function sets an interrupt vector in the interrupt vector table.
*
* Arguments  : vect  is the desired interrupt vector number, a number between 0 and 255.
*              isr   is a pointer to a function to execute when the interrupt or exception occurs.
*
* Returns    : none
*********************************************************************************************************
*/
//del by cmj
//void PC_VectSet (INT8U vect, void (*isr)(void))
//{
//#if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
//    OS_CPU_SR  cpu_sr;
//#endif    
//    INT16U    *pvect;
    
    
//    pvect    = (INT16U *)MK_FP(0x0000, vect * 4);     /* Point into IVT at desired vector location     */
//    OS_ENTER_CRITICAL();
//    *pvect++ = (INT16U)FP_OFF(isr);                   /* Store ISR offset                              */
//    *pvect   = (INT16U)FP_SEG(isr);                   /* Store ISR segment                             */
//    OS_EXIT_CRITICAL();
//}


//add by cmj
        INT8U random(INT8U seed)
{
    uint16 temp;

    temp = rand();
    temp = temp % seed;
	return temp;
}

/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久精品一区二区三| 成人动漫精品一区二区| 久久久久久久免费视频了| 成人激情图片网| 亚洲gay无套男同| 欧美成人综合网站| 成人精品免费看| 日本免费在线视频不卡一不卡二| 久久久精品人体av艺术| 成人综合婷婷国产精品久久蜜臀 | 91精品国产福利在线观看| 成人一区在线观看| 欧美亚洲高清一区| 国产电影一区二区三区| 日韩中文字幕麻豆| 亚洲小少妇裸体bbw| 国产精品免费久久久久| 欧美tickling网站挠脚心| 欧美日韩综合在线免费观看| a美女胸又www黄视频久久| 国产精品一级在线| 精品一区二区三区免费视频| 午夜欧美一区二区三区在线播放| 日韩理论片网站| 国产精品区一区二区三区| 久久精品夜夜夜夜久久| 欧美tickling网站挠脚心| 欧美一区二区三区小说| 欧美精品日韩精品| 4438成人网| 欧美一区二区三区爱爱| 欧美精三区欧美精三区| 欧美日韩国产精品成人| 91成人免费网站| 在线视频国内自拍亚洲视频| av欧美精品.com| 不卡视频免费播放| 成人av资源在线观看| 成人免费va视频| 不卡av电影在线播放| 99视频在线精品| 一本大道久久精品懂色aⅴ| 色综合久久综合中文综合网| 91视频91自| 欧美日韩国产精品自在自线| 欧美一区二区三区婷婷月色| 日韩午夜在线影院| 精品久久久久久久人人人人传媒| 精品国产一区二区三区四区四| 欧美tickling挠脚心丨vk| 久久精品视频一区| 国产精品你懂的| 亚洲人被黑人高潮完整版| 亚洲欧美一区二区三区国产精品| 一个色在线综合| 五月天激情综合网| 国内外精品视频| 成人一区在线看| 欧美日免费三级在线| 日韩欧美中文一区| 国产欧美中文在线| 亚洲欧美激情视频在线观看一区二区三区| 国产精品不卡一区| 亚洲国产日韩综合久久精品| 免费一区二区视频| 国产成人啪免费观看软件| 色婷婷精品大视频在线蜜桃视频| 欧美色图天堂网| 欧美大片一区二区| 中文字幕在线不卡一区二区三区| 亚洲一区二区三区中文字幕| 奇米影视在线99精品| 东方欧美亚洲色图在线| 欧美亚洲国产一区在线观看网站| 日韩欧美一级二级三级| 国产精品五月天| 天天做天天摸天天爽国产一区| 国产一区二区三区在线观看免费| 国产视频一区二区在线观看| 最好看的中文字幕久久| 免费在线成人网| 91免费精品国自产拍在线不卡| 欧美一区二区精品在线| 国产精品久久久久久户外露出| 爽好久久久欧美精品| 成人精品一区二区三区四区| 欧美日韩国产首页在线观看| 国产欧美日本一区视频| 日本美女视频一区二区| 99视频超级精品| 日韩午夜三级在线| 亚洲精品免费在线观看| 激情综合亚洲精品| 欧美图区在线视频| 国产精品你懂的| 九九久久精品视频| 欧美性感一类影片在线播放| 国产午夜亚洲精品理论片色戒| 亚洲成av人片www| 92国产精品观看| 久久九九影视网| 美女被吸乳得到大胸91| 一本久久综合亚洲鲁鲁五月天| 亚洲精品在线网站| 香港成人在线视频| 99精品久久99久久久久| 久久亚洲欧美国产精品乐播| 五月天视频一区| 欧美性欧美巨大黑白大战| 国产精品进线69影院| 国产一区二区剧情av在线| 欧美浪妇xxxx高跟鞋交| 亚洲激情六月丁香| av一区二区三区在线| 久久久久久久久久久久久夜| 免费在线观看一区| 欧美丰满少妇xxxxx高潮对白| 亚洲欧美激情小说另类| 99久久精品免费看国产| 国产欧美一区二区精品婷婷 | 日本一区二区久久| 久久91精品国产91久久小草| 在线成人小视频| 亚洲一区欧美一区| 色欧美88888久久久久久影院| 国产精品卡一卡二卡三| 风间由美中文字幕在线看视频国产欧美| 日韩视频一区在线观看| 美女尤物国产一区| 欧美一级二级三级蜜桃| 免费高清视频精品| 欧美一区二区女人| 蜜臀久久久99精品久久久久久| 欧美剧情电影在线观看完整版免费励志电影 | 91视频观看免费| 亚洲色图制服诱惑 | 欧美一区二区三区爱爱| 青草av.久久免费一区| 欧美一级免费观看| 日韩影院免费视频| 日韩一区二区三区在线视频| 日日嗨av一区二区三区四区| 6080yy午夜一二三区久久| 日韩精品五月天| 欧美mv日韩mv| 国产黄色精品网站| 国产精品理伦片| 91福利精品视频| 五月激情综合网| 欧美大黄免费观看| 国产精品一区二区三区99| 欧美极品美女视频| 91在线视频免费91| 亚洲综合一二区| 91精品国产高清一区二区三区蜜臀 | 久久老女人爱爱| 成人免费视频一区| 亚洲欧美日韩在线| 欧美精品vⅰdeose4hd| 久久99精品久久久久| 国产偷国产偷亚洲高清人白洁| 成人性生交大片免费看视频在线| 日韩伦理免费电影| 欧美片在线播放| 国产伦精品一区二区三区免费迷| 亚洲国产成人一区二区三区| 色老头久久综合| 免费精品视频在线| 中文字幕在线不卡一区二区三区| 欧美视频精品在线| 国内精品伊人久久久久av影院| 国产精品久久久久久久久久久免费看 | 最新不卡av在线| 91精品国产一区二区三区蜜臀 | 一本大道久久a久久综合婷婷| 婷婷丁香激情综合| 中文字幕精品一区二区三区精品| 色偷偷88欧美精品久久久| 免费日韩伦理电影| 国产精品久久久久久久久快鸭| 欧美精品久久一区二区三区| 国产精品一级片| 亚洲成a人片综合在线| 久久久99久久| 欧美精品自拍偷拍动漫精品| 国产精品亚洲视频| 性做久久久久久久久| 亚洲国产岛国毛片在线| 欧美日韩不卡视频| 成人小视频免费在线观看| 视频一区中文字幕| 欧美高清在线视频| 日韩精品一区二| 欧美日韩视频第一区| 国产成人免费视频网站高清观看视频 | 免费看欧美女人艹b| 亚洲精品久久久蜜桃| 久久日韩粉嫩一区二区三区| 欧美人与z0zoxxxx视频| 91在线免费看|