]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/dos_kb.c
authorsparky4 <sparky4@cock.li>
Mon, 8 Sep 2014 18:22:02 +0000 (13:22 -0500)
committersparky4 <sparky4@cock.li>
Mon, 8 Sep 2014 18:22:02 +0000 (13:22 -0500)
modified:   16/modex16/pcxtest.exe
modified:   16/modex16/scroll.c
modified:   16/modex16/scroll.exe
modified:   16/modex16/test.exe
modified:   16/modex16/test2.exe

16/modex16/dos_kb.c
16/modex16/pcxtest.exe
16/modex16/scroll.c
16/modex16/scroll.exe
16/modex16/test.exe
16/modex16/test2.exe

index b6eac792c90cfe1eb8027e40fb346296327a0706..7c6030ae4078b40787d88b3a2833b9878d36222f 100644 (file)
@@ -19,6 +19,7 @@ static void interrupt (far *oldkb)(void) = NULL; /* BIOS keyboard handler */
  * to be included.
  */
 //#define TESTING
+#define TESTING2
 
 /*****************NEW KEYBOARD 09h ISR***********************/
 void interrupt newkb(void){
@@ -35,8 +36,8 @@ void interrupt newkb(void){
        outp(0x61, qx);    /* Toggle acknowledge bit low */
 
        /* Interpret the scan code and set our flags */
-       #ifdef TESTING
-       //printf("%d[%d]\n",kee,key[kee]);
+       #ifdef TESTING2
+       printf("%d[%d]\n",kee,key[kee]);
        #endif
        if(kee & 0x80)
                key[kee & 0x7F] = 0; // a key is released
@@ -59,15 +60,15 @@ void setkb(int vq){
                _dos_setvect(9, oldkb);
                /* Reset our function pointer to contain no valid address */
                oldkb = NULL;
-               #ifdef TESTING
+               #ifdef TESTING2
                /* Print the key heap */
-               /*printf("\n");
+               printf("\n");
                for(i=0; i<NUM_SCANCODES; i++){
                        if(i==NUM_SCANCODES/2) printf("================================\n");
                        printf("%03d[%d][%d]",i+1,key[i],kea[i]);
                        if(key[i]==1)printf("====");
                        printf(",\n");
-               }*/
+               }
                #endif
        }else if(vq == 1){ // initiation
                byte far *lock_key;
index 89c7beff065ba4d4782f7bd4bddae2d09650380e..4ab5474eda921991e739342a6e978af201ef95d2 100644 (file)
Binary files a/16/modex16/pcxtest.exe and b/16/modex16/pcxtest.exe differ
index cea92abb2a5bb514268eca7a422db6622d7f2b2c..d3cb8eea0e771d603efeb015807fc8826f8633ca 100644 (file)
@@ -52,14 +52,14 @@ void main() {
        int x, y;\r
        //int ch=0x0;\r
        byte ch;\r
-       int q=0;
+       int q=0;\r
        page_t screen,screen2;\r
        map_t map;\r
        map_view_t mv, mv2;\r
        map_view_t *draw, *show, *tmp;\r
        byte *ptr;\r
        \r
-
+\r
        setkb(1);\r
        /* create the map */\r
        map = allocMap(40,30);\r
@@ -69,7 +69,7 @@ void main() {
 \r
        /* draw the tiles */\r
        ptr = map.data;\r
-       modexEnter();\r
+       //modexEnter();\r
        screen = modexDefaultPage();\r
        screen.width = 352;\r
        mv.page = &screen;\r
@@ -84,11 +84,12 @@ void main() {
        draw = &mv2;\r
 \r
        while(!keyp(1)) {\r
-       if(keyp(77)){\r
+       /*if(keyp(77)){\r
                for(q=0; q<16; q++) {\r
                mapScrollRight(draw, 1);\r
                modexShowPage(draw->page);\r
-               SWAP(draw, show);\r
+               //mapScrollRight(draw, 1);\r
+               //SWAP(draw, show);\r
                }\r
        }\r
 \r
@@ -96,8 +97,8 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollLeft(draw, 1);\r
                modexShowPage(draw->page);\r
-               mapScrollLeft(show, 1);\r
-               SWAP(draw, show);\r
+               //mapScrollLeft(show, 1);\r
+               //SWAP(draw, show);\r
                }\r
        }\r
 \r
@@ -105,8 +106,8 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollDown(draw, 1);\r
                modexShowPage(draw->page);\r
-               mapScrollDown(show, 1);\r
-               SWAP(draw, show);\r
+               //mapScrollDown(show, 1);\r
+               //SWAP(draw, show);\r
                }\r
        }\r
 \r
@@ -115,17 +116,16 @@ void main() {
                for(q=0; q<16; q++) {\r
                mapScrollUp(draw, 1);\r
                modexShowPage(draw->page);\r
-               mapScrollUp(show, 1);\r
-               SWAP(draw, show);\r
-\r
+               //mapScrollUp(show, 1);\r
+               //SWAP(draw, show);\r
                }\r
-       }\r
+       }*/\r
 \r
-       //keyp(ch);\r
+       keyp(ch);\r
 \r
        }\r
 \r
-       modexLeave();\r
+       //modexLeave();\r
        setkb(0);\r
 }\r
 \r
index 1b3e8e9efa0f6f41c15b7fe3f2c0738ec48cfddf..40f86bd05b830ff18eb44a0eb54d6949a0bd7efa 100755 (executable)
Binary files a/16/modex16/scroll.exe and b/16/modex16/scroll.exe differ
index dbc7ed27b32b7b009eade58ed286b7514893b26a..b0247b18e9ecb1cc9481de996b4b5eeabf440af8 100644 (file)
Binary files a/16/modex16/test.exe and b/16/modex16/test.exe differ
index a0f75a1e9f666b3babba4f526c33edc380ee09e8..23ca0df0b881ee1fbc2fe085faeb6600d6899847 100644 (file)
Binary files a/16/modex16/test2.exe and b/16/modex16/test2.exe differ