The ttintr instruction selectively identifies touch-tones that interrupt speech.
Synopsis
ttintr(ctype.ttstr, ctype.prev_ttstr)
Description
The ttintr() instruction sets the TouchTone (TT) interrupt mask to the string indicated by ctype.ttstr and copies the previous mask value to ctype.prev_ttstr. The TT interrupt mask determines what touch-tones interrupt speech playing or coding for the script. If char.-1 is used for ctype.prev_ttstr, then the previous mask value is not returned. If char.-1 is used for ctype.ttstr, then the current mask value is not changed.
Return values
ttintr() returns 0 in register 0 (r.0) for success and -1 for failure.
Examples
The following example sets interrupt mask so only digits 1, 2 or 3 interrupt coding or playing, and stores previous mask at the address defined by PREV_INTRMASK.
ttintr("123", char.PREV_INTRMASK)
See also