Skip to content
Browse files

Speech synth detects key presses and terminates.

  • Loading branch information...
1 parent f771536 commit 7d37c56e8643b302beb8987fce15f86688fd9325 @rahulg committed Apr 16, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 timer.asm
View
16 timer.asm
@@ -2195,6 +2195,15 @@ SPEECH_SYNTH PROC NEAR
PENDING_SOUND:
+ MOV DX, PORTB
+ MOV AL, 0FFh
+ OUT DX, AL
+
+ MOV DX, PORTC
+ IN AL, DX
+ AND AL, 0Fh
+ JNZ SOUND_INT
+
MOV SI, WORD PTR DS:SOUND_ADDR[0]
MOV DI, WORD PTR DS:SOUND_ADDR[2]
@@ -2225,6 +2234,13 @@ SOUND_DONE:
INC DS:SOUND_QUEUE_TAIL
+ JMP SOUND_REMAINS
+
+SOUND_INT:
+ MOV DS:SOUND_QUEUE_HEAD, 0
+ MOV DS:SOUND_QUEUE_TAIL, 0
+ MOV DS:SOUND_REM, 0
+
SOUND_REMAINS:
POP DI

0 comments on commit 7d37c56

Please sign in to comment.
Something went wrong with that request. Please try again.