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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pc.c

?? 純c寫的關聯規則挖掘apriori算法代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*
*********************************************************************************************************
*                                          PC SUPPORT FUNCTIONS
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                           All Rights Reserved
*
* File : PC.C
* By   : Jean J. Labrosse
*********************************************************************************************************
*/

#include "ucos_ii.h"
#include "pc.h"
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>


/*
PC display by KC51 emulation
*/

#define interrupt
#define far	xdata
#define MK_FP(s, o)		((INT8U xdata *)(INT16U)(o))
#define getvect(vect)	((vect=vect),((void*)NULL))
#define setvect(vect, isr)	(vect=vect, isr=isr)
int OSTickDOSCtr;

const char code * const code ExitNotice[]=
{
	"Exit program",
	"Program has terminated",
	"Reset the processor to restart the program"
};

bit kbhit() KCREENTRANT;
INT8U getch() KCREENTRANT;

void exit(INT8U ec) KCREENTRANT
{
	static char str[64];
#if OS_CRITICAL_METHOD == 3
    OS_CPU_SR cpu_sr;
#endif

    OS_ENTER_CRITICAL();
	for(;;)
	{
		INT8U i;

		for(i=0; i<sizeof(ExitNotice)/sizeof(ExitNotice[0]); i++)
		{
			PC_DispStr (0, 8+i, ExitNotice[i], DISP_FGND_WHITE + DISP_BGND_BLACK);
		}
		sprintf(str, "Exit code = %bd", ec);
		PC_DispStr (0, 24, str, DISP_FGND_WHITE + DISP_BGND_BLACK);
		while(! kbhit());
		getch();
		TR0=0;
		ET0=0;
		((void(*)(void))0)();
	}

	OS_EXIT_CRITICAL();
}
/*
INT8U inp(INT8U p)
{
    INT8U  far *pscr;
    pscr = MK_FP(DISP_BASE, 0x1000+p);
	return * pscr;
}
*/
void outp(INT8U p, INT8U d)
{
    INT8U  far *pscr;
    pscr	= MK_FP(DISP_BASE, 0x1000+p);
	*pscr	= d;
}

struct time
{
	INT8U ti_hour, ti_min, ti_sec;
};

struct date
{
	INT8U da_year, da_mon, da_day;
};

void gettime(struct time * pti) KCREENTRANT
{
    INT8U  far *pscr;
    pscr			= MK_FP(DISP_BASE, 0x2010);
	pti->ti_hour	=* pscr ++;
	pti->ti_min		=* pscr ++;
	pti->ti_sec		=* pscr;
}

void getdate(struct date * pdt) KCREENTRANT
{
    INT8U  far *pscr;
    pscr			= MK_FP(DISP_BASE, 0x2020);
	pdt->da_year	= * pscr ++;
	pdt->da_mon		= * pscr ++;
	pdt->da_day		= * pscr;
}

/*
INT8U random(INT8U seed) KCREENTRANT
{
	INT8U xdata * p;
	p=MK_FP(0, 0x2032);
	return ((*p)^((INT16U) rand())) % (INT16U)seed;
}
*/

INT8U random(INT8U seed) KCREENTRANT
{
    INT8U i;
	i=(((INT16U) rand())^((INT16U) rand())+TL0) % (INT16U)seed;
	return i;
}

bit kbhit() KCREENTRANT
{
    INT8U  far *pscr;
    pscr = MK_FP(DISP_BASE, 0x2030);
	return *pscr;
}

INT8U getch() KCREENTRANT
{
    INT8U  far *pscr;
    pscr = MK_FP(DISP_BASE, 0x2031);
	return *pscr;
}

/*
*********************************************************************************************************
*                                               CONSTANTS
*********************************************************************************************************
*/
#define  DISP_BASE                  0xB800       /* Base segment of display (0xB800=VGA, 0xB000=Mono)  */
#define  DISP_MAX_X                     80       /* Maximum number of columns                          */
#define  DISP_MAX_Y                     25       /* Maximum number of rows                             */

#define  TICK_T0_8254_CWR             0x43       /* 8254 PIT Control Word Register address.            */
#define  TICK_T0_8254_CTR0            0x40       /* 8254 PIT Timer 0 Register address.                 */
#define  TICK_T0_8254_CTR1            0x41       /* 8254 PIT Timer 1 Register address.                 */
#define  TICK_T0_8254_CTR2            0x42       /* 8254 PIT Timer 2 Register address.                 */

