home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / FREEMACS / EMACSPEL.ZIP / SPELLER.DOC < prev   
Text File  |  1989-06-10  |  2KB  |  54 lines

  1.             The Clarkson Speller
  2.  
  3. The Clarkson Speller is a terminate-and-stay-resident (TSR) program.  It
  4. provides spelling functions to programs that need them.  One program that
  5. uses them is Freemacs (see HOWTOGET.IT).
  6.  
  7.      After you install the speller (by executing SPELLER.COM), it will
  8. consume 60K of memory.  When you run Freemacs with speller installed,
  9. you may execute the function auto-spell-mode.  When you press return or
  10. space, the word to the left of point is spell-checked, and the bell is
  11. rung if speller thinks the word is mis-spelled.
  12.  
  13.      If you would like to use the Clarkson Speller in your own programs,
  14. all you need to do is execute INT 82h with AH set to one of the following
  15. function codes.  Freemacs lets you execute any of these functions using the
  16. #(sc) primitive.  You can check to see if Speller is installed by looking
  17. for the following signature appearing in the few bytes before the address
  18. pointed to by the interrupt 82h vector.
  19.  
  20.      Speller may be removed from memory using any of the common TSR management
  21. utilities, such as Kim Kokkonen's TSR package.  Look for TSRSRCxx or TSRCOMxx.
  22. At the time of this writing, xx was 28.
  23.  
  24.     db    'Speller'
  25.     db    '1'        ;bump this if incompatible with previous version.
  26.     db    '3'        ;bump this if upward compatible with previous.
  27. funcCall:
  28. ;*****************************************************************************
  29. ; The code is entered here when called via INT 82h
  30. ;*****************************************************************************
  31. ;    function codes in AH, ds:si ->null terminated word:
  32. ;    0    spell check word.
  33. ;    1    add word to dictionary.
  34. ;    2    return word count in AX.
  35. ;    3    write speller to disk, ds:si ->fn.
  36. ;    4    clear dictionary.
  37. ;    5    return maximum word count in AX.
  38. ;
  39. ;
  40. ;
  41. ;    function return codes:
  42. ;
  43. ;     0    call executed successfully (or zero words in dictionary)
  44. ;    -1    used by some programs to indicate speller absent.
  45. ;    -2     illegal function call was made
  46. ;    -3    word was mis-spelled
  47. ;    -4    word too long to add to dict / spell check
  48. ;    -5    dictionary is full!
  49. ;    -6    disk full, speller not saved
  50. ;
  51. ;        The return code is returned in the AX register.
  52. ;    These are the only return codes currently defined and meaningful.
  53. ;*****************************************************************************
  54.