home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / documentation / documents / a252eur1 < prev    next >
Text File  |  1999-04-27  |  24KB  |  408 lines

  1.                                                |
  2.  EEEEEEEE                        K          A  |
  3.  EE                  R R    EE   K         AA  | The BITS ArcSIG 
  4.  EE         U   U   RR RR  E  E  K K      A A  | Newsletter
  5.  EEEEEEE    U   U   R      EEEE  KK      AA A  |
  6.  EE         U   U   R      E     K K    A  AA  | Issue #01
  7.  EEEEEEEE    UUUU   R       EEE  K  K  A    A  |
  8.                                               
  9. ------------------------------------------------------------------------
  10.  
  11. Editor's Preamble and Ego Trip
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. First of all, despite the fact that you should have heard this many  times now,
  14. welcome to BITS, and welcome to ArcSIG. For the information of those of you new
  15. to Bristol University, we aim to provide a means of exchange of legitimate
  16. public-domain software and shareware, hints, tips and OS hacks, and generally
  17. to help everybody get the most out of these wonderful 32-bit machines. Having
  18. left the now-thriving HP 48 SIG in the capable hands  of Tony Duell (although I
  19. still expect to write the occasional article for Cassini), the job of providing
  20. all this and holding things together falls to me, and I sincerely hope I can
  21. get ArcSIG off to an equally good start. However, societies require
  22. contributors, and as I'm doing an MSc this year, I don't foresee myself having
  23. either the time or the energy to keep things going without help, so if you have
  24. any items for inclusion in the ArcSIG Library, or indeed hints and articles for
  25. this newsletter , please let me have 'em, as at the moment, this newsletter is
  26. a one-Dave production.
  27. -Dave Walker (ArcSIG Leader)
  28.  
  29. *INFO
  30. ~~~~
  31. Latest news from Acorn is that RISC OS 3 is now on release as an upgrade;
  32. BEEBUG have already started taking orders. To my knowledge, the package will
  33. cost in the region of #40 (apparently Acorn made a considerable loss on the
  34. original Arthur to RISC OS upgrade), and will be supplied, as usual, on four
  35. ROMs. However, these ROMs will be about double the capacity of the c urrent
  36. chipset (as anyone who owns a 5000 or has used one will appreciate; all the
  37. apps released as part of the Welcome suite are now on chip), which means that
  38. users of the old A300 series machines may fall by the wayside, as their
  39. machines cannot physically map ICs of such a large size. So far, I have not
  40. heard any murmurings from third party suppliers as to whether a patch for this,
  41. such as a PAL switching system, will be made available. Finally,I hope users of
  42. A5000s will bear with me for the next few issues, as I haven't got RISC OS 3
  43. myself, so I can't hack it (I only run an 8Mb A540(!!!) with RISC OS 2.01). As
  44. a final addendum, I would not be surprised to see Acorn re-blowing the EPROMs
  45. (yes, EPROMs!) containing the original "fragile" version of RISC OS 3 for a
  46. nominal fee in all the A5000s sold before the final release was made.
  47.  
  48. *OBEY !RUN
  49. ~~~~~~~~~
  50. Marginal Hacks (Part 1 of1<<31)
  51. ~~~~~~~~~~~~~
  52. This column is intended as a list of useful hacks found in the more obscure 
  53. backwaters of RISC OS. As stated above, all of these hacks originated on RISC
  54. OS 2, but most of them should work under RISC OS 3. Please let me know which
  55. don't!
  56.  
  57. More MIPS
  58. ---------        
  59. For those of you with the MEMC (300 series and early 440s) as opposed to the
  60. MEMC 1A, it's possible to squeeze an extra MIPS out of your machine by
  61. including the command SYS "OS_UpdateMEMC",64,64 in your boot-up sequence.
  62. This reprograms the MEMC to re-clock your ROMs at the same speed as RAM, as
  63. opposed to the default of half RAM speed. However, this hack should be used
  64. with caution, as sone ROM sets (dependent on individual machines) may fall out
  65. of synch as a result and hang the machine, requiring a hard reset to fix
  66. things. Basically, don't use this when you are processing something
  67. valuable.
  68.  
  69. Hidden Output Streams
  70. ---------------------
  71. In much the same vein as other rather more prevalent (I won't say popular!)
  72. machines, the Arc has a number of streams to which output can be directed .
  73. With one possible exception, these act as output-only filing systems, such that
  74. files may be moved or copied to them from the desktop. To open a window to the
  75. output stream, use*Filer_OpenDir <stream>:     (the colon MUST be typed) where
  76. <stream> is
  77.  
  78. null       The null device, black hole, bit bucket, great disc drive in the
  79.            sky, etc... A stream to be used with extreme caution, but very
  80.            useful for recursive directory deletions; performing a desktop
  81.            "move" (ie a drag but with shift held down) to null gets round the
  82.            problem of the delete aborting due to locked files somewhere down
  83.            the tree.
  84.  
  85. printer    In my case, the printer stream on the parallel port. Should work
  86.            equally well with serial printers, but haven't tried it. Carries
  87.            the warning that files need to be in plain ASCII, as control codes
  88.            are interpretable by the printer; I've seen somebody accidentally
  89.            do 30 form feeds before any text came out as a result of leading
  90.            codes!
  91.  
  92. vdu        The screen. Control codes either wind up causing some unusual
  93.            effects (they get translated into the equivalent VDU calls; see
  94.            your BASIC manuals for details) or, if not covered by the VDU
  95.            calls, they appear as their hex value contained in square
  96.            brackets. I find it very useful to dump files to the screen in
  97.            this way as a preview option before dumping to the printer stream.
  98.  
  99. serial     The serial port, complying with any previous directives concerning
  100.            baud rate, stop bits, parity etc. I find it excellent for dumping
  101.            binary to my HP 48, although as there's no error checking in this,
  102.            it's advisable to keep the baud rate low (I use 300). Although I
  103.            haven't tried this yet, it would be interesting to see, as the
  104.            serial port is a two-way device, if a file icon and descriptor
  105.            would appear in a serial stream window on the desktop when a file
  106.            is sent to it from another machine.. perhaps one of you would like
  107.            to try it, and let me know the result for publication.
  108.  
  109.  
  110. Just OSing Around
  111. ----------------- 
  112. To determine the exact nature of the machine a piece of software is running on,
  113. Acorn were kind enough to provide INKEY(-256), which returns a unique number
  114. associated with each operating system version. These numbers are consistent all
  115. the way down to the old 8-bit BBC Micro, although only the list for the
  116. Archimedes series is supplied below.
  117.  
  118.   Operating System     INKEY(-256)        Machine  
  119.   ~~~~~~~~~~~~~~~~     ~~~~~~~~~~~        ~~~~~~~
  120.     Arthur 1.2            160            A300 series, early A440s.
  121.    RISC OS 2.0            161            Upgraded A300 series, A400 series,    
  122.                                          A3000, R140
  123.    RISC OS 2.01           162            A540, R200 series   
  124.    RISC OS 3.0            163            A5000
  125.  
  126. In addition, I strongly suspect that RISC OS 3.01, as supplied with the Acorn
  127. A4 Portable, will have INKEY(-256)=164, although I have yet to get my hands on
  128. one to verify this. In addition, it's interesting to note that the changes
  129. between 2.0 and 2.01 were made because 2.0 could only logically map 4 Mb of
  130. physical RAM, and the 540 and R series needed to be upgradable to 16 Mb (2.01
  131. and 3.n actually map 32 Mb); the differences between 3.0 and 3.01 cover the
  132. inclusion of the battery status monitor and the facility to simulate mouse
  133. control via the keyboard. In addition, 2.01 expan ds the screen modes
  134. available. Alternatively (but not accessible from within programs without a few
  135. obscure SWIs), the version number of the MOS Utilities RM in RISC OS is the
  136. version number of the OS, and we still have the faithful *FX 0.
  137.  
  138. The Secret Life of the Desktop
  139. ------------------------------
  140. Ever wanted to move your icon bar from the same old place at the bottom of the
  141. screen, or put scroll bars on it? Or if you're feeling sarcastic and want to
  142. give the Task Manager a REALLY bad day, how about a close icon? It turns out
  143. that the Desktop has its own filing system in which all window definitions are
  144. kept, known as DeskFS. For those of you with !FormEd (which should be all of
  145. you, since the latest version is on the ArcSIG PD Disc), editing this is
  146. possible directly by launching !FormEd from the command line, with the argument
  147. of the Desktop utility you wish to modify; these arguments are easy to obtain
  148. using *CAT DeskFS: For instance, 
  149.  
  150. *Obey <FormEd$Dir>.!Run DeskFS:Templates.Filer
  151.  
  152. allows you to edit the templates used by the Desktop Filer. Note: !FormEd MUST
  153. be launched from the command line in order to gain access to this filing
  154. system as an argument. The windows available under the given files are:
  155.  
  156. Templates.Filer
  157. Templates.Netfiler
  158. Templates.Palette
  159. Templates.Switcher    Task Display
  160. Templates.Wimp        Icon Bar, general error box, command window
  161.  
  162. However, useful though this system is, I've had an incredibly unpleasant
  163. experience with it; if the template file contains a large number of windows, 
  164. FormEd may hang up with a "Too many windows" error; if you have unsaved work on
  165. the desktop, trying to save it via anything other than an automatic hotkey to a
  166. predefined filename (PipeDream, I love ya) causes the apps to bomb as they try
  167. to open a window containing a save box. As menus are also counted as windows in
  168. DeskFS, apps are also unquittable. Other than a hard reset, the only way out of
  169. this is to close some windows; just make sure that they don't have any unsaved
  170. data in them, or the app may try to open an error box.....
  171.  
  172. Features
  173. ~~~~~~~
  174. Trials and Tribulations of the PCM
  175. ----------------------------------
  176. Were it not for the vast amount of information available only on PC format
  177. discs, I would have said that there was no virtue in being PC compatible; we
  178. can do anything they can do, and we can generally do it over 200% faster (watch
  179. over the shoulder of a PC user running MicroSoft Windows, and time that window
  180. drag with a calendar!). However, although the Arc file system is far better
  181. optimised, it leaves us incompatible, (except for those of you with A5000s)
  182. which means we don't normally have access to the mountain of software and
  183. information available, and this persuaded me to keep the option of temporarily
  184. downgrading to DOS.  Currently, I run the multitasking 1.60 PC Emulator on my
  185. A540, which turns out a snail-pace equivalent to an original IBM AT clocked at
  186. 4.7 MHz. YAWN! However, considering that emulation is achieved at chip level in
  187. most cases, Acorn have done a most commendable job; rumour has it that some
  188. poor woman at Acorn has the unenviable job of testing every piece of commercial
  189. PC software available for the 80188 processor (the chip Acorn chose to emulate)
  190. and compiling a list of those which won't run; further rumour has it that her
  191. list numbers zero items. But why the 80188? Unlike the 80386 and 80486 chips
  192. used in modern PCs, the 188 is a piece of 8 bit history, which (horrors) won't
  193. let you multitask in MicroSoft Windows properly. However, it has a spare
  194. register, completely unused in the PC architecture, which Acorn capitalised on
  195. to pass messages between DOS and RISC OS; to my knowledge, there is no
  196. analogous 80388 or 488 to emulate which would allow this to work, although a
  197. great deal of good for future software-only emulations may come from the OS
  198. interface used in the recent Aleph One hardware PC Emulator. Concerning the
  199. emulator itself, I found that the supplied mouse drive works only
  200. intermittently, and Windows doesn't like it at all. In addition, when it does
  201. work, it only moves a very small vertical distance for a large movement of the
  202. mouse; however, horizontal movement seems fine. I suspect that this is a
  203. feature of the screen mode conversion required by my standard medium-res
  204. monitor. (Please note that this review was written on my first, defective A540;
  205. the problem described here appears to have cured itself on the final machine I
  206. was supplied with). And so to business. One useful feature in the higher
  207. releases of DOS which will appeal to UNIX fans is the capability to swap the
  208. DOS directory delimiters and preference switches for the conventional UNIX
  209. ones; so it's now possible to use 
  210.  
  211. dir c:/progs/utils/compils/c -w 
  212.  
  213. instead of the DOS-conventional 
  214.  
  215. dir c:\progs\utils\compils\c /w 
  216.  
  217. ; this can be done by including the command
  218.  
  219. switchchar -
  220.  
  221. in your AUTOEXEC.BAT file. (However, I couldn't get this working.)  I recently
  222. upgraded from DOS 3.21 as supplied with the Emulator to the latest release,
  223. MS-DOS 5; a move I now consider well worth making, even though it now takes up
  224. about 2 Mb of disc space. MicroSoft have finally got round to putting a decent
  225. full-screen editor together (in QBASIC!) which can be mouse-driven, all of
  226. which saves me having to export files to RISC OS in order to modify them, and
  227. many of the routines now run both faster and slicker. In many cases, Acorn
  228. could do with taking a close look at some of the bells and whistles available;
  229. for example, the floppy formatter now report s format progress as a percentage,
  230. so there is no need to remember the number of tracks and sectors on every disc
  231. format. Probably the most potentially useful utility is Undo, which will
  232. undelete deleted files and even unformat a hard disc, recovering all the
  233. contents lost. Will someone please write it for RISC OS?! In addition, DOS now
  234. has a help facility very much like RISC OS; just type help <keyword> at any DOS
  235. prompt. For BASIC fans, the new dialect (QBASIC) shipped with DOS 5 replaces
  236. the old,  obsolete and generally appallingly primitive GWBasic with a quite
  237. acceptable language, which is capable of handling procedures, functions,
  238. DO...UNTIL loops and IF...THEN...ELSE tests. It still isn't up to the standard
  239. of ARM BASICs V and VI, but it's still easy to write code for, functions being
  240. declared in a manner similar to C. However, in every way (except for the
  241. Virtual Memory capability), Windows is still a poor man's RISC OS Desktop.
  242. Unfortunately, this is not helped by the emulator limiting us to a 188
  243. emulation, as it means that we can only run Windows in real mode anyway, and
  244. not multitask properly. Fortunately, this can be avoided by users with 4 Mb of
  245. RAM, who can simply run two copies of the PC Emulator and a copy of Windows on
  246. each!  Finally, for the amusement of DEC hackers, remember Arthur C. Clarke's
  247. in-joke about HAL? (Take the letters in turn and shift them one place right,
  248. and you get IBM.)If you take Windows New Technology (WNT), due for release
  249. "real soon now," and shift the letters one place left, you get VMS! Currently,
  250. I'm only running CGA graphic emulation, as I still use the original Acorn
  251. non-multisync monitor purchased with my A310 way back in 1988. I hope to
  252. upgrade this to a multisync soon; more news when it happens.
  253.  
  254. Archimedes-Supporting Bulletin Boards
  255. -------------------------------------                                     
  256. Despite its regrettably small user base, the Arc has attracted several private
  257. SYSOPs to dedicate sections of their BB systems to its  uses and software.
  258. Unfortunately, it seems that large systems such as Compu$erve have yet to see
  259. the light, but there follows below a list of BBSes supporting Arcs, and their
  260. relevant comms details.
  261.  
  262. ------------------------ ----- -------- ---------------------------------
  263. ARCbbs Software users    Times  Speeds  MNP   Numbers/comments
  264. ------------------------ ----- -------- ---------------------------------
  265. Arcade - London          24hrs 300-2400       (081) 654 2212 (3 lines)
  266. Archive - Norwich        24hrs 300-2400       (0603)745932 (3 lines)
  267. Atlantis - Gloucester    24Hrs 300-9600        (0452) 330328& 330244
  268. DarcWorld - Oxford       24hrs 300-2400  2     (08675) 77724 (1line)
  269. ICON - Ireland           24Hrs 300-9600  5     (0001) 971660 (1line)
  270. Meganet - Wakefield      24hrs 300-2400        (0924) 223456 (1line)
  271. Noah - Bristol           24hrs 300-2400        (0272) 572322 (1line)
  272. Starnet - Norwich        24Hrs 300-2400        (0603) 507216 (1line)
  273. The World of Cryton IX   24hrs 300-2400 5/V42b (0749) 679794 (1 line)    
  274. - Wells                        300-14.4 5/HST  (0749) 670030 (2lines)
  275.  
  276. -------------------------------------------------------------------------
  277. Other Boards of interest to Archimedes users
  278. -------------------------------------------------------------------------
  279. Acorn Support Information                      0223243642 and via PRESTEL
  280. Database (SID)
  281. Charon - Alton           24hrs  300-2400        (0420) 63115 (1 line)
  282. Chrono's Lair - Birmingham                      (021) 744 5561(sub. of #3 for
  283.                                                 downloads) (021) 7457154
  284. Conquest - Bedford PC based, but has growing Archie area  (0234)742940
  285. Narvik Online System (NOS) - Norway             (010 47) 82 57344
  286.  Arc conference by Bjorn Floetten               (2 lines)
  287. Daily Information BBS    24hrs 300-9600         (0865) 53999(Oxford -
  288.                                                 Archimedes/PC based) 
  289.  
  290. This list was unashamedly culled from the info on David Pilling's RISC OS
  291. Terminals+ disc; although the excellent applications thereon are in no way
  292. Public Domain, I hope that the list above is freely available for reproduction,
  293. as the info it contains may be found on most of the BB systems themselves; in
  294. addition, its inclusion here should serve (I hope!) to benefit the Arc
  295. community without putting Mr Pilling out of pocket through loss of sales. In
  296. addition, an increasingly comprehensive collection of Arc PD software is
  297. available on the lancs.pdsoft library, and Newcastle is rapidly becoming a
  298. major resource base. For those of  you with USENET access, comp.binaries.acorn
  299. and comp.sys.acorn provide invaluable news, and some of the software is rather
  300. good as well.
  301.  
  302. Down to the Metal: RISC OS RAM Allocation
  303. -----------------------------------------  
  304.                                              
  305. I originally bought my A310 in 1988; it was then supplied with Arthur 1.2, and
  306. RISC OS was still a gleam in Roger Wilson's eye. In my ignorance I bought the
  307. Programmer's Reference Manuals, and like everyone else, had cause to curse
  308. when  RISC OS came out and made them obsolete.  As it happens, I never got
  309. round to purchasing the RISC OS PRM, which now that RISC OS 3 has been
  310. released, is rather fortunate. However, I still wanted to find out how the
  311. memory was allotted; this is what I turned up, and it's surprisingly similar
  312. to the old Arthur setup. Please note that this map applies to an A310; I'll
  313. see if I can find out where the extra RAM goes in higher-spec machines.  A
  314. further point to note is that 300 series machines (at least, if left with
  315. their original 1 Mb of RAM) use a smaller page length than the 400 and later
  316. machines; I often had problems convincing apps that they had enough memory
  317. assigned to them. The catch is that the RISC OS translation between page size
  318. and memory quantity in K was often "out" by a sufficient amount to cause
  319. problems on tightly-written apps. Basically, if you have a 310 and some apps
  320. refuse to fit for no good reason, add another 8K to the WimpSlot -min call in
  321. the !Run file; it very often proves to do the trick.
  322.  
  323.            0  -----------------------------------------
  324.                Bootstrap and hardware exception vectors
  325.           1C   -----------------------------------------                     
  326.                    System and BASIC workspace
  327.         8000   ----------------------------------------- ]
  328.                            Application RAM               ] 639K
  329.                (RISC OS Desktop Tasks   map to here)     ]
  330.        A7FFF   ----------------------------------------- ]                     
  331.                       Unassigned address space
  332.      1800000   ----------------------------------------- ]
  333.                      RAM-based Relocatable Modules       ]
  334.                  (incl. those downloaded from podules)   ] 152K
  335.                                                          ]
  336.                     Font definitions grow downwards      ]
  337.      1825FFF   ----------------------------------------- ]
  338.                       Unassigned address space
  339.      1C00000   ----------------------------------------- ]               
  340.                              System Heap                 ] 16K
  341.      1C03FFF   ----------------------------------------- ]
  342.                       Unassigned address space
  343.      1F00000   ----------------------------------------- ]                 
  344.                   Cursor data and Desktop scratchpad     ] 32K
  345.      1F07FFF   ----------------------------------------- ]
  346.                       Unassigned address space
  347.      1FEC000   ----------------------------------------- ]
  348.                              Screen RAM                  ] 80K
  349.                          (grows downwards)               ]
  350.      1FFFFFF   ----------------------------------------- ]                  
  351.                       Unassigned address space
  352.      380873C  -----------------------------------------
  353.                    ROM-resident Relocatable Modules 
  354.  
  355. Of course, most of this setup reflects the configuration status of my A310;
  356. however, some useful information of invariants can be gained from it. I hope to
  357. continue with this theme of the low-level setup of the Archimedes as a series
  358. running through  future issues of Eureka; let me know what you think.
  359. Obviously, the first thing I'll do is go through those intriguing exception
  360. vectors! It's likely that this will be followed by a treatment of the Heap
  361. Manager (the entire Relocatable Module stack is managed as a single contracting
  362. heap), but this remains to be seen.
  363.  
  364. *LIB
  365. ~~~    
  366. The ArcSIG Library comprises a large selection of PD software and Shareware
  367. (lists available on request) and the following items on paper: 
  368.  
  369. Full RISC OS 2 SWI list  & their vectored entry points
  370. Full University of Columbia KERMIT document set 
  371. Archimedes Assembly Language (Dabs Press; an excellent book) 
  372. ARM Assembler Programmer's Pocket Reference (BITS' first publication; in 
  373.   typesetting) 
  374. The new BBC Basic Guide (I got it free!) 
  375. Disassembler listings of:          
  376.                          RISC OS Bootstrap (commented)                         
  377.                          UtilModule
  378.                          TaskManager                         
  379.                          MemAlloc
  380.  
  381. As I've been rather busy over the summer vac  getting my other systems
  382. (primarily my DEC PDP 11/34) up and running and trying to put a VM system
  383. together, the last three listings aren't commented; please feel free to have a
  384. go!
  385.  
  386. *SHUTDOWN
  387. ~~~~~~~~
  388. Well, that's it for the first issue of Eureka. I don't know whether this will
  389. become a regular publication like Cassini, but it's a start; I'll put another
  390. issue together when I find out enough useful things to go in it. The bottom
  391. line is: if you found Eureka interesting and want it to become regular and up
  392. to date, please let me know and, if at all possible, write me some
  393. contributions; I swear on my ARM 3 that you'll be credited with whatever
  394. contributions I release. If you didn't like Eureka, let me know as well, and
  395. tell me what I can do to make future issues better.
  396.  
  397. Further Notice
  398. --------------              
  399. This Newsletter was written during August 1992, before the release of the RISC
  400. OS 3 upgrade (apparently, the release issue is 3.1) and the release of the new
  401. A3010, A3020 and A4000 machines. If anyone has bought one of these latter
  402. items, please let me know; reviews would be appreciated. I hope to receive a
  403. beta-test copy of RISC OS 3.20 soon, and (for those of you who may also have
  404. A540s) I should be getting the blueprints to this machine as
  405. well.
  406.  
  407.  
  408.