home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_04 / issue_05 < prev    next >
Text File  |  1995-02-16  |  24KB  |  561 lines

  1. Hints and Tips
  2. 4.5
  3. Å   ANSI C v3 on a SCSI Hard  Disc ù After some trial an error, I finally
  4. managed to install ANSI C v3 correctly on my new Oak SCSI card with 45Mb
  5. hard disc drive.  Hereæs what I had to do:
  6. 4.5
  7. First change line 3390 in the ÉInstallNetæ program which is on all three
  8. of the ANSI C discs so that it reads:
  9. 4.5
  10. 3390 DATA öADFS::0.$ò,öNET:$ò,öSCSI::SCSIDisc4.$ò
  11. 4.5
  12. Then run the öInstallHDò program from each disc and always answer ÉYæ on
  13. the overwrite options (otherwise, the back up program would stop).
  14. 4.5
  15. If you use the included !Cstart obey file, you should not É*Set 
  16. Run$Pathæ in your !boot file and you should remember to modify the
  17. !Cstart file to work with SCSI and not ADFS i.e. c$loc SCSI::4.$
  18. 4.5
  19. Atle Baardholt, Norway
  20. 4.5
  21. Å   Deskjet Plus ink cartridges, recharging Ö Further to Bill Grahamæs
  22. note in Archive 4.2 p8, Iæve found that Quinx Permanent Black works well
  23. and is probably cheaper than Art Pen Ink. You do need to be careful that
  24. you donæt inject more ink than the sponge will absorb, otherwise the
  25. mess is dreadful!  Stuart Bell, Brighton.
  26. 4.5
  27. Å   DropShip passwords Ö Passwords for DropShip are Dahlia, Gaggle, Kaunda
  28. and Nautch.
  29. 4.5
  30. Å   ExAllPlus Ö This is a non-Wimp program which was written in an attempt
  31. to catalogue my discs. It was designed for use with a single ADFS Floppy
  32. drive and a SCSI Hard disc together with a Star LC10 printer using
  33. continuous paper. Other printers may require some alteration to the
  34. coding.
  35. 4.5
  36. Most existing öExAllò and öCatAllò programs invoke the *EX and *CAT
  37. calls (!) which produce a lot of unnecessary and confusing duplication
  38. of libraries, directories etc. (I have memories of the reams of paper
  39. produced by an  öExAllò print-out of the original Archimedes Welcome
  40. disc.) To avoid this, these calls have been re-written so that, in
  41. addition to other changes, the directory headings have been reduced to
  42. path descriptions.
  43. 4.5
  44. The program will produce both screen and printed listings of either the
  45. full disc or the root directory. The various options are selected by a
  46. series of key-strokes and a default screen öExAllò routine has been set-
  47. up which can be easily customised.
  48. 4.5
  49. Use can be made of the condensed print option to produce catalogue
  50. listings eight entries wide as against the usual five. This rather
  51. spoils the screen display in this mode but it was thought useful to
  52. maintain a check on the output to the printer. When using this option to
  53. produce öEXò listings the screen display is OK and the reverse feed
  54. facility of the Star LC10 enables double column print-outs to be
  55. obtained.
  56. 4.5
  57. The öGetTypeò program is loaded in by the main öExAllPlusò code and
  58. contains all the FileType codes I have been able to find but it can
  59. easily be updated.
  60. 4.5
  61. (The listing is far too long to put in the magazine. I have put it on
  62. the monthly program disc. Ed.)
  63. 4.5
  64. Doug Tuddenham
  65. 4.5
  66. Å   First Word Plus embedded commands Ö If you switch off the Word
  67. Processor mode of FWP you can enter printer commands directly into the
  68. text.  Double bracket command codes e.g. ((n))n1 can be entered to
  69. change the printer font and style. For example, with a Star LC24-200 in
  70. the following effects can be achieved:
  71. 4.5
  72. Font   ((F))0   Times Roman
  73. 4.5
  74.       ((F))1   Sans Serif
  75. 4.5
  76.       ((F))2   Courier
  77. 4.5
  78.       ((F))3   Prestige
  79. 4.5
  80.       ((F))4   Script
  81. 4.5
  82.       ((F))5   Draft
  83. 4.5
  84. Size   ((S))0   Standard
  85. 4.5
  86.       ((S))1   Double Width
  87. 4.5
  88.       ((S))2   Double Height
  89. 4.5
  90.       ((S))3   Double Width and Height
  91. 4.5
  92. Colour   ((C))0   Black
  93. 4.5
  94.       ((C))1   Red
  95. 4.5
  96.       ((C))2   Blue
  97. 4.5
  98.       ((C))3   Violet
  99. 4.5
  100.       ((C))4   Yellow
  101. 4.5
  102.       ((C))5   Orange
  103. 4.5
  104.       ((C))6   Green
  105. 4.5
  106. Peter Thomas, Leics
  107. 4.5
  108. Å   FWP Cut and Paste Ö It is possible to cut a marked block of text in a
  109. First Word Plus document and then paste it into another document.  Both
  110. documents must be loaded first.  This may be obvious but I have only
  111. just found out ù the hard way.  Dave Livsey, Devon
  112. 4.5
  113. Å   Impression hints & tips Ö Now that I am using Impression for the
  114. magazine, there are likely to be a number of hints & tips forthcoming.
  115. Some of these may be obvious to the more experienced Impression users,
  116. but bear with me because some of us are only just beginning and, in
  117. fact, the experiences of someone just starting to use an application can
  118. often be very helpful to others going through the same hoop. Also, when
  119. you have been using an application for a while, you build up the feeling
  120. that you know how it works and there may be facilities which you never
  121. realised were available which new users pick up. Anyway, here are the
  122. first few...
  123. 4.5
  124. Adding styles to titles Ö If you want to add a style to a title, be sure
  125. to select the whole line including the carriage return. In other words
  126. either put the cursor by the left hand margin and drag down to the next
  127. line or triple-click somewhere on the line. (Iæm sure you all know that
  128. double-click selects a word, triple-click selects a line and quadruple-
  129. click (or <ctrl-@>) selects a whole paragraph.) The reason for selecting
  130. in this way is that if you only select by dragging across the line, you
  131. omit the carriage return which remains in the base style. The problem
  132. with this is that if, as in the title lines in Archive, the added style
  133. says öreduce the space after the paragraph to zeroò, the carriage return
  134. still has the full space-after-paragraph so the paragraph spacing
  135. remains unchanged.
  136. 4.5
  137. Entering point sizes Ö If you want to change the size of some text, you
  138. mark it and press <shift-ctrl-S>. If the dialogue box is empty, you can
  139. type in a number, say 18, and it will assume you mean 18 point. If you
  140. decide that you want it a bit bigger and press <shift-ctrl-S> again, it
  141. comes up with ö18ptò in the box. If you then type in, say, 2 <return> it
  142. will interpret the ö18pt2ò as (18+2)pt and will give you 20pt! (Well, it
  143. works in version 2.05.) Unfortunately, if you press <-> to try to put,
  144. say, -2, it seems to interpret it as an escape and closes the box.
  145. 4.5
  146. Marking, deleting and re-typing Ö (This is something that is obvious to
  147. people coming to Impression via the Mac but may have been missed by
  148. people brought up through RISC-OS.) If some text is marked, by any
  149. means, and you want to replace it by some text you are about to type in,
  150. there is no need to delete the marked text first. As soon as you start
  151. to type, the marked text is deleted and transferred to the scrap-pad and
  152. your typing appears in place of it. The deleted text can be used
  153. elsewhere by pasting it in with <ctrl-V>.
  154. 4.5
  155. Quick searching Ö If you want to find something quickly, find/replace is
  156. a good way to do it. Call it up with <ctrl-f4> and then, to delete the
  157. text already in the dialogue box, press <ctrl-U>, then type in the word
  158. you are looking for and press <return>. (This use of <ctrl-U> applies to
  159. all dialogue boxes Ö useful when saving a document under a new name.)
  160. Remember though that it searches from the cursor downwards, so add a
  161. <ctrl-uparrow> before calling up the find/replace box. (In the version I
  162. have, 2.05, the cursor is sometimes not re-displayed in its new position
  163. after a find/replace has been executed. In other words, it appears to be
  164. still where you left it but it may actually be further down the document
  165. so itæs worth getting into the habit of using <ctrl-uparrow> anyway.)
  166. Also, donæt get tripped up, as I just did. If you set the öcase
  167. sensitiveò option, it stays set until you switch it off again. So, if
  168. you canæt find a word that you know is in there somewhere, check that
  169. you have not left it in the case-sensitive mode from the last time you
  170. used it.
  171. 4.5
  172. Replacing double spaces Ö I was trying to do a selective search and
  173. replace to remove double spaces and replace them with single spaces.
  174. When I told it to find the next one, it sometimes didnæt appear to mark
  175. anything. Most peculiar!  Eventually, I realised what was happening. The
  176. text was fully justified and the double spaces (the same would apply to
  177. finding single spaces) were between the last word on one line and the
  178. first on the next line. Thus Impression was marking the infinitesimally
  179. small space at the end of the line, i.e. was marking nothing at all.
  180. Thereæs nothing you can do about it (apart from removing the full
  181. justification) but at least if you are aware of the problem, you wonæt
  182. be so baffled when it happens.
  183. 4.5
  184. Searching for hyphens Ö In some versions of Impression, it is not
  185. possible to search and replace hyphens. I discovered this because, for
  186. ease of typing, I was using a double hyphen where I wanted a dash in the
  187. text, the idea being to replace them later. Impression refused to find
  188. any occurrences of hyphen-hyphen. Consultation with CC revealed that
  189. improvements in automatic hyphenation have resulted in this problem. The
  190. way round it is to search for ÿ and replace it with Ö. Note the spaces
  191. after the backslash and before the 45.
  192. 4.5
  193. Smart quotes Ö If you want smart quotes in a text, i.e. the curly ones
  194. instead of the straight ones on the key next to the return key, you can
  195. type them in using <ctrl-]> and <ctrl-\> for single quotes and <shift-
  196. ctrl-]> and <shift-ctrl-\> for double quotes. However, if you think
  197. thatæs a bit of a fag to remember, use the normal quotes and then,
  198. before printing, save the file (just in case of operator error!), save
  199. the text with styles (perhaps to a ram disc as itæs only temporary),
  200. select the whole text (<ctrl-T>), delete it and finally drop the saved
  201. text back into the document. As the text is re-loaded, quotes are
  202. automatically Ésmartenedæ.
  203. 4.5
  204. Switching styles on and off Ö Those of you brought up in the Mac world
  205. may not have realised, as I didnæt until today(!) that if you want
  206. something in, say, bold, all you have to do is press <f4> to switch it
  207. on, type in the bit that is to be in bold and then press <f4> again. 
  208. Obvious? Yes, it may be to those who come new to Impression but for
  209. those of us steeped in Mac techniques, it comes as a welcome surprise.
  210. 4.5
  211. If there are things about using Impression that Écame as a surpriseæ to
  212. you, send them in to us (preferably on disc) and weæll share them with
  213. other Impression users. We may even need an Impression Column.
  214. 4.5
  215. Å   Rotor and other gamesæ passwords Ö One way to obtain the Rotor
  216. passwords (and possibly other games) is to load each of the gameæs files
  217. into !Edit and use the ÉFindæ option to look for the first password. 
  218. When the password is found, the remaining passwords should be in the
  219. next couple of lines.  Andrew Campbell, Devon
  220. 4.5
  221. Å   Sony TV / Monitor Ö I was told by Beebug that I couldnæt use my Sony
  222. TV as a monitor with the A3000, but in fact this is quite easy to do. 
  223. The sony TV requires a signal on pin 16 (blanking input) of the Scart
  224. plug, which can simply be connected to pin 20 (video input).  Keith
  225. Raven, Slough
  226. 4.5
  227. Å   Z88 file transfer Ö Here is a little utility for people who wish to
  228. transfer files from the Archimedes straight into suspended memory on the
  229. Z88.  It saves having to break a file into smaller sections first and,
  230. of course, there is always a memory overhead in having at least part of
  231. the file held in the Z88 Filer.  With this BASIC program, the filer is
  232. by-passed altogether.
  233. 4.5
  234.  10 REM >Suspender
  235. 4.5
  236.  20 REM Transfer file from Arc to Z88 suspended memory
  237. 4.5
  238.  30 REM ** IMPORTANT: Set z88 receive baud rate at 2400 (in panel) **
  239. 4.5
  240.  40 *CAT
  241. 4.5
  242.  50 *FX 8,5
  243. 4.5
  244.  60 INPUT öSend file? òfile$
  245. 4.5
  246.  70 *FX 3,119
  247. 4.5
  248.  80 OSCLI(öType ò+file$)
  249. 4.5
  250.  90 FOR i%=1 TO 350
  251. 4.5
  252. 100 PRINT ö#ò
  253. 4.5
  254. 110 NEXT i% : REM these pad chars are need for certain types of file
  255. 4.5
  256. 120 *FX 3,0
  257. 4.5
  258. To load a file into PipeDream, enter ö:COMò as the öName of file to
  259. loadò in the files menu.  Then run öSuspenderò and immediately press
  260. <return> on the Z88.  Finally, when the BASIC prompt reappears on the
  261. Archimedes screen, press <esc> on the Z88.
  262. 4.5
  263. It is kinder to your disc drive to copy the target file into the
  264. Archimedesæ RAM filing system first.
  265. 4.5
  266. Jonathan Barnes, Watford
  267. 4.5
  268. The following Hints and Tips come from Hugh Eagle of the West Sussex
  269. Archimedes User Group.
  270. 4.5
  271. Å   Disappearing paragraph spaces in FWP ù If, at the end of a paragraph,
  272. you type a space immediately before the carriage return, the carriage
  273. return will be deleted when you subsequently reformat the paragraph.
  274. Believe it or not, this is a öfeatureò of First Word Plus (documented in
  275. the version 1 manual on page 110)!
  276. 4.5
  277. Å   Loading sprite files ù When you double click on a sprite file icon,
  278. sometimes it is displayed at the bottom left-hand corner of a blank
  279. screen and sometimes in a !Paint window.  This is because the action the
  280. computer takes when you try to örunò a sprite file depends on the
  281. contents of the system variable Alias$@RunType_FF9.  This variable is
  282. defined by default, when the Archimedes is switched on, as öScreenLoad
  283. %0ò.  The effect of this is that when you double click on a sprite file
  284. (type &FF9) icon, the operating system executes the instruction
  285. *ScreenLoad [filename]; this clears the screen and then displays the
  286. first sprite in the file at the graphics origin. However, when the
  287. Desktop Filer öseesò the !Paint application (i.e. when a directory
  288. window is opened in which !Paint is included) it runs the !Paint.!Boot
  289. file which, amongst other things, redefines Alias$@RunType_FF9  in such
  290. a way that when a sprite file is örunò the !Paint application is started
  291. up (that is if it is not already running) and the file is loaded in.
  292. 4.5
  293. Å   Listing the contents of your (hard) disk ù The operating system
  294. command ö*Count :4.$.* RVò will catalogue the contents of the root
  295. directory and every sub-directory.  As explained on pages 279/280 of the
  296. User Guide, the output from this command can be redirected to the
  297. printer by adapting the command to ö*Count :4.$.* RV {printer: } ò
  298. 4.5
  299. Note: the spaces around the curly brackets and the > sign are important.
  300. 4.5
  301. This method will redirect the output to the printer without displaying
  302. it on the screen. An alternative method will send all text that is
  303. displayed on the screen to the printer as well: first press <ctrl-B>
  304. (i.e. hold down the ctrl key and simultaneously type B), then issue the
  305. command ö*Count :4.$.* RVò then, when the listing has finished, press
  306. <ctrl-C>.
  307. 4.5
  308. Å   Removing PC Access ù  The menu which appears when you click the menu
  309. button over any of the PC Access icons on the icon bar has no Quit
  310. option and the application doesnæt seem to appear in the Task Manager
  311. window.  In fact, the application does appear in the Task Manager window
  312. ... in the öModule Tasksò section. Clicking the menu button over the
  313. applicationæs name there and moving to the Task ÉPC Accessæ sub-menu
  314. gives a öQuitò option.
  315. 4.5
  316. Å   Printing via a PC ù For some time I have been perplexed to find that
  317. when I try to print a file created by the Archimedes !PrinterLJ printer
  318. driver to a LaserJet printer attached to a PC, the printout stops part
  319. way down the page. At first I thought it must be because of  limited
  320. memory in the printer so I tried creating the file at a lower print
  321. density but this made no difference to how much of the page was printed.
  322. 4.5
  323. I think I have now hit on the answer, namely that, when using the MS-DOS
  324. Copy command to print a file which includes control codes, it is a good
  325. idea to use the /b öswitchò, using the syntax:
  326. 4.5
  327. copy [filename]/b LPT1
  328. 4.5
  329. The insertion of /b after the filename causes MS-DOS to copy in öbinaryò
  330. mode: i.e. it copies as many bytes as there are in the file. Otherwise,
  331. in text mode, copying will continue only until the first end-of-file
  332. marker (Ctrl-Z or ASCII character 26) is reached whereupon it will stop.
  333. It is of course highly likely that a graphic printfile of many thousands
  334. of bytes will contain this character several times, so it is not
  335. surprising that only part of the page is printed!
  336. 4.5
  337. Å   Viewing !Draw files ù The standard way to view a draw file is to load
  338. it into !Draw. However, this has an irritating tendency to place the
  339. part of the picture you want to see outside the visible window. There
  340. are (at least) two convenient ways of avoiding this problem:
  341. 4.5
  342. One is to load the file into the !Display application from Shareware 26.
  343. The other is to load it into an Impression frame (or, presumably, a
  344. frame in one of the other DTP applications). In either case, the drawing
  345. is scaled to fit the frame (the aspect ratio is preserved, so the
  346. picture fills either the height of the frame or the width). One
  347. advantage of Impression is that the frame can very easily be resized and
  348. the drawing thereby magnified; another is that it makes it very simple
  349. to display a number of drawings on a page and create an illustrated
  350. catalogue.
  351. 4.5
  352. Å   Floppy disc E format ù So far as I know, the detailed format of ADFS
  353. discs has not been published either in any of the manuals or in Archive.
  354. Having recently deleted some files by mistake and been forced into some
  355. detective work in order to recover them, I thought it might be helpful
  356. to write down what I have found out about öEò format floppy discs:ù
  357. 4.5
  358. With two sides, 80 tracks on each side, 5 sectors on each track, the
  359. disc has 800 sectors of 1024 (&400) bytes each. The sectors can be
  360. thought of as being numbered from 0 to 799 in the following order:
  361. 4.5
  362.    Track   Head   Sector
  363. 4.5
  364.        0       0       0
  365. 4.5
  366.        0       0       1
  367. 4.5
  368.        0       0       2
  369. 4.5
  370.        0       0       3
  371. 4.5
  372.        0       0       4
  373. 4.5
  374.        0       1       0
  375. 4.5
  376.        .       .       .
  377. 4.5
  378.        0       1       4
  379. 4.5
  380.        1       0       0
  381. 4.5
  382.        .       .       .
  383. 4.5
  384.        .       .       .
  385. 4.5
  386.       79       1       4
  387. 4.5
  388. Each byte on the disc has a ödisc addressò equal to the sector number,
  389. as defined above, times &400 plus the number of bytes into the sector.
  390. Put it another way:
  391. 4.5
  392. the disc address    =   (((( track * 2 ) + head ) * 5 ) + sector ) *
  393. &400 + bytes into sector
  394. 4.5
  395. Map format Ö The first two sectors on the disc contain duplicate copies
  396. of the disc map. The first 64 bytes of the map contain the following
  397. information:
  398. 4.5
  399. byte  0   a checksum byte
  400. 4.5
  401. bytes 1/2   the number of bits to the place in the map which marks the
  402. first free space on the disc, counting from the beginning of byte 1 (if
  403. there is no free space this number will be zero); the top bit of the 16
  404. is always set, so, for instance, the value &8310 in these two bytes
  405. would indicate that the first free space in the map could be found &310
  406. bits or &310 DIV 8 bytes from byte 1, i.e. at byte &63
  407. 4.5
  408. byte  3   &FF
  409. 4.5
  410. bytes 4-35   the ödisc recordò as described on pages 1012/3 of the PRM
  411. containing various details about the disc size, etc. which are the same
  412. on all öEò format discs, ending with the Disc ID at bytes 24/5 and the
  413. disc name from byte 26 to byte 35.
  414. 4.5
  415. bytes 36-63   reserved (all zero)
  416. 4.5
  417. bytes 64-863 (800 bytes) ù the actual disc map.
  418. 4.5
  419. Each byte in the map represents one disc sector and the contents of the
  420. map indicate how the disc is divided up between the various objects
  421. (directories and files) on it. Each portion of the map is at least 2
  422. bytes long, it begins with an identifying number (max. 15 bits), ends
  423. with a 1 in the top bit of the last byte and all the bits in between are
  424. zero. Thus, for instance, if the file with the identifying number 7
  425. occupies 3 sectors the relevant portion of the map reads as follows:
  426. 4.5
  427. first byte   &07
  428. 4.5
  429. next byte   &00
  430. 4.5
  431. last byte   &80  (1 in the top bit)
  432. 4.5
  433. The lowest identifying number is 2 and is reserved for the four sectors
  434. which are initialised when the disc is formatted and which comprise the
  435. two map sectors followed by the two sectors containing the root
  436. directory. Identifying numbers are then allocated, in order, as new
  437. objects are created.
  438. 4.5
  439. A file may be fragmented into several pieces, in which case several
  440. portions of the map will contain the same identifying number.
  441. 4.5
  442. The portions of the map indicating free space on the disc are linked
  443. together by a chain of pointers. As mentioned above, bytes 1 and 2, at
  444. the start of the map sector, point to the first free space in the map.
  445. At that point there is a similar pointer to the next free space (if any)
  446. and so on until the last free space is reached, where the pointer is
  447. zero.
  448. 4.5
  449. A defective sector on the disc is identified in the map by number 1.
  450. 4.5
  451. Directory structure Ö Each directory takes up two sectors. As mentioned
  452. above, the root directory occupies the third and fourth sectors on the
  453. disc (from disc address &800 to &FFF). Any sub-directory can be located
  454. by looking up the relevant entry in its parent directory, finding the
  455. identifying number (in the manner described below) and looking up the
  456. number in the disc map.
  457. 4.5
  458. The first five bytes in a directory contain a checksum byte followed by
  459. the string öNickò. Then there are up to 77 entries of 26 bytes each
  460. representing the various objects (files and sub-directories) in the
  461. directory.
  462. 4.5
  463. The format of each of these entries is:
  464. 4.5
  465. bytes  0-9   name of file or sub-directory
  466. 4.5
  467. bytes 10-13   load address
  468. 4.5
  469. bytes 14-17   execution address
  470. 4.5
  471. bytes 18-21   file length
  472. 4.5
  473. byte  22   sector offset (see below)
  474. 4.5
  475. bytes 23-24   identifying number as used in the map
  476. 4.5
  477. byte  25   file attributes.
  478. 4.5
  479. If the top 12 bits of the load address are all set (i.e. are &FFF) this
  480. means that the file is östampedò and the remainder of the load and
  481. execution address fields are used to record the file type and date stamp
  482. as follows:
  483. 4.5
  484. load address      FFFtttdd
  485. 4.5
  486. execution addressdddddddd
  487. 4.5
  488. (the bottom byte of the load address field being used for the top byte
  489. of the 5-byte format date and time record).
  490. 4.5
  491. Note: in a disc sector editor which shows the bytes in order with the
  492. lowest byte of each word first, these 8 bytes will appear as   ödd tt Ft
  493. FF dd dd dd ddò.
  494. 4.5
  495. If not all the top 12 bits are set, the load and execution addresses
  496. will (as their names suggest) determine what the computer does when the
  497. file is *LOADed or *RUN (or double-clicked from the Desktop).
  498. 4.5
  499. The sector offset in byte 22 is used where two files are mapped into the
  500. same portion of the disc. In such a case the files share the same
  501. identifying number (in bytes 23/4) but byte 22 indicates how many
  502. sectors into the portion each file starts.
  503. 4.5
  504. A typical example of this would involve two small files each fitting
  505. into one disc sector (they might for instance be !Boot, !Run or !Sprites
  506. files within an application directory). Because the minimum size of a
  507. map entry is 2 bytes representing 2 sectors on the disc, it would be
  508. inefficient to give each file a separate map entry, so the two files
  509. would be made to share. In this case, assuming the shared identifying
  510. number is say 8, bytes 23 and 24 of the directory entries for both files
  511. would be &08 and &00 but byte 22 would be &01 for the file that occupies
  512. the first sector and &02 for the second.
  513. 4.5
  514. In the usual situation where a file has a map entry to itself, byte 22
  515. is zero.
  516. 4.5
  517. The bits of byte 25 (the file attributes byte) are used as follows:
  518. 4.5
  519. bit  0   object has read access for you
  520. 4.5
  521. bit  1   object has write access for you
  522. 4.5
  523. bit  2   undefined
  524. 4.5
  525. bit  3   object is locked against deletion
  526. 4.5
  527. bit  4   object has read access for others
  528. 4.5
  529. bit  5   object has write access for others
  530. 4.5
  531. bit  6   undefined
  532. 4.5
  533. bit  7   undefined
  534. 4.5
  535. Bits 4 and 5 only have meaning to the network filing system. Bits 2, 6
  536. and 7 should be set to zero.
  537. 4.5
  538. General note: If you want to explore disc maps and directories it is
  539. very handy to have a disc sector editor such as the !DiscEdit appli
  540. cation on Careware 2. Failing that it is reasonably easy to construct a
  541. program to read from a disc sector by sector (rather than file by file)
  542. and to display the contents. The key to such a program is the SWI call
  543. öADFS_DiscOpò. For instance, the BASIC instruction:
  544. 4.5
  545. SYS öADFS_DiscOpò,0,1,address%,buffer%,length%
  546. 4.5
  547. will read starting at the ödisc addressò (as defined above) given in the
  548. variable address%, the number of bytes given in length% (1024 for one
  549. sector) into the address in RAM stored in buffer%. Obviously, a certain
  550. amount of caution is advisable since a very similar command (replacing 1
  551. with 2 for instance) could result in writing to and corrupting the
  552. contents of a disc.
  553. 4.5
  554.  
  555. 4.5
  556.  
  557. 4.5
  558. {4 .5
  559. Å   Caverns Ö A simple map and the passwords are given at the end of the
  560. magazine on page 60. Neil Berry
  561.