home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Simulation / PDP-8 Simulator / Source Code / Assembler / Global.f < prev    next >
Encoding:
Text File  |  1992-03-15  |  1.1 KB  |  52 lines  |  [TEXT/KAHL]

  1. /************************************************************
  2. *
  3. *
  4. *    Header containing all function declarations.
  5. *
  6. *    by Adrian Bool in cooperation with Graham Cox.
  7. *
  8. *    copyright © phantasm coding 1992.
  9. *
  10. *
  11. ************************************************************/
  12.  
  13. /* global functions */
  14.  
  15. void PascalToC(str255 , char*);
  16. void CtoPascal(str255 , char*);
  17. void copyString(char*,char*);
  18. short lengthOfString(char*);
  19.  
  20. /* source functions */
  21.  
  22. sHandle newSource();
  23. void loadSource(sHandle);
  24. void getSection(pHandle , char*);
  25. short getSegment(char* , short*, str255);
  26. operator getPart(char*, short*, str255);
  27. void nextLine(sHandle);
  28.  
  29. /* code functions */
  30.  
  31. void assembleOpcode(opcode , short , rBlock , short* , pHandle);
  32. opcode getOpcode(char*);
  33. int checkAddress(pHandle , addressType);
  34.  
  35. /* label functions */
  36.  
  37. lHandle newLabelList();
  38. void newLabel(pHandle , char* , lValue);
  39. lValue getLabelValue(lHandle , char*);
  40.  
  41. /* object functions */
  42.  
  43. oHandle newObject();
  44. void createObjectSpace(oHandle);
  45. void addBlock(oHandle , rBlock , short);
  46.  
  47. /* assemble functions */
  48.     
  49. pHandle newProgram();
  50. void disposeProgram(pHandle);
  51. void pass(pHandle , short);
  52.