home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol028 / waduzit.doc < prev    next >
Text File  |  1984-04-29  |  3KB  |  67 lines

  1.  
  2.  
  3.                         WADUZITDO
  4.  
  5.  
  6. How to write a language in 256 words or less.
  7.  
  8. From BYTE magazine, September 1978. It is highly recommended
  9. that you obtain the above magazine. This program is only
  10. provided as a learning experience. If you make any changes to
  11. the program please provide a copy to your Pascal Users Group.
  12.  
  13. --------------------------------------------------------------
  14.   Statement     Format          What it does
  15. --------------------------------------------------------------
  16.   type          T:text  Display text on the terminal.
  17. --------------------------------------------------------------
  18.   accept        A:      Input one character from the
  19.                         terminal keyboard.
  20. --------------------------------------------------------------
  21.   match         M:x     Compare x to last input character
  22.                         and set match flag to Y if equal,
  23.                         set to N if not equal.
  24. --------------------------------------------------------------
  25.   jump          J:n     If n = 0 jump to last accept.
  26.                         If n = 1 thru 9 jump to nth program
  27.                         marker forward from the J.
  28. --------------------------------------------------------------
  29.   stop          S:      Terminate program and return to
  30.                         text editor.
  31. --------------------------------------------------------------
  32.   subroutine    S:x     Call user machine language program.
  33.                         (Requires program modification).
  34. --------------------------------------------------------------
  35.   conditionals          May precede any operation code.
  36.                 Y       Execute only if match flag is 'Y'.
  37.                 N       Execute only if match flag is 'N'.
  38. --------------------------------------------------------------
  39.  program        *       May precede any statement, serves
  40.  marker                 as a jump destination.
  41. --------------------------------------------------------------
  42.         Table 1: Program instructions for the WADUZITDO
  43.  
  44.  
  45. --------------------------------------------------------------
  46.  Edit character HEX             Meaning
  47. --------------------------------------------------------------
  48.         $       24      Start program execution
  49. --------------------------------------------------------------
  50.         \       5C      Move edit pointer to program start.
  51. --------------------------------------------------------------
  52.         /       2F      Display next line of program.
  53. --------------------------------------------------------------
  54.         %       25      Erase line. Pads with nulls.
  55. --------------------------------------------------------------
  56.    bs or <-  08 or 5F   Backspace to correct typing error.
  57. --------------------------------------------------------------
  58.         cr      0D      End of current statement.
  59. --------------------------------------------------------------
  60.   any others            Character stored in program and
  61.                         edit pointer advances.
  62. --------------------------------------------------------------
  63.         Table 2: Editing characters used by the built-in
  64.                  text editor.
  65.  
  66.  
  67.