home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / oberon / text / oberon4amiga.guide.text (.txt) < prev    next >
Oberon Text  |  1977-12-31  |  10KB  |  136 lines

  1. Syntax10.Scn.Fnt
  2. ParcElems
  3. Alloc
  4. Syntax14b.Scn.Fnt
  5. Syntax8b.Scn.Fnt
  6. Syntax12.Scn.Fnt
  7. Syntax12b.Scn.Fnt
  8. Syntax8.Scn.Fnt
  9. Syntax10i.Scn.Fnt
  10. Syntax12i.Scn.Fnt
  11.     Syntax10b.Scn.Fnt
  12. Oberon for AmigaTM User's Guide
  13. V4 Release 1.3 (31 May 1996)
  14. Stefan H_M Ludwig, Claudio Nieder & Ralf Degner
  15. Copyright 1991- 96, ETH Z
  16. Introduction
  17. Oberon for AmigaTM is an implementation of OberonTM for Commodore Amiga Systems. Both the programming language Oberon_2 and the Oberon System have been implemented. For a complete description of the Language and of the System, one should read the following books:
  18. N. Wirth and M. Reiser: Programming in Oberon. Steps beyond Pascal and Modula_2.
  19. Addison Wesley, 1992, ISBN 0_201_56543_9.
  20. Tutorial for the Oberon programming language and concise language reference.
  21. M. Reiser: The Oberon System. User Guide and Programmer's Manual.
  22. Addison Wesley, 1991, ISBN 0_201_54422_9.
  23. User manual for the programming environment and reference for the standard module library.
  24. N. Wirth and J. Gutknecht: Project Oberon. The Design of an Operating System and Compiler.
  25. Addison Wesley, 1992, ISBN 0_201_54428_8.
  26. Program listings with explanations for the whole Oberon system, including the compiler for NS32000.
  27. ssenb
  28. ck: Object_Oriented Programming in Oberon_2
  29. Springer_Verlag, 1993, ISBN 0_387_56411_X.
  30. Principles and applications of object_oriented programming with examples in Oberon_2.
  31. The technical report 160 by H. M
  32. ssenb
  33. ck, Differences between Oberon and Oberon_2, The Programming Language Oberon_2, is recommended too. It is present as on_line documentation:
  34.     Edit.Open Oberon2.Differences.Text
  35.     Edit.Open Oberon2.Report.Text
  36. The following short tutorial describes the differences to the original implementation from a user's point of view.
  37. Oberon for Amiga runs as a single Amiga process on any system with at least a 68020 processor featuring Amiga OS 2.0 or newer. It needs an floating point unit to use REALs. It uses an own screen as display. The dimensions of the user track and the system track are automatically defined when starting Oberon for Amiga and cannot be changed until the Oberon process terminates.
  38. Installation
  39. Oberon for Amiga is distributed as an lha archive (see the accompaning readme file for a description of the contents). Decompress the archive where ever you want the Oberon for Amiga directory. Open the directory and click to the Oberon icon to start.
  40. If you do not own a floating point unit you need the Oberon-NonFPU archive, too.
  41. Printing
  42. When asked to print (for example with Edit.Print PSPrinter * ), Oberon will generate a file in the T: directory. It will then call a program or script with the name OberonPrint with the printer name set with System.PrinterName as first, the name of the file as second and the name of the Oberon printer driver (only PSPrinter available at the moment) as third parameter. It's up to OberonPrint to print and delete the file afterwards. Depending on your printer you can either send the file directly to PRT: , or use a interpreter, e.g. HWG post.lirary, or simply copy it anywhere. The Script directory contains a sample script, which will copy the file. Of course OberonPrint has to be somewhere in the Amiga DOS command search path or in the script directory.
  43. Starting Oberon for Amiga
  44. Oberon for Amiga is started from a shell window using the script oberon or from the workbench using the icon. The syntax is:
  45. oberon     [[CMD=COMMAND] module.command]
  46. where
  47. - the command module.command is executed (default: CMD Oberon.Loop)
  48. Note: The options above are not yet supported
  49. When started for the first time, Oberon for Amiga will ask for the preferred screen mode and resolution. This information will be stored in the environment variable Oberon4Amiga. The command System.ChangeMode can be used to change the value at a later time.
  50. If Oberon for Amiga gets out of control (e.g. because of a looping command), press Ctrl_C in the terminal window (do not forget to set the focus first) or doubleclick on the KillOberon icon. The Amiga OS has problems if a process is interrupted, while it is waiting for a message reply. To avoid problems, Ctrl_C refuses to work when it detects a possible critical situation.
  51. System.Quit terminates the oberon process. It is the normal way to leave Oberon for Amiga.
  52. Amiga related commands
  53. System.AnsiInput
  54. System.OberonInput
  55. System.TwoButtonMouse
  56. System.ThreeButtonMouse
  57. System.ShowMode
  58. System.ChangeMode
  59. System.OberonLoop
  60. System.AmigaLoop
  61. System.PrinterName
  62. System.ChangePri
  63. Differences to the Original Oberon
  64. The differences are due to the underlying hardware and software. Here follows a list of modules containing differences:
  65. System
  66.     New commands:
  67.         - Quit to leave Oberon for Amiga
  68.         - Execute command to execute a (non_interactive) shell command
  69.         - ChangeDirectory newdir to change the working directory
  70.         - ChangeMode to get a screen mode requester for changing the screen mode. You need an asl.library with
  71.             version 38 or higher for the requester.
  72.             Note: The change will only take effect after a restart of Oberon for Amiga.
  73.         - OberonLoop makes the main loop Oberon friendly. It will run with a low task priority and will never give
  74.             back the control to Amiga-OS. So Oberon background tasks can eat all calculation power not used
  75.             by other tasks.
  76.         - AmigaLoop makes the main loop Amiga-OS friendly. Amiga-OS will call the main loop 50 times per
  77.             second, so background tasks are only called 50 times per second, too. The Oberon task sleeps if the task
  78.             is waiting for the next call.
  79.         - PictPrintThresh sets the threshold
  80.             Note: Printing of PictElems is very, very slow. So only use small PictElems in your Texts.
  81. Amiga*
  82.     Amiga specific modules, by which the Oberon System gains access to the Amiga libraries. 
  83. Display
  84.     Imports Amiga*.
  85.     Procedures DefCC, DefCP, DrawCX, FadeCX, InitCC, InitCP, SetCursor are not implemented.
  86.     Procedure SetMode has no effect.
  87.     The display bitmap is not directly accessible (Map returns 0).
  88.     Pattern format is different, use Display.NewPattern to define a pattern.
  89.     image[1] defines the bottom line of the pattern.image[0] is reserved.
  90. Display1
  91.     Module exporting additional drawing procedures.
  92. Input
  93.     Input events are buffered.
  94.     Special keys:
  95.     F1    mark viewer
  96.     Esc    escape
  97.     F3    break
  98.     F5    Hot-Key for EditKeys (see EditKeys.Text )
  99.     The F-keys 6 to 10 and the HELP-key are not needed for a normal System V4. In O4A it is possible to define a procedure for every key that will be called if the key is pressed. Modify Configuration.Mod file in directory configuration to change the default settings
  100.     The default settings are:
  101.         F6    Clipboard.Show
  102.         F7    Copy SnapShot of O4A Screen to Clipboard
  103.         F8    Prog.Guide.Text
  104.         F9    ObTris - A Tetris like Game
  105.         F10    Mines - A Minesweeper
  106.         HELP    Welcome.Text    
  107.     O4A supports the Amiga HotKeys for the Clipboard:
  108.         Right-Amiga-C    Copy selection to Amiga Clipboard
  109.         Right-Amiga-V    Paste Amiga Clipboard at caret
  110.         Right-Amiga-X    Cut selection to Amiga Clipboard
  111. Input.Time() returns the real time in milliseconds since Oberon for Amiga has been started.
  112. Files
  113.     Exports ChangeDirectory.
  114. Types
  115.     New interface module to the type system. Necessary to implement persistent objects.
  116. Oberon
  117.     Time() returns Input.Time()
  118. Kernel
  119.     GC may be called at any time, since local pointers (on the stack or in registers) are used as roots during the mark phase of the garbage collection.
  120.     It is not possible to set parameters of the serial device from Oberon. Use the WB Serial-Prefs-Tool to do this bevor you start the Serial Device. Because of this the parameters of V24.Start and the procedures FlowCntlCTS, FlowCntlDTR, FlowCntlOff and FlowCntlXOn have no effect.
  121.     New command: Open to serial device for Terminal
  122. International Characters    
  123. The option character is "\" instead of "/". This allows to use "/" in file names (Amiga path names).
  124. For questions and bug reports, please write to
  125.   The Secretary
  126.   Institut f
  127. r Computersysteme
  128.   ETH Zentrum    Tel: (+41_1) 632 7311
  129.   CH_8092 Z
  130. rich    Fax: (+41_1) 261 5389
  131.   Switzerland    e_mail: oberon@inf.ethz.ch
  132.   Ralf Degner
  133.   Schillerstr. 16
  134.   29525 Uelzen
  135.   Germany    e-mail: degner@pallas.amp.uni-hannover.de
  136.