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

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

?? debug.c

?? 一個(gè)兩碟控制的VCD的代碼,兩碟之間的轉(zhuǎn)動(dòng)及連續(xù)播放,已大量生產(chǎn)的CODE.
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/* SCCSID @(#)debug.c	1.49 12/12/97 *//* * $Log$ */#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include "mvd.h"#include "common.h"#include "debug.h"#include "vp.h"#include "buffer.h"#include "display.h"#include "util.h"#include "vcxi.h"#ifdef FRACTINT#include "fractint.h"#endif#ifdef FADE#include "fade.h"#endif#define PRINTF(a)#ifdef DEBUG#undef VIEW/***************************************************************************** Local typedef *****************************************************************************/typedef struct {    char *name;		/* command name */    int (*proc)();	/* procedure function */} command;/***************************************************************************** Local variables *****************************************************************************/static char user_input[80];static char c_dummy[10];/***************************************************************************** Globals that needs to be exported *****************************************************************************/int vcx_on;/***************************************************************************** Local function prototypes *****************************************************************************/static int cmd_exe_sub(command *);static int proc_help(void);static int proc_cont(void);static int proc_dump(void);static int proc_edit(void);static int proc_fill(void);static int proc_r(void);static int proc_w(void);static int proc_rb(void);static int proc_wb(void);static int proc_save(void);static int proc_load(void);static int proc_vcxi(void);static int proc_ddp();static int proc_ddpcm();static int proc_dref();static int proc_wdp();static int proc_wdpcm();static int proc_savedp();static int proc_savedpcm();static int proc_loaddp();static int proc_loaddpcm();static int proc_load_ucode();static int proc_run_ucode();#ifdef VIEWstatic int proc_frame_define();static int proc_frame_read();static int proc_frame_run();#endif/********* SuperIO related ********/#if 0static int proc_InitSIO(void);static int proc_SIOSysRead(void);static int proc_SIOSysWrite(void);static int proc_SIOSysDump(void);static int proc_LoopBackTest(void);static int proc_XmitTest(void);static int proc_IntTest(void);#endifstatic int  rdrlatchport(void);static int  peekvp(void);static void ref_dump(void);static void dp_dm_dump(int);static void dp_dm_write(int, int, int, int);static void dp_dm_load(int);static void dp_dm_save(int);static int DBG_show_event_history(void);static int DBG_dump_event_history(void);static int DBG_print_event_history(FILE *);/***************************************************************************** System command table *****************************************************************************/command ctrl_com_tbl[] = {	{ "HELP", proc_help },{ "?", proc_help },	{ "H", proc_help },{ "h", proc_help },	{ "c", proc_cont },{ "C", proc_cont },	{ "d", proc_dump },{ "D", proc_dump },	{ "e", proc_edit },{ "E", proc_edit },	{ "f", proc_fill },{ "F", proc_fill },	{ "r", proc_r },   { "R", proc_r },	{ "w", proc_w },   { "W", proc_w },	{ "rb", proc_rb },	{ "wb", proc_wb },	{ "save", proc_save },	{ "load", proc_load },#if 0	{ "initsio", proc_InitSIO },	{ "sior", proc_SIOSysRead },	{ "siow", proc_SIOSysWrite },	{ "siodump", proc_SIOSysDump },	{ "loop", proc_LoopBackTest },	{ "xmit", proc_XmitTest },	{ "int", proc_IntTest },#endif	{ "vcxi", proc_vcxi },	{ "dumpref", proc_dref },	{ "dumpdp", proc_ddp },	{ "dumpdpcm", proc_ddpcm },	{ "writedp", proc_wdp },	{ "writedpcm", proc_wdpcm },	{ "savedp", proc_savedp },	{ "savedpcm", proc_savedpcm },	{ "loaddp", proc_loaddp },	{ "loaddpcm", proc_loaddpcm },	{ "loaducode", proc_load_ucode },	{ "runucode", proc_run_ucode },#ifdef TRACE_ON	{ "t", DBG_show_event_history },	{ "T", DBG_dump_event_history },#endif#ifdef VIEW	{ "frame", proc_frame_define },	{ "read", proc_frame_read },	{ "go", proc_frame_run },#endif	{ NULL, NULL }};/****************************************************************************** Command dispatcher. Returns 0 if successful. -1 if asked to quit. Error code: 1 - unknown command; 2 - execution failure. ******************************************************************************/static int cmd_exe_sub(table)command table[];{    register int i;    if (user_input[0]==0) return (0 );    if ( strcmp( user_input, NULL ) == 0 ) return (0 );    for ( i = 0; table[i].name != NULL; i++ ) {        if ( strcmp( table[i].name, user_input ) == 0 ) {	    return ( (*table[i].proc)() );        }    }    return(1);}/***************************************************************************** Make a wild guess *****************************************************************************/int AsciiHIToDw(char *szAscii){  int dwValue;    if ((szAscii[0] == '0') && ( (szAscii[1] == 'x') || (szAscii[1] == 'X')))    /* data is ASCII hex: "0x*" */    (void) sscanf(szAscii + 2, "%lx", &dwValue);  else    /* data is ASCII decimal */    (void) sscanf(szAscii, "%ld", &dwValue);  return(dwValue);}/***************************************************************************** Make a wild guess *****************************************************************************/static int proc_help(){    printf("HELP or H or ? : help message\n");    printf("c              : continue\n");    printf("q              : quit\n");    printf("r              : read \n");    printf("w              : write \n");    printf("rb             : read byte \n");    printf("wb             : write byte \n");    printf("d              : dump \n");    printf("e              : edit \n");    printf("f              : fill \n");#ifdef TRACE_ON    printf("t              : dump trace buffer \n");    printf("T              : dump trace buffer to file\n");#endif    printf("save           : dump memory to file \n");    printf("load           : read from file to memory \n");    printf("dumpref        : dump ref mem \n");    printf("dumpdp         : dump dp mem \n");    printf("dumpdpcm       : dump dpcm mem \n");    printf("writedpcm      : dram->dpcm \n");    printf("writedp        : dram->dp \n");    printf("savedpcm       : dpcm->File \n");    printf("savedp         : dp->File \n");    printf("loaddpcm       : File->dpcm \n");    printf("loaddp         : File->dp \n");    printf("loaducode      : dram->vp ucode ram \n");    printf("runucode       : run ucode \n");    printf("vcxi           : goto vcxi\n");#if 0    printf("---more or 'q'----");    gets(user_input);    if (user_input[0] == 'q') return(0);    printf("initsio        : Super IO initialize\n");    printf("sior           : Super IO System reg read\n");    printf("siow           : Super IO System reg write\n");    printf("siodump        : Super IO System regs Dump\n");    printf("loop           : 232c loop back test\n");    printf("xmit           : 232c xmit test \n");    printf("int            : 232c interrupt test \n");#endif    return(0);}/***************************************************************************** Make a wild guess *****************************************************************************/static int proc_cont(){    return(-1);}/****************************************************************************** Write a dword ******************************************************************************/static int proc_w(){    int *address, value;    puts("Write a dword. Enter byte adress(x), value(x): ");    scanf("%lx,%lx", &address, &value);    *address = value;    return(0);}/****************************************************************************** Read a dword ******************************************************************************/static int proc_r(){    int *address;    puts("Read a dword. Enter byte adress(x): ");    scanf("%lx",&address);    printf("[0x%08x] = 0x%08x (%ld)\n", address, *address, *address);    return(0);}/****************************************************************************** Write a byte ******************************************************************************/static int proc_wb(){    unsigned char *address;    int value;    puts("Write a byte. Enter byte adress(x), value(x): ");    scanf("%lx,%lx", &address, &value);    *address = value & 0xff;    return(0);}/****************************************************************************** Read a byte ******************************************************************************/static int proc_rb(){    unsigned char *address;    printf("Read a byte. Enter byte adress(x): ");    scanf("%lx", &address);    printf("[0x%08x] = 0x%02x (%d)\n", address, *address, *address);    return(0);}/****************************************************************************** Dump a block of memory  ******************************************************************************/static int proc_dump(void){    int address;    char keyin[40];    printf("Starting byte address: ");    gets(keyin); address = AsciiHIToDw(keyin);    while (1) {    /*	printf("%08x:\n", address);	DBG_print_short(128, (short *)address);    */	DBG_print_int(64, (int *)address);	address += 64*4;	printf("---more or 'q'----");	gets(user_input);	if (user_input[0] == 'q') return(0);    }    return(0);}/****************************************************************************** Modify a block of memory  ******************************************************************************/static int proc_edit(){    int *address;    printf("Starting byte address in hex: ");    scanf("%lx", &address);    user_input[0] = 0;    gets(c_dummy);     while (1) {	printf("%08x: %08x -> ", address, *address);	gets(user_input);	if (user_input[0] == 'q' ) return(0);	sscanf(user_input, "%x", address);		address++;    }    return(0);}/****************************************************************************** Fill a block of memory  ******************************************************************************/static int proc_fill(){    int value;    int count;    int *address;    printf(" Enter starting byte address(x), count(d), value(x): ");    scanf("%x,%d,%x",&address, &count, &value);    while (count-- > 0) {	*address++ = value;    }    return(0);}/****************************************************************************** read memory & write to file ******************************************************************************/static int proc_save(){    int 	  length;    unsigned char *address;    char 	  fname[20];    int 	  fp;    printf("Filname: ");    scanf("%s", fname);    fp = open(fname, O_BINARY | O_RDONLY );    if (fp != -1) {    	close(fp);	printf("File: %s already exist. Overwrite (Y/N)? ", fname);	(void) getchar();	if ((getchar()&0xdf)!='Y') return(0);    }    printf("Enter starting byte address(x), count in bytes(d): ");    scanf("%lx,%ld", &address, &length);    fp = DBG_dump_memory(address, length, -1, fname);     if (fp != -1) close(fp);}/****************************************************************************** read from file and write to memory. ******************************************************************************/static int proc_load(){    int 	  length, offset;    unsigned char *address;    char 	  fname[20];    int 	  fp;    printf("Filname: ");    scanf("%s", fname);    /* Everything in bytes */    printf("Mem addr(x), count(d), file offset(d): ");    scanf("%lx,%ld,%ld", &address, &length, &offset);    fp = DBG_load_memory(address, length, offset, -1, fname);     if (fp != -1) close(fp);}/***************************************************************************** SUPER IO control entry.  *****************************************************************************/#if 0static int proc_InitSIO(void){	InitSIO();	return(0);}static int proc_SIOSysRead(void){	SIOSysRead();	return(0);}static int proc_SIOSysWrite(void){	SIOSysWrite();	return(0);}static int proc_SIOSysDump(void){	SIOSysDump();	return(0);}static int proc_LoopBackTest(void){	LoopBackTest();	return(0);}static int proc_XmitTest(void){	XmitTest();	return(0);}static int proc_IntTest(void){        IntTest();	return(0);}#endif/***************************************************************************** Gateway to vcxi. *****************************************************************************/static int proc_vcxi(void){    printf("Entering vcxi. To exit set vcx_on to 0.\n");    vcx_on = 1;    while(vcx_on){	VCX_service();#ifdef FRACTINT    	if (FRACT_display_on) FRACT_set_palette();    	if (FRACT_process_on) FRACT_paint_a_block();#endif#ifdef FADE    	if (FADE_in_process) Fade();#endif    }    return(0);}/***************************************************************************** Save dp to a file. *****************************************************************************/static int proc_savedp(){    dp_dm_save(1);    return(0);}/***************************************************************************** Save dpcm to a file. *****************************************************************************/static int proc_savedpcm(){    dp_dm_save(0);    return(0);}/***************************************************************************** Load dp. *****************************************************************************/static int proc_loaddp(){    dp_dm_load(1);    return(0);}/***************************************************************************** Load dpcm. *****************************************************************************/static int proc_loaddpcm(){    dp_dm_load(0);    return(0);}/***************************************************************************** Write dp. *****************************************************************************/static int proc_wdp(){    int	  sadr;    char  keyin[40];    int	  where, n;    printf("DRAM offset(x), VP address in shorts(d), n in dwords(d): ");    gets(keyin); sscanf(keyin,"%x,%d,%d",&where,&sadr,&n);    dp_dm_write(1, where, n, sadr);    return(0);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品女主播av| 欧美熟乱第一页| 欧美精品一区二区久久久| 亚洲3atv精品一区二区三区| 99久久国产免费看| 18欧美亚洲精品| 91美女福利视频| 日韩va亚洲va欧美va久久| av激情成人网| 一级女性全黄久久生活片免费| 国产成人啪午夜精品网站男同| 欧美电视剧免费全集观看| 久久超级碰视频| 亚洲国产精品av| 日本乱人伦aⅴ精品| 亚洲国产一区二区视频| 欧美精品vⅰdeose4hd| 久久精品国产免费看久久精品| 精品国产欧美一区二区| jlzzjlzz欧美大全| 亚洲www啪成人一区二区麻豆| 欧美电影在哪看比较好| 亚洲精品国久久99热| 91精品一区二区三区在线观看| 久久99久久99| 亚洲综合激情另类小说区| 日韩欧美在线观看一区二区三区| 国产91精品精华液一区二区三区 | 美女一区二区久久| 国产精品视频一二三| 欧美久久久久久久久久| 在线观看视频欧美| 五月天婷婷综合| 国产精品久久综合| 欧美成人官网二区| k8久久久一区二区三区| 日本最新不卡在线| 亚洲综合视频在线观看| 中文字幕亚洲成人| 国产丝袜在线精品| 日韩一级免费一区| 欧美日韩另类一区| 欧美性xxxxxxxx| 色综合咪咪久久| 91亚洲精品一区二区乱码| 国产一区二区h| 成人丝袜18视频在线观看| 国产欧美一区二区三区网站| 色悠悠久久综合| 99久久精品国产麻豆演员表| 成人精品国产一区二区4080| 国产成人亚洲精品狼色在线| 欧美aaaaaa午夜精品| 蜜桃视频免费观看一区| 男人操女人的视频在线观看欧美| 一区二区三区成人在线视频| 亚洲精品一卡二卡| 亚洲国产一二三| 欧美aaa在线| 国产不卡视频在线观看| 色婷婷精品久久二区二区蜜臀av| 色一情一乱一乱一91av| 欧美日韩在线一区二区| 91精品国产欧美一区二区18| 日韩女优制服丝袜电影| 国产欧美日本一区视频| 一区二区不卡在线播放| 午夜av电影一区| 成人免费视频播放| 欧美色电影在线| 国产欧美日韩在线观看| 一区二区三区在线视频观看58| 日韩电影在线免费观看| 成人美女视频在线观看| 欧美日韩的一区二区| 中文在线资源观看网站视频免费不卡 | 欧美va亚洲va| 1024国产精品| 国内国产精品久久| 欧美午夜精品一区| 国产日本欧洲亚洲| 日一区二区三区| 99久久精品免费看国产免费软件| 欧美一区二区三区成人| 亚洲国产成人高清精品| 成人免费观看av| 久久久久久久久久久久久久久99 | 不卡视频在线观看| 亚洲精品一区在线观看| 亚洲国产你懂的| 在线观看免费成人| 偷拍日韩校园综合在线| 国产精品资源在线看| 91精品国产乱| 蜜桃在线一区二区三区| 欧美电视剧免费全集观看| 久久国产夜色精品鲁鲁99| 欧美一区二区啪啪| 国产毛片精品视频| 国产欧美视频一区二区| av中文字幕不卡| 亚洲精品免费一二三区| 91麻豆福利精品推荐| 日韩一区中文字幕| 色婷婷亚洲精品| 天天综合色天天| 久久丝袜美腿综合| av电影天堂一区二区在线| 亚洲男人的天堂av| 欧美日韩国产免费| 秋霞影院一区二区| 久久久亚洲精华液精华液精华液| 国产一区在线视频| 夜夜亚洲天天久久| 久久综合丝袜日本网| 91女厕偷拍女厕偷拍高清| eeuss鲁片一区二区三区在线看| 中文字幕日韩一区| 欧美精品成人一区二区三区四区| 激情综合五月婷婷| 亚洲综合色区另类av| 日韩欧美精品三级| 一本久久精品一区二区| 毛片不卡一区二区| 亚洲黄色av一区| 日韩欧美中文字幕制服| 91热门视频在线观看| 国产一区二区三区香蕉| 亚洲一区二区三区精品在线| 国产精品拍天天在线| 精品久久久久久久久久久久包黑料 | 1024成人网色www| 亚洲国产精品t66y| 欧美精品一区二区三区蜜桃视频| 色偷偷88欧美精品久久久| 国产精品18久久久久久久久| 日本成人中文字幕在线视频| 樱花草国产18久久久久| 国产精品欧美精品| 国产精品美女久久久久久2018| 欧美v亚洲v综合ⅴ国产v| 欧美卡1卡2卡| 91精品国产综合久久婷婷香蕉| 欧美自拍偷拍一区| 日本精品一区二区三区四区的功能| 国产在线播精品第三| 国产精品资源在线| 国产精品久久久一本精品| 国产精品美女久久久久久久久久久 | 欧美图片一区二区三区| 欧美日韩高清一区| 欧美日韩久久久久久| 欧美老年两性高潮| 精品福利一二区| 中文字幕乱码日本亚洲一区二区 | 经典三级一区二区| 成人中文字幕合集| 91一区二区在线| 91精品国产色综合久久久蜜香臀| 日韩精品一区二区三区在线| 欧美激情一区二区三区在线| 亚洲男人的天堂在线aⅴ视频| 亚洲精品视频一区二区| 亚洲国产wwwccc36天堂| 精品午夜久久福利影院| 91国在线观看| 久久精品亚洲一区二区三区浴池| 中文字幕一区二区在线观看| 午夜一区二区三区视频| 久久成人综合网| 久久亚洲一级片| 亚洲无人区一区| 国产成+人+日韩+欧美+亚洲| 欧美久久久久久久久| 亚洲女同ⅹxx女同tv| 国产一区二区女| 337p亚洲精品色噜噜噜| 欧美激情一区在线观看| 裸体健美xxxx欧美裸体表演| 色一区在线观看| 中文字幕亚洲一区二区av在线| 开心九九激情九九欧美日韩精美视频电影 | 久久久久国产免费免费| 欧美日韩一级片在线观看| 国产午夜精品久久久久久久| 亚洲欧美国产毛片在线| 尤物视频一区二区| 日本不卡在线视频| 欧美日韩亚洲综合| 自拍偷拍欧美激情| 成人精品视频一区| 26uuu国产一区二区三区| 天天色天天爱天天射综合| 日本久久电影网| 亚洲综合色自拍一区| 欧美午夜不卡视频| 亚洲18色成人| 欧美精品久久一区二区三区| 亚洲一区二区三区自拍| 欧美性极品少妇|