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

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

?? test16.c

?? VESA 圖形編程的匯編子程序庫
?? C
字號:
/****************************************************************************
*
*                          SuperVGA Test Library
*
*                   Copyright (C) 1993 SciTech Software
*                           All rights reserved.
*
* Filename:     $RCSfile: test16.c $
* Version:      $Revision: 1.2 $
*
* Language:     ANSI C
* Environment:  IBM PC (MSDOS)
*
* Description:  Simple program to test the operation of the SuperVGA
*               test kit library's bank switching and page flipping code
*               for 16 color SuperVGA video modes.
*
*               MUST be compiled in the large model.
*
* $Id: test16.c 1.2 1993/10/22 08:58:40 kjb release $
*
****************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dos.h>
#include <conio.h>
#include "svga.h"

/*---------------------------- Global Variables ---------------------------*/

#include "version.c"

int     x,y;

/* External routines */

void _copyTest16(void);

/*----------------------------- Implementation ----------------------------*/

void moireTest(void)
/****************************************************************************
*
* Function:     moireTest
*
* Description:  Draws a simple Moire pattern on the display screen using
*               lines, and waits for a key press.
*
****************************************************************************/
{
    uchar   buf[80];
    int     i;

    clear();
    for (i = 0; i < maxx; i += 10) {
        line(maxx/2,maxy/2,i,0,i % maxcolor);
        line(maxx/2,maxy/2,i,maxy,(i+1) % maxcolor);
        }
    for (i = 0; i < maxy; i += 10) {
        line(maxx/2,maxy/2,0,i,(i+2) % maxcolor);
        line(maxx/2,maxy/2,maxx,i,(i+3) % maxcolor);
        }
    line(0,0,maxx,0,defcolor);
    line(0,0,0,maxy,defcolor);
    line(maxx,0,maxx,maxy,defcolor);
    line(0,maxy,maxx,maxy,defcolor);

    if (maxx != 319) {
        x = 80;
        y = 80;
        writeText(x,y,"Bank switching test",defcolor);  y += 32;
        sprintf(buf,"Video mode: %d x %d 16 color",maxx+1,maxy+1);
        writeText(x,y,buf,defcolor);    y += 16;
        sprintf(buf,"Maximum x: %d, Maximum y: %d, BytesPerLine %d, Pages: %d",
            maxx,maxy,bytesperline,maxpage+1);
        writeText(x,y,buf,defcolor);    y += 32;
        writeText(x,y,"You should see a colorful Moire pattern on the screen",defcolor);
        y += 16;
        }
    else {
        x = 40;
        y = 40;
        }
    writeText(x,y,"Press any key to continue",defcolor);
    y += 32;
    getch();
}

void readWriteTest(void)
/****************************************************************************
*
* Function:     readWriteTest
*
* Description:  Test the separate read/write bank routines if available.
*               We do this by copying the top half of video memory to
*               the bottom half of the second video page.
*
*               This test is designed to run only in the 800x600 video mode.
*
****************************************************************************/
{
    if (twobanks && maxpage != 0 && (maxx == 799)) {
        writeText(x,y,"To test the separate read/write banks, the top half of",defcolor);
        y += 16;
        writeText(x,y,"this display page should be moved to the bottom half of",defcolor);
        y += 16;
        writeText(x,y,"the second display page",defcolor);
        setActivePage(1);
        clear();
        setVisualPage(1);
        _copyTest16();
        x = y = 80;
        writeText(x,y,"Press any key to continue",defcolor);
        getch();
        }
}

