# HG changeset patch # User John Tsiombikas # Date 1363408792 -7200 # Node ID ba868d348de8064eda1a4740c3b703a3d2b56d6d # Parent a8024271c662ea33cc7fd5964f81d89ebeed0a70 stuff diff -r a8024271c662 -r ba868d348de8 Makefile --- a/Makefile Sat Mar 16 03:35:08 2013 +0200 +++ b/Makefile Sat Mar 16 06:39:52 2013 +0200 @@ -2,11 +2,12 @@ wvga.obj & dpmi.obj & palman.obj & - texture.obj + texture.obj & + timer.obj bin = wtunnel.exe CC = wcc386 -CFLAGS = -fp5 -ot +CFLAGS = -5 -fp5 -otexan -zq -bt=dos LD = wlink $(bin): $(obj) diff -r a8024271c662 -r ba868d348de8 src/timer.c --- a/src/timer.c Sat Mar 16 03:35:08 2013 +0200 +++ b/src/timer.c Sat Mar 16 06:39:52 2013 +0200 @@ -122,9 +122,10 @@ * do it if I am to call the previous function */ dos_ticks = 0; - _chain_intr(prev_timer_intr); /* DOES NOT RETURN */ - } else { - /* send EOI to the PIC */ - outp(PIC1_CMD, OCW2_EOI); + _chain_intr(prev_timer_intr); /* XXX DOES NOT RETURN */ + return; /* just for clarity */ } + + /* send EOI to the PIC */ + outp(PIC1_CMD, OCW2_EOI); } diff -r a8024271c662 -r ba868d348de8 src/tunnel.c --- a/src/tunnel.c Sat Mar 16 03:35:08 2013 +0200 +++ b/src/tunnel.c Sat Mar 16 06:39:52 2013 +0200 @@ -45,7 +45,7 @@ return 1; } - while(!kbhit()) { + while(!kbhit() || getch() != 27) { display(); } cleanup();