home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / sozobon / scsrc20 / szadb / lang.h < prev    next >
C/C++ Source or Header  |  1991-03-01  |  4KB  |  162 lines

  1. /* Copyright (c) 1990,91 by Sozobon, Limited.  Authors: Johann Ruegg, Don Dugger
  2.  *
  3.  * Permission is granted to anyone to use this software for any purpose
  4.  * on any computer system, and to redistribute it freely, with the
  5.  * following restrictions:
  6.  * 1) No charge may be made other than reasonable charges for reproduction.
  7.  * 2) Modified versions must be clearly marked as such.
  8.  * 3) The authors are not responsible for any harmful consequences
  9.  *    of using this software, even if they result from defects in it.
  10.  *
  11.  *    lang.h    - english version
  12.  *    change only this file to make other language versions
  13.  */
  14.  
  15. #ifdef IN_ADB
  16.  
  17. #define M1    "%s:cannot open\n"
  18. #define M2    "%s:bad format\n"
  19. #define M3    "%s:bad pexec\n"
  20. #define M4    "Szadb version 2.0 (english)\n"
  21. #define M5    "(hit any key)"
  22. #define M6    "unknown command\n"
  23.  
  24. char *errwhy[] = {
  25.     "access out of bounds\n",
  26.     "unbalanced parenthesis\n",
  27.     "unknown command\n",
  28.     "bad command\n",
  29.     "unknown symbol\n",
  30.     "bad register name\n"
  31. };
  32.  
  33. #endif
  34.  
  35. #ifdef IN_ADB1
  36.  
  37. #define M1    "can't allocate %i bytes for symbol\n"
  38.  
  39. #endif
  40.  
  41. #ifdef IN_HELP
  42.  
  43. /*
  44.  * The longest line of help can be no more than 40 characters 
  45.  */
  46.  
  47. char *help1[] = {
  48. "        SYNTAX SUMMARY",
  49. "{expr},{count} COMMAND {extras}",
  50. "",
  51. "      VALUES",
  52. "   NAME  address of symbol",
  53. " NUMBER  number in default base",
  54. "0x,0t,0o prefix for hex,decimal,octal",
  55. "  <REG   value of register",
  56. "    .    current location (DOT)",
  57. "    &    last typed {expr}",
  58. "",
  59. "     BINARY OPERATORS",
  60. " +,-,*,% add,sub,mul,div",
  61. "   &,|   bitwise and,or",
  62. "",
  63. "     UNARY OPERATORS",
  64. "   -,^   minus,complement",
  65. "    *    fetch 4 bytes from address",
  66. "    @    fetch 2 bytes from address",
  67.     0
  68. };
  69.  
  70. char *help2[] = {
  71. "    ?/  COMAMNDS               EXTRAS",
  72. " / or ?  print memory         {format}",
  73. "   =     print value          {format}",
  74. "   /w,/W write memory         {values}",
  75. "",
  76. "      FORMATS",
  77. "  o,d,x  2-bytes in octal,decimal,hex",
  78. "  O,D,X  4-bytes in octal,decmial,hex",
  79. "    i    disassembled instruction",
  80. "    b    1-byte in octal",
  81. "    c    1-byte character",
  82. "   a,p   address relative to symbols",
  83. "   s,S   string",
  84. "",
  85. "      SPECIAL FORMAT FIELDS",
  86. "    t    tab",
  87. "   n,b   newline,blank",
  88. "   +,-   add +1 or -1 to DOT",
  89. "    ^    backup DOT by last format",
  90. "  STRING echo string to output",
  91.     0
  92. };
  93.  
  94. char *help3[] = {
  95. "      $  COMMANDS",
  96. "   $c,$C stack backtrace",
  97. "   $r    show registers",
  98. "   $p    show basepage",
  99. "$o,$x,$d set number base",
  100. "   $q    quit",
  101. "   $b    show breakpoints",
  102. "   $s    set symbol offset",
  103. "   $e    show external symbols",
  104. "",
  105. "     :  COMMANDS               EXTRAS",
  106. "  :c,:C  continue             {params}",
  107. "  :s,:S  step                 {params}",
  108. "   :b    set breakpoint",
  109. "   :d    del breakpoint",
  110. "",
  111. "     >  COMMAND                EXTRAS",
  112. "    >    change register value   {reg}",
  113.     0
  114. };
  115.  
  116. #define M1    "   q - quit   <space> - more"
  117.  
  118. #endif
  119.  
  120. #ifdef    IN_PCS
  121.  
  122. #define M1    "(? at %I)"
  123.  
  124. #define M2    "base page at %I"
  125. #define M3    "\nlow tpa "
  126. #define M4    "  hi tpa  "
  127. #define M5    "\ntext at "
  128. #define M6    "  size    "
  129. #define M7    "\ndata at "
  130. #define M8    "\nbss at  "
  131. #define M9    "\nenv ptr "
  132. #define M10    "  parent  "
  133.  
  134. #define M11    "can't load %s\n"
  135. #define M12    "process exited\n"
  136. #define M13    "unknown command\n"
  137. #define M14    "break at %I\n"
  138. #define M15    "too many breakpoints\n"
  139. #define M16    "no breakpoint found\n"
  140.  
  141. #endif
  142.  
  143. #ifdef IN_TRACE
  144.  
  145. char *tnm[] = {
  146.     "0", "1", "bus error", "address error",
  147.     "illegal instr", "zero divide",
  148.     "CHK", "TRAPV",
  149.     "priv violation", "trace",
  150.     "process exit"
  151. };
  152.  
  153. char *fcnm[] = {
  154.     "?0?", "user data", "user prog", "?3?",
  155.     "?4?", "supv data", "supv prog", "intr ack"
  156. };
  157.  
  158. #define M1    "(not instr) "
  159. #define M2    "addr %I instr %i\n"
  160. #define M3    "internal trap: "
  161. #endif
  162.