OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [src/] [contrib/] [MWIN-TCN.PRJ] - Rev 1765

Compare with Previous | Blame | View Log

        /* set video mode */
        regs.h.al = 0x13;
        regs.h.ah = 0x00;
        int86(VIDEO_INT, &regs, &regs);
        y = 100;
                outport(0x03c4, 2 + mask * 0x100);
#include <ctype.h>
   while (bioskey(1) == 0);
   /* function 0 returns the key that is waiting */
/*
   key = bioskey(0);
   printf("%d\n", key);
%#04x
   printf("%d  %#04x%  %c\n", key, key, (char) key);
   printf("%#04x\n", key);
   printf("%#04x\n", key);
   printf("%d\n", key);
   printf("%#04x\n", key);
   printf("Scan-cod  = %#02x\n", (key & 0xff00));
   printf("ASCII-cod = %#02x\n", (key & 0x00ff));

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.