home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / text / hints / volume_02 / issue_01 next >
Text File  |  1995-02-16  |  5KB  |  124 lines

  1.  
  2. Å   How to wipe a disc clean Ö If you want to wipe a disc completely
  3. clean, you can use *WIPE * ~CFR<return> (Use this command with care Ö
  4. thereæs no going back once youæve pressed <return>!) Ö in other words,
  5. remove files with any name (*), donæt ask for confirmation of each wipe
  6. (~C), force them (F) to be deleted even if they are locked and do it
  7. recursively (R) so that the contents of all directories are deleted.
  8. However, even this drastic measure wonæt allow you to delete a library
  9. directory if one exists. So do a *Lib öò<return> before the *WIPE
  10. command.
  11. 2.1
  12. Å   GammaPlot/System Delta Plus Ö If you have been trying to import SDP
  13. files into GammaPlot and have been unsuccessful, read on╔ Firstly you
  14. have to copy the System Delta Plus software onto your GammaPlot disc.
  15. Then if it still doesnæt work, it will be because you have an older
  16. version of System Delta Plus. Send the original SDP disc back to Minerva
  17. and ask for an up-grade.
  18. 2.1
  19. Å   Mounting problems (sic) Ö Do you find that sometimes it refuses to
  20. respond to a *MOUNT command even if you take the disc out and put it
  21. back in again? Two solutions: type *BYE and then you should find that
  22. *CAT will cause it to access the disc OR if, like me, youæve got *MOUNT
  23. on a function key, just do a *MOUNT with no disc in the drive then
  24. *MOUNT with the new disc in place. If you are in First Word Plus where
  25. you cannot issue star commands anyway, the latter technique should do
  26. the trick since you can achieve the equivalent of *MOUNT by clicking on
  27. the close box (the X) in the file menu. (Just as a matter of interest,
  28. does anyone know why it gets into this state sometimes?)
  29. 2.1
  30. Å   Users of C (and other compiled languages) may find the following
  31. command file useful, as sent in by Peter Linstead. You can put it in the
  32. $ directory of your hard disc and use it when starting a C programming
  33. session. Once you have assigned your current programæs name to NAME
  34. using, for example, *SET NAME MYPROG you can edit the source file by
  35. pressing <f1>. Once out of TWIN, <f2> will compile and link the source
  36. code and <f3> will execute the run code. By using SETMACRO, you can
  37. change the working name with another *SET command without running the
  38. command file again. It assumes that both FPE and TWIN are in the
  39. $.Library.
  40. 2.1
  41. *| > $.Library .C
  42. 2.1
  43. *FPE
  44. 2.1
  45. *DIR $.ARM.BENCH
  46. 2.1
  47. *SETMACRO ALIAS$AUTOT *TWIN
  48. 2.1
  49.  C.<NAME> |M
  50. 2.1
  51. *SETMACRO ALIAS$AUTOC *CC <NAME>
  52. 2.1
  53.  Ö LINK |M
  54. 2.1
  55. *SETMACRO ALIAS$AUTOR *RUN
  56. 2.1
  57. P.<NAME> |M
  58. 2.1
  59. *KEY 1 *AUTOT|M
  60. 2.1
  61. *KEY 2 *AUTOC|M
  62. 2.1
  63. *KEY 3 *AUTOR|M
  64. 2.1
  65. *SET RUN$PATH ,%.,$.ARM.LIBRARY.,@.P.
  66. 2.1
  67. *GOS
  68. 2.1
  69. (I have just reproduced this from Peteræs hand-written letter and I
  70. havenæt got C to try it out on, so I hope Iæve transcribed it correctly.
  71. If it hadnæt been for the postal strike Iæd have sent it to David Wild
  72. first, so please bear with us if you find it is not completely correct.
  73. Ed.)
  74. 2.1
  75. Å   ANSI C Compiler Ö Mike Sherratt writes╔ öOn a very fundamental note╔
  76. The manual is very terse. To compile the demo programs on the distribu
  77. tion diskette Ö Balls64, Sieve and Hello, heed the ReadMe file where it
  78. says ÉRMLoad the FP emulator etc i.e. RMload fpe240æ. Get to the
  79. directory level ÉBenchæ then do:
  80. 2.1
  81. *CC ÖArthur Sieve
  82. 2.1
  83. The spaces are significant, ÉÖæ is minus. The Sieve source file is in
  84. sub-directory Écæ. The executable file is now in sub-directory Épæ.
  85. 2.1
  86. The program can be run from the star prompt by typing *Sieve. The Éc.æ
  87. prefix is embedded (for lack of a better word) in the compiler, so donæt
  88. try to create the prefix!! You are now on the way.
  89. 2.1
  90. This information came thanks to Watford Elec-tronics who used Acornæs
  91. dealer hot-line for me.ö
  92. 2.1
  93. (Because of the postal strike, this has been inserted by the Ed rather
  94. than sending it to David for checking, so hopefully it will be OK!?)
  95. 2.1
  96. Å   Formatting from programs Ö If you want to write a disc copier
  97. program, as we at Archive obviously did for copying the program discs,
  98. you have to find some way to get round the fact that *FORMAT asks for a
  99. keyboard confirmation. We did it by creating a file on the second drive
  100. that consisted of just <Y> and then called that is input from the
  101. program. Ingenious! But then we found the easy (undocumented) way of
  102. doing it:
  103. 2.1
  104. *FORMAT 0 D Y
  105. 2.1
  106. Simple if you know how!
  107. 2.1
  108. Å   Replacement 3.5ö disc drives Ö One reader had to replace his 3.5ò
  109. drive and Acorn could only offer him the official second disc drive up-
  110. grade (which includes a new front facia which he didnæt need) so he
  111. bought an un-cased 3.5ö drive from Matmos Ltd (1 Church Street,
  112. Cuckfield, W.Sussex, RH17 5JZ, 0444Ö414484) for ú59.50 + ú3 carriage +
  113. VAT. This drive was almost a direct fit and only required some judicious
  114. filing of the button slot to complete the replacement.
  115. 2.1
  116. Å   Debugging ARM code listings Ö It is sometimes useful for non-ARM
  117. code specialists who want to type in ARM code program listings to have
  118. Éwayside pointersæ as the code runs to help them debug the program and
  119. find out where they have made typing errors. Adding the occasional SWI
  120. &1nn (where nn is 30 to 39 for number 0 to 9) will print out these
  121. numbers as an indication of how far the program has got. (Better still,
  122. buy the monthly program disc!!! Ed.)
  123. 2.1
  124.