void pageFlipTest(void)
/****************************************************************************
*
* Function:     pageFlipTest
*
* Description:  Animates a line on the display using page flipping if
*               page flipping is active.
*
****************************************************************************/
{
    int     i,j,istep,jstep,color,apage,vpage;
    char    buf[80];

    if (maxpage != 0) {
        vpage = 0;
        apage = 1;
        setActivePage(apage);
        setVisualPage(vpage);
        i = 0;
        j = maxy;
        istep = 2;
        jstep = -2;
        color = 15;
        while (!kbhit()) {
            setActivePage(apage);
            clear();
            sprintf(buf,"Page %d of %d", vpage+1, maxpage+1);
            if (maxx == 319) {
                writeText(0,80,"Page flipping - should be no flicker",defcolor);
                writeText(0,100,buf,defcolor);
                }
            else {
                writeText(80,80,"Page flipping - should be no flicker",defcolor);
                writeText(80,100,buf,defcolor);
                }
            line(i,0,maxx-i,maxy,color);
            line(0,maxy-j,maxx,j,color);
            vpage = ++vpage % (maxpage+1);
            setVisualPage(vpage);
            apage = ++apage % (maxpage+1);
            i += istep;
            if (i > maxx) {
                i = maxx-2;
                istep = -2;
                }
            if (i < 0)  i = istep = 2;
            j += jstep;
            if (j > maxy) {
                j = maxy-2;
                jstep = -2;
                }
            if (j < 0)  j = jstep = 2;
            }
        getch();                /* Swallow keypress */
        }
}

void testingComplete(void)
/****************************************************************************
*
* Function:     testingComplete
*
* Description:  Clears the first display page and puts up a message.
*
****************************************************************************/
{
    setActivePage(0);
    setVisualPage(0);
    clear();

    if (maxx == 319) {
        writeText(0,40,"Testing complete",defcolor);
        writeText(0,60,"press any key to return to text mode",defcolor);
        }
    else
        writeText(80,80,"Testing complete - press any key to return to text mode",defcolor);
    getch();
}

int queryCpu(void);

