X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_tail.c;h=3b1cb42c3b0c9c76887689bd9dccc4f97aed0d17;hb=52fab2ff9ef6a39ed9303b0df1ce0ad9c9180ef1;hp=557c4968930439d4c1efb3d89e8a87a70589d1d4;hpb=93e1ab2e43ce82facb47476d9ee461b0d5beb83e;p=16.git diff --git a/src/lib/16_tail.c b/src/lib/16_tail.c index 557c4968..3b1cb42c 100755 --- a/src/lib/16_tail.c +++ b/src/lib/16_tail.c @@ -79,7 +79,7 @@ void Startup16(global_game_variables_t *gvar) #ifdef __DEBUG_InputMgr__ if(!dbg_nointest) #endif - IN_Startup(); + IN_Startup(gvar); #endif #ifdef __16_PM__ PM_Startup(gvar); @@ -110,7 +110,7 @@ void Shutdown16(global_game_variables_t *gvar) #ifdef __DEBUG_InputMgr__ if(!dbg_nointest) #endif - IN_Shutdown(); + IN_Shutdown(gvar); #endif CA_Shutdown(gvar); MM_Shutdown(gvar); @@ -394,37 +394,37 @@ char global_temp_status_text2[512]; void turboXT(byte bakapee) { __asm { - push ax - push bx - push cx - in al, 61h //; Read equipment flags - xor al, bakapee //; toggle speed - out 61h, al //; Write new flags back - - mov bx, 0F89h //; low pitch blip - and al, 4 //; Is turbo mode set? - jz @@do_beep - mov bx, 52Eh //; high pitch blip - -@@do_beep: - mov al, 10110110b //; Timer IC 8253 square waves - out 43h, al //; channel 2, speaker - mov ax, bx - out 42h, al //; send low order - mov al, ah //; load high order - out 42h, al //; send high order - in al, 61h //; Read IC 8255 machine status - push ax - or al, 00000011b - out 61h, al //; Turn speaker on - mov cx, 2000h -@@delay: - loop @@delay - pop ax - out 61h, al //; Turn speaker off - pop cx - pop bx - pop ax + push ax + push bx + push cx + in al, 61h //; Read equipment flags + xor al, bakapee //; toggle speed + out 61h, al //; Write new flags back + + mov bx, 0F89h //; low pitch blip + and al, 4 //; Is turbo mode set? + jz @@do_beep + mov bx, 52Eh //; high pitch blip + + @@do_beep: + mov al, 10110110b //; Timer IC 8253 square waves + out 43h, al //; channel 2, speaker + mov ax, bx + out 42h, al //; send low order + mov al, ah //; load high order + out 42h, al //; send high order + in al, 61h //; Read IC 8255 machine status + push ax + or al, 00000011b + out 61h, al //; Turn speaker on + mov cx, 2000h + @@delay: + loop @@delay + pop ax + out 61h, al //; Turn speaker off + pop cx + pop bx + pop ax } } #endif