proto.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /* extern functions */
  2. /* as.c */
  3. int main P((int argc, char **argv));
  4. void as_abort P((char *message));
  5. void finishup P((void));
  6. void initp1p2 P((void));
  7. void line_zero P((void));
  8. /* assemble.c */
  9. void assemble P((void));
  10. /* express.c */
  11. void absexpres P((void));
  12. void chkabs P((void));
  13. void nonimpexpres P((void));
  14. void showrelbad P((void));
  15. void symabsexpres P((void));
  16. void symexpres P((void));
  17. void expres P((void));
  18. void factor P((void));
  19. void scompare P((void));
  20. /* genbin.c */
  21. void binheader P((void));
  22. void bintrailer P((void));
  23. void genbin P((void));
  24. void initbin P((void));
  25. void putbin P((int ch));
  26. /* genlist.c */
  27. char *build_2hex_number P((unsigned num, char *where));
  28. char *build_number P((unsigned num, unsigned width, char *where));
  29. void warning P((char * errorstr));
  30. void error P((char * errorstr));
  31. void listline P((void));
  32. void writec P((int ch));
  33. void writenl P((void));
  34. void writeoff P((offset_t offset));
  35. void writes P((char *s));
  36. void writesn P((char *s));
  37. void writew P((unsigned word));
  38. /* genobj.c */
  39. void accumulate_rmb P((offset_t offset));
  40. void flushobj P((void));
  41. void genobj P((void));
  42. void initobj P((void));
  43. void objheader P((void));
  44. void objtrailer P((void));
  45. void putabs P((opcode_pt ch));
  46. void putobj P((opcode_pt ch));
  47. /* gensym.c */
  48. void gensym P((void));
  49. /* macro.c */
  50. void entermac P((struct sym_s *symptr));
  51. void pmacro P((void));
  52. /* mops.c */
  53. #ifdef I80386
  54. void mbcc P((void));
  55. void mbswap P((void));
  56. void mcall P((void));
  57. void mcalli P((void));
  58. void mdivmul P((void));
  59. void menter P((void));
  60. void mEwGw P((void));
  61. void mExGx P((void));
  62. void mf_inher P((void));
  63. void mf_m P((void));
  64. void mf_m2 P((void));
  65. void mf_m2_ax P((void));
  66. void mf_m2_m4 P((void));
  67. void mf_m2_m4_m8 P((void));
  68. void mf_m4_m8_optst P((void));
  69. void mf_m4_m8_st P((void));
  70. void mf_m4_m8_stst P((void));
  71. void mf_m4_m8_m10_st P((void));
  72. void mf_m10 P((void));
  73. void mf_optst P((void));
  74. void mf_st P((void));
  75. void mf_stst P((void));
  76. void mf_w_inher P((void));
  77. void mf_w_m P((void));
  78. void mf_w_m2 P((void));
  79. void mf_w_m2_ax P((void));
  80. void mgroup1 P((void));
  81. void mgroup2 P((void));
  82. void mgroup6 P((void));
  83. void mgroup7 P((void));
  84. void mgroup8 P((void));
  85. void mGvEv P((void));
  86. void mGvMa P((void));
  87. void mGvMp P((void));
  88. void mimul P((void));
  89. void min P((void));
  90. void mincdec P((void));
  91. void minher P((void));
  92. void minher16 P((void));
  93. void minher32 P((void));
  94. void minhera P((void));
  95. void mint P((void));
  96. void mjcc P((void));
  97. void mjcxz P((void));
  98. void mlea P((void));
  99. void mmov P((void));
  100. void mmovx P((void));
  101. void mnegnot P((void));
  102. void mout P((void));
  103. void mpushpop P((void));
  104. void mret P((void));
  105. void mseg P((void));
  106. void msetcc P((void));
  107. void mshdouble P((void));
  108. void mtest P((void));
  109. void mxchg P((void));
  110. #endif /* I80386 */
  111. #ifdef MC6809
  112. void mall P((void));
  113. void malter P((void));
  114. void mimmed P((void));
  115. void mindex P((void));
  116. void minher P((void));
  117. void mlong P((void));
  118. void msstak P((void));
  119. void mswap P((void));
  120. void mustak P((void));
  121. #endif /* MC6809 */
  122. void getcomma P((void));
  123. void mshort P((void));
  124. /* pops.c */
  125. bool_pt checksegrel P((struct sym_s *symptr));
  126. void checkdatabounds P((void));
  127. void datatoobig P((void));
  128. void fatalerror P((char * errorstr));
  129. void labelerror P((char * errorstr));
  130. void palign P((void));
  131. void pasciz P((void));
  132. void pblkw P((void));
  133. void pblock P((void));
  134. void pbss P((void));
  135. void pcomm P((void));
  136. void pcomm1 P((void));
  137. void pdata P((void));
  138. void pelse P((void));
  139. void pelseif P((void));
  140. void pelsifc P((void));
  141. void pendb P((void));
  142. void pendif P((void));
  143. void penter P((void));
  144. void pentry P((void));
  145. void pequ P((void));
  146. void peven P((void));
  147. void pexport P((void));
  148. void pfail P((void));
  149. void pfcb P((void));
  150. void pfcc P((void));
  151. void pfdb P((void));
  152. #if SIZEOF_OFFSET_T > 2
  153. void pfqb P((void));
  154. #endif
  155. void pglobl P((void));
  156. void pident P((void));
  157. void pif P((void));
  158. void pifc P((void));
  159. void pimport P((void));
  160. void plcomm P((void));
  161. void plcomm1 P((void));
  162. void plist P((void));
  163. void pnolist P((void));
  164. void ploc P((void));
  165. void pmaclist P((void));
  166. void pmap P((void));
  167. void porg P((void));
  168. void prmb P((void));
  169. void psect P((void));
  170. void pset P((void));
  171. void psetdp P((void));
  172. void ptext P((void));
  173. void puse16 P((void));
  174. void puse32 P((void));
  175. void pwarn P((void));
  176. void showlabel P((void));
  177. /* readsrc.c */
  178. void initsource P((void));
  179. fd_t open_input P((char *name));
  180. void pget P((void));
  181. void pproceof P((void));
  182. void readline P((void));
  183. void skipline P((void));
  184. /* scan.c */
  185. void context_hexconst P((void));
  186. void getsym P((void));
  187. void getsym_nolookup P((void));
  188. void initscan P((void));
  189. /* table.c */
  190. void inst_keywords P((void));
  191. struct sym_s *lookup P((void));
  192. void statistics P((void));
  193. /* type.c */
  194. u2_pt c2u2 P((char *buf));
  195. u4_t c4u4 P((char *buf));
  196. u2_pt cnu2 P((char *buf, unsigned count));
  197. u4_t cnu4 P((char *buf, unsigned count));
  198. void u2c2 P((char *buf, u16_pt offset));
  199. void u4c4 P((char *buf, u32_T offset));
  200. void u2cn P((char *buf, u16_pt offset, unsigned count));
  201. void u4cn P((char *buf, u32_T offset, unsigned count));
  202. bool_pt typeconv_init P((bool_pt big_endian, bool_pt long_big_endian));
  203. /* alloc.c */
  204. void * asalloc P((unsigned int size));
  205. void * asrealloc P((void * oldptr, unsigned int size));
  206. void * temp_buf P((void));
  207. void init_heap P((void));