* to be included.
*/
//#define TESTING
+#define TESTING2
/*****************NEW KEYBOARD 09h ISR***********************/
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
_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;
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
\r
/* draw the tiles */\r
ptr = map.data;\r
- modexEnter();\r
+ //modexEnter();\r
screen = modexDefaultPage();\r
screen.width = 352;\r
mv.page = &screen;\r
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
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
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
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