home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ENABLE READER 4.0 OPERATIONS MANUAL CHAPTER 5-1
-
-
- CHAPTER 5 TALKING TUTORIAL PROGRAMMER'S AID
-
-
- 5.0 INTRODUCTION
-
- The Talking Tutorial Programmer's Aid is designed for the
- experienced assembly level programmer. Interfacing between
- higher level lanuguages such as PASCAL and C BASIC are possible,
- yet we do not provide these bridges. There are ten calls that
- can be accessed through the INT 21 MSDOS Supervisor Call
- structure. Load the correct registers with the values
- necessary, and then do INT 21. Enable Reader 4.0 will save all
- registers except the FLAGS, where the ZERO Flag will be set if
- the call was not one of the available Enable Reader 4.0
- Functions. The Enable Reader Programmer's Aid will check to see
- if the instruction was successfully completed.
-
- When writing tutorials with the Enable Reader 4.0 System, the
- information that is printed to the screen will be spoken. Most
- of the tutorial will just use this feature. The Programmer's
- Aid is designed to provide byte I/O to the synthesizer without
- printing the information to the video screen, and to use Help
- Functions in the Enable Reader 4.0 program to enhance the way
- data will be spoken. For example, if you need to speak
- something in a way that would be confusing to the student if it
- were printed to the screen, such as spelling out a word or line,
- it is possible to send the data through the Enable Reader 4.0
- driver to the synthesizer in Spell Mode. This can be used to
- great advantage with programs that teach spelling and reading
- skills.
-
-
- 5.1 FUNCTION CALLS
-
- The following calls can be made to the INT 21 Call in MSDOS by
- loading the AH Register with FE HEX (254 Decimal), and then
- loading the AL register with the appropriate Ascii Character
- designated to call the function.
-
- The Enable Reader Driver is both Stream Oriented and
- Hierarchical in design. This means that entry points are
- accumulative, and data passing through the driver's other entry
- points gains the same attributes. By using byte-stream
- programming, and not using macros and calls to each subroutine,
- the data is processed more rapidly.
-
- The three most used entry points are: 1) DRIVER OUTPUT Call
- that sends a byte through the driver using all the Help
- functions that may be turned on, and the Punctuation routines;
- 2) DIRECT OUTPUT Call that sends a byte directly to the
- synthesizer, bypassing the driver and the punctuation filter;
- and 3) MESSAGE OUTPUT Call that turns off the Help functions in
- the driver, and still allows for punctuation filtering. The
- DIRECT OUTPUT Call will allow 8 bits to be sent, while the other
- two will only allow 7 bits.
-
-
-
-
-
-
-
-
- ENABLE READER 4.0 OPERATIONS MANUAL CHAPTER 5-2
-
-
- It has taken three years and fourteen versions of the program to
- identify speech primitives, assign hierarchy to Help Functions,
- integrate Punctuation Levels, and provide the four Entry Points;
- so that when you drop a byte in the top, it comes out the bottom
- without using look-up tables or macros.
-
- The Enable Reader Driver has a Character Filter and an Ascii
- Sort Routine. The Character Filter filters out all bytes over
- 80 HEX (graphics), and sends all bytes under 20 HEX (Control
- characters) to the Punctuation Level Routines. This allows no
- graphic characters to pass through the driver. It is possible
- to send 8 bit bytes to the synthesizer through the DIRECT OUTPUT
- call below.
-
-
- TALKING TUTORIAL FUNCTION CALLS
-
- DRIVER OUTPUT FUNCTION 01
-
- The DRIVER OUTPUT Call will output the character in DL through
- the Enable Reader driver, without turning off the Help
- Functions. It will be filtered by the Ascii sort routine in the
- Enable Reader Driver, and if it is punctuation it will be sent
- according to the Level of punctuation selected.
-
- See: DIRECT OUTPUT to send a byte directly to the synthesizer.
- See: MESSAGE OUTPUT for sending a byte with Help Functions
- turned off.
-
- ENTRY CONDITIONS:
-
- AL=01H
- AH=FEH
- DL=Character To Output
-
-
-
-
- DIRECT OUTPUT FUNCTION 02
-
- The DIRECT OUTPUT Call will send the byte in DL directly to the
- synthesizer, bypassing the Enable Reader driver and Ascii filter
- sort routine.
-
- ENTRY CONDITIONS:
-
- AL=02H
- AH=FEH
- DL=Character To Output
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ENABLE READER 4.0 OPERATIONS MANUAL CHAPTER 5-3
-
-
- MESSAGE OUTPUT FUNCTION 03
-
- The MESSAGE OUTPUT Call allows character filtration and
- punctuation, but turns off the Help Functions in the driver.
-
- ENTRY CONDITIONS:
-
- AL=03H
- AH=FEH
- DL=Character To Output
-
-
-
-
- AUTO FUNCTION A
-
- The AUTO Call turns on or off the Spell Mode. Read the
- discussion on AUTO in Chapter 4 Section 4.2 Help Keys.
-
- ENTRY CONDITIONS:
-
- AL=41H (ASCII A)
- AH=FEH
-
-
-
-
- PUNCTUATION LEVELS FUNCTION N
-
- The PUNCTUATION LEVELS Call selects one of five Punctuation
- Character Sets that can be accessed. The fifth level is "Output
- Punctuation", which allows all Ascii characters to be sent to
- the synthesizer without being filtered or translated into the
- Enable Reader 4.0 Punctuation Words. Read the discussion on
- PUNCTUATION LEVELS in Chapter 4 Section 4.2 Help Keys.
-
- ENTRY CONDITIONS:
-
- AL=4EH (ASCII N)
- AH=FEH
-
-
-
-
- HELP WORD LEVELS FUNCTION O
-
- The HELP Call selects one of four levels of Help in Enable
- Reader 4.0. By selecting "No Help" at the start of your
- program, you can use the other Help Functions without having
- them speak their prompts. Read the discussion on HELP WORDS in
- Chapter 4 Section 4.2 Help Keys.
-
- ENTRY CONDITIONS:
-
- AL=4FH (ASCII O)
- AH=FEH
-
-
-
-
-
-
-
- ENABLE READER 4.0 OPERATIONS MANUAL CHAPTER 5-4
-
-
- QUIT FUNCTION Q
-
- The QUIT Call will stop the synthesizer from speaking. For a
- discussion on the QUIT Function, read Chapter 4 Section 4.5
- Command Keys.
-
- ENTRY CONDITIONS:
-
- AL=51H (ASCII Q)
- AH=FEH
-
-
-
-
- LETTER-TO-WORD TRANSLATOR FUNCTION Z
-
- The TRANSLATOR Call turns on or off the Letter-To-Word
- Translator. For a discussion on the TRANSLATOR Function, read
- Chapter 4 Section 4.2 Help Keys.
-
- ENTRY CONDITIONS:
-
- AL=5AH (ASCII Z)
- AH=FEH
-
-
-
-
- UPPER CASE IDENTIFICATION FUNCTION T
-
- The UPPERCASE IDENTIFICATION Function turns on or off the
- identification of capital letters. For a discussion on the
- UPCASE Function, read Chapter 4 Section 4.2 Help Keys.
-
- ENTRY CONDITIONS:
-
- AL=54H (ASCII T)
- AH=FEH
-
-
-
-
- VIDEO OUTPUT FUNCTION V
-
- The VIDEO OUTPUT Call turns on or off the output to the
- synthesizer from data that is printed on the video screen. For
- a discussion on the VIDEO Function, read Chapter 4 Section 4.6
- System Keys.
-
- ENTRY CONDITIONS:
-
- AL=56H (ASCII V)
- AH=FEH
-
- END OF CHAPTER 5 TALKING TUTORIAL PROGRAMMER'S AID
-
-
-
-
-