dostunnel

changeset 4:ba868d348de8

stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 16 Mar 2013 06:39:52 +0200
parents a8024271c662
children 0f984156753e
files Makefile src/timer.c src/tunnel.c
diffstat 3 files changed, 9 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/Makefile	Sat Mar 16 03:35:08 2013 +0200
     1.2 +++ b/Makefile	Sat Mar 16 06:39:52 2013 +0200
     1.3 @@ -2,11 +2,12 @@
     1.4        wvga.obj &
     1.5        dpmi.obj &
     1.6        palman.obj &
     1.7 -      texture.obj
     1.8 +      texture.obj &
     1.9 +	  timer.obj
    1.10  bin = wtunnel.exe
    1.11  
    1.12  CC = wcc386
    1.13 -CFLAGS = -fp5 -ot
    1.14 +CFLAGS = -5 -fp5 -otexan -zq -bt=dos
    1.15  LD = wlink
    1.16  
    1.17  $(bin): $(obj)
     2.1 --- a/src/timer.c	Sat Mar 16 03:35:08 2013 +0200
     2.2 +++ b/src/timer.c	Sat Mar 16 06:39:52 2013 +0200
     2.3 @@ -122,9 +122,10 @@
     2.4  		 * do it if I am to call the previous function
     2.5  		 */
     2.6  		dos_ticks = 0;
     2.7 -		_chain_intr(prev_timer_intr);	/* DOES NOT RETURN */
     2.8 -	} else {
     2.9 -		/* send EOI to the PIC */
    2.10 -		outp(PIC1_CMD, OCW2_EOI);
    2.11 +		_chain_intr(prev_timer_intr);	/* XXX DOES NOT RETURN */
    2.12 +		return;	/* just for clarity */
    2.13  	}
    2.14 +
    2.15 +	/* send EOI to the PIC */
    2.16 +	outp(PIC1_CMD, OCW2_EOI);
    2.17  }
     3.1 --- a/src/tunnel.c	Sat Mar 16 03:35:08 2013 +0200
     3.2 +++ b/src/tunnel.c	Sat Mar 16 06:39:52 2013 +0200
     3.3 @@ -45,7 +45,7 @@
     3.4  		return 1;
     3.5  	}
     3.6  
     3.7 -	while(!kbhit()) {
     3.8 +	while(!kbhit() || getch() != 27) {
     3.9  		display();
    3.10  	}
    3.11  	cleanup();