void main(void)
{
    int     i,choice,maxmenu;
    int     xres,yres,bitsperpixel,memmodel,maxpage;
    long    pagesize;
    int     menu[20];
    char    buf[80];

    if (queryCpu() < 4) {
        printf("This program contains '386 specific instructions, and will not work on\n");
        printf("this machine - sorry\n");
        }

    if (initSuperVGA() != 0x102) {
        printf("This program requires a VESA VBE 1.2 compatible SuperVGA. Try installing\n");
        printf("the Universal VESA VBE for your video card, or contact your video card\n");
        printf("vendor and ask for a suitable TSR\n");
        exit(1);
        }

    while (true) {
#ifdef  __TURBOC__
        clrscr();
#endif
        printf("16 color SuperVGA test program (Version %s)\n\n",version);
        printf("VBE OEM string: %s\n",OEMString);
        printf("Memory:         %dk\n",memory);
        printf("\n");
        printf("Separate read/write banks: %s\n", twobanks ? "Yes" : "No");
        printf("Extended page flipping:    %s\n", extendedflipping ? "Yes" : "No");
        printf("8 bit wide DAC support:    %s\n", widedac ? "Yes" : "No");
        printf("\n");
        printf("Which video mode to test:\n\n");

        maxmenu = 0;

        /* Add standard VGA modes to menu */

        getSuperVGAModeInfo(menu[maxmenu] = 0x0D,&xres,&yres,&bytesperline,
                &bitsperpixel,&memmodel,&maxpage,&pagesize);
        printf("    [%2d] - %d x %d 16 color (%d page)\n",maxmenu++,
            xres,yres,maxpage+1);

        getSuperVGAModeInfo(menu[maxmenu] = 0x0E,&xres,&yres,&bytesperline,
                &bitsperpixel,&memmodel,&maxpage,&pagesize);
        printf("    [%2d] - %d x %d 16 color (%d page)\n",maxmenu++,
            xres,yres,maxpage+1);

        getSuperVGAModeInfo(menu[maxmenu] = 0x10,&xres,&yres,&bytesperline,
                &bitsperpixel,&memmodel,&maxpage,&pagesize);
        printf("    [%2d] - %d x %d 16 color (%d page)\n",maxmenu++,
            xres,yres,maxpage+1);

        getSuperVGAModeInfo(menu[maxmenu] = 0x12,&xres,&yres,&bytesperline,
                &bitsperpixel,&memmodel,&maxpage,&pagesize);
        printf("    [%2d] - %d x %d 16 color (%d page)\n",maxmenu++,
            xres,yres,maxpage+1);

        for (i = 0; modeList[i] != -1; i++) {
            /* Filter out the 16 color planar video modes */

            if (!getSuperVGAModeInfo(modeList[i],&xres,&yres,&bytesperline,
                    &bitsperpixel,&memmodel,&maxpage,&pagesize))
                continue;
            if ((bitsperpixel == 4) && (memmodel == memPL)) {
                printf("    [%2d] - %d x %d 16 color (%d page)\n",maxmenu,
                    xres,yres,maxpage+1);
                menu[maxmenu++] = modeList[i];
                }
            }
        printf("    [ Q] - Quit\n\n");
        printf("Choice: ");

        gets(buf);
        if (buf[0] == 'q' || buf[0] == 'Q')
            break;

        choice = atoi(buf);
        if (0 <= choice && choice < maxmenu) {
            if (!setSuperVGAMode(menu[choice])) {
                printf("\n");
                printf("ERROR: Video mode did not set correctly!\n\n");
                printf("\nPress any key to continue...\n");
                getch();
                }
            else {
                moireTest();
                readWriteTest();
                pageFlipTest();
                testingComplete();
                restoreMode();
                }
            }
        }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品不卡| 2014亚洲片线观看视频免费| 国产调教视频一区| 久久久久亚洲蜜桃| 成人一区二区三区中文字幕| 91精品婷婷国产综合久久性色| 日本一区中文字幕| 国产女同性恋一区二区| 欧美性受xxxx| 国产精品影视在线| 亚洲成在人线免费| 中文字幕第一页久久| 7777精品久久久大香线蕉| 欧美色窝79yyyycom| 欧美日韩你懂的| www.66久久| 韩国一区二区在线观看| 午夜伊人狠狠久久| 51精品视频一区二区三区| 美女脱光内衣内裤视频久久网站| 欧美日韩久久久| 亚洲成人第一页| av成人免费在线| 99r精品视频| 极品少妇xxxx精品少妇偷拍 | 日韩欧美国产一区在线观看| 成人精品国产免费网站| 美腿丝袜一区二区三区| 韩国成人福利片在线播放| 福利电影一区二区| 国产伦理精品不卡| proumb性欧美在线观看| 欧美无砖砖区免费| 精品电影一区二区三区 | 中文字幕在线一区免费| 久久久精品一品道一区| 亚洲免费伊人电影| 亚洲欧美在线另类| 国产精品免费免费| 国产精品嫩草99a| 午夜精品成人在线| 五月天亚洲婷婷| 国产成人无遮挡在线视频| 国产一区欧美二区| 日本道精品一区二区三区 | 日日摸夜夜添夜夜添国产精品| 夜色激情一区二区| 亚洲乱码中文字幕综合| 一区二区三区日韩精品视频| 精品一区二区日韩| 欧美日韩一本到| 国产精品乱子久久久久| 久久精品国产亚洲aⅴ | 久久伊人中文字幕| 亚洲自拍欧美精品| 日韩精品亚洲一区二区三区免费| 成人性生交大片免费看中文网站| 欧美日韩欧美一区二区| 一区二区三区日韩| 波多野结衣视频一区| 精品国免费一区二区三区| 午夜精品久久久久久不卡8050 | 国产精品视频在线看| 日韩精品电影一区亚洲| 欧美系列在线观看| 亚洲免费在线看| 91麻豆国产在线观看| 精品视频在线看| 亚洲激情网站免费观看| 成人激情开心网| 欧美国产丝袜视频| 成人性生交大合| 欧美国产激情一区二区三区蜜月| 美女www一区二区| 欧美成人猛片aaaaaaa| 亚洲国产精品v| 成人综合婷婷国产精品久久蜜臀| 欧美成人国产一区二区| 喷水一区二区三区| 97久久超碰精品国产| 国产精品免费人成网站| 成人激情av网| 成人免费在线视频观看| hitomi一区二区三区精品| 国产精品三级视频| 91论坛在线播放| 亚洲一级片在线观看| 欧美日韩色综合| 日本视频免费一区| 8v天堂国产在线一区二区| 日韩主播视频在线| 日本美女一区二区| 国内精品视频666| 日韩中文字幕麻豆| 午夜激情久久久| 91麻豆精品久久久久蜜臀| 爽好多水快深点欧美视频| 欧美电影在线免费观看| 日韩欧美一区二区不卡| 国产综合久久久久久鬼色| 久久久国产精华| 色婷婷av一区二区三区之一色屋| 欧美成人一区二区| 成人天堂资源www在线| 夜色激情一区二区| 精品久久久久久无| 91亚洲大成网污www| 日韩电影免费在线| 国产精品全国免费观看高清| 欧洲另类一二三四区| 91在线porny国产在线看| 一区二区三区在线视频观看| 亚洲免费在线观看视频| 欧美影视一区在线| 久久精品国产亚洲5555| 国产精品美女一区二区| 欧美日韩国产123区| 国产在线国偷精品产拍免费yy| 亚洲天堂精品在线观看| 蜜臀av在线播放一区二区三区| 国产亚洲女人久久久久毛片| 色94色欧美sute亚洲线路一久 | 大桥未久av一区二区三区中文| 亚洲视频中文字幕| 精品日韩一区二区三区| 色一区在线观看| 国产综合一区二区| 亚洲一区二区在线播放相泽| 久久日韩精品一区二区五区| 色欧美乱欧美15图片| 激情综合网天天干| 香蕉久久夜色精品国产使用方法| 国产午夜亚洲精品羞羞网站| 欧美日韩激情一区二区| 99综合电影在线视频| 韩国一区二区视频| 偷拍日韩校园综合在线| 亚洲精品日产精品乱码不卡| 亚洲国产精品精华液2区45| 欧美一级高清大全免费观看| 免费观看30秒视频久久| 一区二区三区四区中文字幕| 在线欧美一区二区| 日韩精品1区2区3区| 国产精品传媒在线| 久久综合九色综合欧美亚洲| 欧美日本在线播放| 色婷婷av一区二区三区之一色屋| 成人妖精视频yjsp地址| 国产精品1区2区| 久久精品国产精品亚洲红杏| 丝袜美腿亚洲一区二区图片| 亚洲中国最大av网站| 一区二区三区在线观看网站| 国产精品久久久久永久免费观看| 欧美精品一区男女天堂| 日韩久久免费av| 综合久久给合久久狠狠狠97色| 国产精品丝袜一区| 国产精品女人毛片| 一区二区三区四区视频精品免费| 综合久久综合久久| 伊人一区二区三区| 亚洲一区日韩精品中文字幕| 一区二区国产视频| 日韩高清不卡在线| 日本中文字幕一区二区视频| 激情文学综合丁香| 一区二区在线观看免费视频播放| 精品国内片67194| 国产性做久久久久久| 中文字幕av一区 二区| 国产精品福利在线播放| 中文字幕一区日韩精品欧美| 亚洲欧美日韩中文字幕一区二区三区| 亚洲三级在线看| 亚洲国产美女搞黄色| 亚洲精品在线电影| 国产精品丝袜久久久久久app| 国产精品久久二区二区| 一二三区精品福利视频| 日韩二区三区四区| 看片的网站亚洲| 国产91精品精华液一区二区三区| 成人h动漫精品一区二区| 在线亚洲+欧美+日本专区| 日韩一区二区三区视频| 国产三级三级三级精品8ⅰ区| 日本不卡一二三| 国产成人在线视频网站| 欧美色视频在线观看| 精品av综合导航| 亚洲欧美国产77777| 麻豆精品久久精品色综合| 一级特黄大欧美久久久| 岛国av在线一区| 91麻豆精品国产91久久久更新时间| 日韩视频不卡中文| 亚洲人一二三区| 国模冰冰炮一区二区|