#define  TICK_T0_8254_CTR0_MODE3      0x36       /* 8254 PIT Binary Mode 3 for Counter 0 control word. */
#define  TICK_T0_8254_CTR2_MODE0      0xB0       /* 8254 PIT Binary Mode 0 for Counter 2 control word. */
#define  TICK_T0_8254_CTR2_LATCH      0x80       /* 8254 PIT Latch command control word                */

#define  VECT_TICK                    0x08       /* Vector number for 82C54 timer tick                 */
#define  VECT_DOS_CHAIN               0x81       /* Vector number used to chain DOS                    */

/*
*********************************************************************************************************
*                                       LOCAL GLOBAL VARIABLES
*********************************************************************************************************
*/
             
static INT16U    PC_ElapsedOverhead;
static jmp_buf   PC_JumpBuf;
static BOOLEAN   PC_ExitFlag;
void           (*PC_TickISR)(void);

/*$PAGE*/
/*
*********************************************************************************************************
*                                              CLEAR SCREEN
*
* Description : This function clears the PC's screen by directly accessing video RAM instead of using
*               the BIOS.  It assumed that the video adapter is VGA compatible.  Video RAM starts at
*               absolute address 0x000B8000.  Each character on the screen is composed of two bytes:
*               the ASCII character to appear on the screen followed by a video attribute.  An attribute
*               of 0x07 displays the character in WHITE with a black background.
*
* Arguments   : color   specifies the foreground/background color combination to use 
*                       (see PC.H for available choices)
*
* Returns     : None
*********************************************************************************************************
*/
void PC_DispClrScr (INT8U color) KCREENTRANT
{
    INT8U  far *pscr;
    INT16U      i;


    pscr = MK_FP(DISP_BASE, 0x0000);
    for (i = 0; i < (DISP_MAX_X * DISP_MAX_Y); i++) { /* PC display has 80 columns and 25 lines        */
        *pscr++ = ' ';                                /* Put ' ' character in video RAM                */
        *pscr++ = color;                              /* Put video attribute in video RAM              */
    }
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                             CLEAR A LINE
*
* Description : This function clears one of the 25 lines on the PC's screen by directly accessing video 
*               RAM instead of using the BIOS.  It assumed that the video adapter is VGA compatible.  
*               Video RAM starts at absolute address 0x000B8000.  Each character on the screen is 
*               composed of two bytes: the ASCII character to appear on the screen followed by a video 
*               attribute.  An attribute of 0x07 displays the character in WHITE with a black background.
*
* Arguments   : y            corresponds to the desired line to clear.  Valid line numbers are from 
*                            0 to 24.  Line 0 corresponds to the topmost line.
*
*               color        specifies the foreground/background color combination to use 
*                            (see PC.H for available choices)
*
* Returns     : None
*********************************************************************************************************
*/
void PC_DispClrLine (INT8U y, INT8U color) KCREENTRANT
{
    INT8U far *pscr;
    INT8U      i;


    pscr = MK_FP(DISP_BASE, (INT16U)y * DISP_MAX_X * 2);
    for (i = 0; i < DISP_MAX_X; i++) {
        *pscr++ = ' ';                           /* Put ' ' character in video RAM                     */
        *pscr++ = color;                         /* Put video attribute in video RAM                   */
    }
}
/*$PAGE*/
/*
*********************************************************************************************************
*                           DISPLAY A SINGLE CHARACTER AT 'X' & 'Y' COORDINATE
*
* Description : This function writes a single character anywhere on the PC's screen.  This function
*               writes directly to video RAM instead of using the BIOS for speed reasons.  It assumed 
*               that the video adapter is VGA compatible.  Video RAM starts at absolute address 
*               0x000B8000.  Each character on the screen is composed of two bytes: the ASCII character 
*               to appear on the screen followed by a video attribute.  An attribute of 0x07 displays 
*               the character in WHITE with a black background.
*
* Arguments   : x      corresponds to the desired column on the screen.  Valid columns numbers are from
*                      0 to 79.  Column 0 corresponds to the leftmost column.
*               y      corresponds to the desired row on the screen.  Valid row numbers are from 0 to 24.
*                      Line 0 corresponds to the topmost row.
*               c      Is the ASCII character to display.  You can also specify a character with a 
*                      numeric value higher than 128.  In this case, special character based graphics
*                      will be displayed.
*               color  specifies the foreground/background color to use (see PC.H for available choices)
*                      and whether the character will blink or not.
*
* Returns     : None
*********************************************************************************************************
*/
void PC_DispChar (INT8U x, INT8U y, INT8U cc, INT8U color) KCREENTRANT
{
    INT8U  far *pscr;
    INT16U      offset;


    offset  = (INT16U)y * DISP_MAX_X * 2 + (INT16U)x * 2;  /* Calculate position on the screen         */
    pscr    = MK_FP(DISP_BASE, offset);
    *pscr++ = cc;                                           /* Put character in video RAM               */
    *pscr   = color;                                       /* Put video attribute in video RAM         */
}
/*$PAGE*/
/*
*********************************************************************************************************
*                                 DISPLAY A STRING  AT 'X' & 'Y' COORDINATE
*
* Description : This function writes an ASCII string anywhere on the PC's screen.  This function writes
*               directly to video RAM instead of using the BIOS for speed reasons.  It assumed that the 
*               video adapter is VGA compatible.  Video RAM starts at absolute address 0x000B8000.  Each 
*               character on the screen is composed of two bytes: the ASCII character to appear on the 
*               screen followed by a video attribute.  An attribute of 0x07 displays the character in 
*               WHITE with a black background.
*
* Arguments   : x      corresponds to the desired column on the screen.  Valid columns numbers are from
*                      0 to 79.  Column 0 corresponds to the leftmost column.
*               y      corresponds to the desired row on the screen.  Valid row numbers are from 0 to 24.
*                      Line 0 corresponds to the topmost row.
*               s      Is the ASCII string to display.  You can also specify a string containing 
*                      characters with numeric values higher than 128.  In this case, special character 
*                      based graphics will be displayed.
*               color  specifies the foreground/background color to use (see PC.H for available choices)
*                      and whether the characters will blink or not.
*
* Returns     : None
*********************************************************************************************************
*/
void PC_DispStr (INT8U x, INT8U y, INT8U *s, INT8U color) KCREENTRANT
{
    INT8U  far *pscr;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线国产电影不卡| 精品在线视频一区| 国产裸体歌舞团一区二区| 91麻豆精品国产91久久久久久久久| 一区二区三区在线播放| 在线亚洲+欧美+日本专区| 亚洲国产视频直播| 欧美一二区视频| 国产一区二区三区日韩| 亚洲丝袜美腿综合| 欧美色图一区二区三区| 欧美96一区二区免费视频| 久久久精品综合| 91免费版pro下载短视频| 亚洲狠狠爱一区二区三区| 欧美一区二区三区公司| 国产成人小视频| 亚洲精品成a人| 日韩视频一区在线观看| 成人影视亚洲图片在线| 午夜精品一区二区三区免费视频| 日韩一区二区三区av| 成人在线视频一区| 午夜视频久久久久久| 国产亚洲综合色| 在线免费观看不卡av| 狠狠色丁香婷婷综合| 国产在线看一区| 亚洲码国产岛国毛片在线| 日韩一级精品视频在线观看| 成人久久18免费网站麻豆| 肉丝袜脚交视频一区二区| 日本一区二区三区电影| 欧美群妇大交群中文字幕| 粉嫩绯色av一区二区在线观看 | 国产麻豆91精品| 亚洲精品成人少妇| 精品国产乱码久久久久久牛牛| voyeur盗摄精品| 日韩激情一区二区| 亚洲美女电影在线| 欧美国产日本视频| 6080yy午夜一二三区久久| 99久久精品国产精品久久| 久久精品999| 爽好多水快深点欧美视频| 中文字幕日韩一区| 精品国产乱码久久久久久1区2区| 欧美在线观看禁18| 91原创在线视频| 国产成人超碰人人澡人人澡| 日韩激情一二三区| 亚洲一区二区欧美日韩| 国产日产欧美一区二区视频| 日韩午夜小视频| 在线观看91av| 欧美性高清videossexo| 91免费视频网| 成年人午夜久久久| 成人性生交大片免费看在线播放| 蜜桃久久久久久| 日韩电影免费在线看| 亚洲国产乱码最新视频| 一区二区三区视频在线看| 亚洲欧洲日韩综合一区二区| 欧美高清一级片在线观看| 精品国产乱码久久久久久1区2区| 337p亚洲精品色噜噜| 精品视频一区二区三区免费| 在线观看91视频| 色狠狠综合天天综合综合| 色综合久久久久网| 日韩视频永久免费| 日韩网站在线看片你懂的| 欧美一级理论性理论a| 91精品午夜视频| 欧美人与性动xxxx| 欧美一区二区三区视频免费| 欧美日韩国产成人在线免费| 欧美老肥妇做.爰bbww视频| 欧美日韩一区 二区 三区 久久精品| 色久综合一二码| 欧洲av一区二区嗯嗯嗯啊| 欧美亚洲综合网| 欧美人伦禁忌dvd放荡欲情| 欧美精品乱码久久久久久按摩| 9191国产精品| 精品少妇一区二区三区日产乱码| 精品久久免费看| 久久久99精品免费观看| 国产精品女上位| 亚洲人123区| 午夜视频一区在线观看| 麻豆一区二区在线| 国产成人在线看| 北岛玲一区二区三区四区| 色婷婷综合久久久久中文一区二区 | 天天综合色天天综合色h| 免费精品视频最新在线| 黄页视频在线91| 成人av资源在线观看| 色噜噜狠狠成人网p站| 欧美精品一级二级三级| 欧美本精品男人aⅴ天堂| 中文字幕的久久| 亚洲一区日韩精品中文字幕| 日韩avvvv在线播放| 国产精品91一区二区| 99re视频这里只有精品| 欧美日韩国产综合一区二区三区| 日韩一区二区影院| 国产精品美女久久久久aⅴ国产馆| 亚洲人亚洲人成电影网站色| 五月天欧美精品| 国产不卡视频在线播放| 欧美色图一区二区三区| 久久女同互慰一区二区三区| 一区二区三区精密机械公司| 日本不卡的三区四区五区| 成人白浆超碰人人人人| 91精品国产麻豆| 亚洲欧美视频一区| 精品一二线国产| 欧美视频一区二区三区在线观看| 亚洲精品一区二区三区蜜桃下载| 一卡二卡三卡日韩欧美| 国产精品影视在线| 欧美福利视频导航| 国产精品麻豆一区二区| 久久99国产精品免费| 成人欧美一区二区三区小说| 免费观看成人av| 色婷婷综合久久久中文一区二区 | 国产高清不卡一区| 欧美美女视频在线观看| 中文字幕亚洲综合久久菠萝蜜| 乱中年女人伦av一区二区| 日本道色综合久久| 国产欧美日韩三区| 黄色资源网久久资源365| 欧美男同性恋视频网站| 亚洲欧美在线另类| 国产ts人妖一区二区| 日韩免费看网站| 午夜成人免费视频| 色天天综合久久久久综合片| 久久精品人人爽人人爽| 美腿丝袜一区二区三区| 欧美三级电影网| 一区二区三区在线视频播放 | 色婷婷综合久久| 国产清纯在线一区二区www| 午夜伊人狠狠久久| 色婷婷综合久色| 国产精品国产三级国产a| 国产精品性做久久久久久| 欧美刺激脚交jootjob| 日韩二区三区在线观看| 欧美三级日韩在线| 亚洲小少妇裸体bbw| 色999日韩国产欧美一区二区| 亚洲欧美在线观看| 成人av集中营| 1区2区3区欧美| 99国产精品久久久久久久久久 | 亚洲欧洲中文日韩久久av乱码| 国产91精品露脸国语对白| 久久久久久久电影| 国产毛片精品视频| 久久精品一二三| 成人免费福利片| 国产精品传媒视频| 91污片在线观看| 亚洲在线视频免费观看| 欧美日韩一区二区三区不卡| 天堂成人国产精品一区| 91精品国产黑色紧身裤美女| 美女一区二区视频| 精品福利av导航| 国产 欧美在线| 亚洲日本va午夜在线电影| 欧美性做爰猛烈叫床潮| 丝袜诱惑亚洲看片| 欧美本精品男人aⅴ天堂| 国产尤物一区二区在线| 国产精品系列在线| 一本到一区二区三区| 日日夜夜精品视频天天综合网| 欧美一区午夜视频在线观看| 麻豆成人久久精品二区三区小说| 久久久天堂av| 91在线小视频| 三级不卡在线观看| 久久久久久久久久看片| 99久久99久久久精品齐齐| 亚洲国产精品一区二区www| 亚洲一区在线观看视频| 精品国产123| 91社区在线播放| 日本伊人色综合网|