home *** CD-ROM | disk | FTP | other *** search
/ Commodore Disk User Volume 4 #3 / Commodore_Disk_User_Vol.4_3_1991_-.d64 / osman < prev    next >
Text File  |  2022-10-26  |  14KB  |  269 lines

  1.  
  2.  
  3.                
  4.                
  5.                
  6.                
  7.                
  8.                                               K{SHIFT--}RE AANESTAD            
  9.                
  10.                
  11.                
  12.                
  13.                
  14.                
  15.                
  16.                
  17.                                                    FOR COMMODORE 64
  18.                
  19.                
  20.                
  21.                
  22.                     KA43/5 opens up the operating system of your Commodore 64. It gives you comprehensive
  23.                internal commands and opens up for external commands. The internal commands are as you would
  24.                expect, readily executable. The external commands are automatically loaded from the disk drive
  25.                before they are executed.
  26.                
  27.                     KA43/5 is a relocatable machine code (MC) utility. It will highly enhance the cooperation
  28.                between your computer and any Epson (or IBM) compatible printer. The printer can either be
  29.                connected to the CBM Serial port or to the User port. In the latter case the User port will act
  30.                as a Standard Parallel Centronics port and the only hard-ware required is a simple straight
  31.                through cable. Any character, even user defined characters can be printed with high speed. Text
  32.                and high resolution (Hires) graphics can be intermixed in the same document. KA43/5 goes futher
  33.                and is highly valuable even without a printer as it eases and extends the use of the disk
  34.                drive. New external commands can easily be added at any time by the user himself.
  35.                
  36.                     KA43/5 can safely be used as an utility for other programs, even other utilities. KA43
  37.                wedges itself into the other programs and should therefore, if possible, be the last one to be
  38.                initiated. All KA43/5 commands can be used both in direct and program mode except after an IF
  39.                THEN command.
  40.                
  41.                     Load and run KA43/5. Choose between Serial and Centronics printer and locate the
  42.                MC-utility preferably at top of Basic RAM! If you choose this location, the program will lower
  43.                the necessary pointers to protect itself. If in doubt go for the default values. Turn on any
  44.                printer. You can now use OPEN 4,4 and PRINT#4 or CMD 4:LIST as normal.
  45.                
  46.                
  47.                    Character type  for the printer  (key in and press <RETURN>):
  48.                
  49.                     _C0     CBM or your own definded characters printed exactly as used on the screen. The
  50.                             control codes you can use are CHR$(18) and CHR$(146) for RVS ON/OFF, CHR$(14)
  51.                             and CHR$(15) for Expand ON/OFF, CHR$(21) or CTRL U for toggling Underline
  52.                             ON/OFF, CHR$(8) for reduced linespacing (24/216") and CHR$(7) or CTRL G for Hires
  53.                             (parameters as preset by the _Gm,h,l command) intermixed with your text.
  54.                     _C0,x   As above, except printer bit map density changed to x (default 76) for both text
  55.                             and Hires. Consult your printer manual. Try 76+128 if you have a Serial printer
  56.                             set for PET ASCII and not Standard ASCII (if so also use _C3 when not in _C0 mode).
  57.                
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                KA43/5                                                                                       2
  68.  
  69.                     _C1     Standard printer characters, upper/lower set as on screen (default).
  70.                             You can use your printers control codes.
  71.                     _C2     Standard printer characters with forced ASCII conversion. To be used when
  72.                             you will ensure character conversion from PET ASCII to Standard ASCII.
  73.                     _C3     Standard printer characters, emulation mode i.e. no character conversion.
  74.                
  75.                     The value choosen will remain intact until you alter it or switch the computer off.
  76.                Secondary address of the OPEN statement for device 4, the printer, have no effect. Listing of a
  77.                program may require that you use _C0. All Commodore control codes will then be printed.
  78.                
  79.                     The Character type mode will be disabled by warmstarting the computer (e.g hit RUN/STOP
  80.                and RESTORE). Usually this will not disable the wedge. It is therefore easier to press:
  81.                _C1<RETURN> than to make a SYS call to restart.
  82.                
  83.                
  84.                    SCREEN DUMPS
  85.                
  86.                     _G     Graphic dump of high-resolution screen. Can also be used for Multi-color,
  87.                            but you loose the colors. Keep RUN/STOP pressed to stop printing.
  88.                     _Gm    As above with left margin set to m. Default is 0.
  89.                     _Gm,h  As above, bit-map screen from location 256*h (i.e. h=high byte). Any value can
  90.                            be used. Most used values are 32,64,96 (default),160 and 224.
  91.                     _Gm,h,lL gives number of graphic lines to be printed. Default is 25. This command
  92.                            sets the parameters and returns without printing.
  93.                     _K     Copy of text screen. You will get an exact copy as KA43/5 automatically seeks
  94.                            for the screen location and chr. set. Keep RUN /STOP pressed to stop printing.
  95.                     _Km    As above with left margin set to m. Default is 0.
  96.                     _Km,1  As above with the one to denote reduced linespacing (24/216").
  97.                     _B0"T" Banner dump to screen of Text enclosed in quoation marks or string variable.
  98.                     _B1"T" As above to printer.
  99.                     _I     Sets interrupt controlled screen dumps ON (does not work for Serial printers).
  100.                            KA43/5 automatically seeks the screen, it be text or Hires. Use  CTRL K for
  101.                            printer copy. Disable with RUN/STOP RESTORE. The command will normally not work
  102.                            on protected programs or programs which disables the RUN/STOP and/or RESTORE keys.
  103.                
  104.                
  105.                    DISK COMMANDS
  106.                
  107.                     _D     Directory is shown on the screen without erasing any Basic program.
  108.                            STOP the listing with the Space key.
  109.                     _E     Any disk Error status is shown, i.e. disk status channel.
  110.                     _Ed    Change the disk device numbers of KA43/5 commands. d to be a figure from 8 to 11.
  111.                     _E"C"  Disk command, see your disk manual. Neither OPEN nor CLOSE are required.
  112.                            E.g. "C"="R0:BETTER=GOOD" which renames the program from "GOOD" to "BETTER".
  113.                
  114.                
  115.                
  116.                    MC-SAVE & ADD COMMANDS
  117.                
  118.                     _M<Start adr.>,<End adr.+1>,"Name",<d>,1
  119.                            MC-save , d=1 for casette and d=8 for disk. Load with LOAD"Name",d,1.
  120.                            Remember to reset the Basic pointers after a MC load with  NEW<RETURN>.
  121.                
  122.                    _A<Adr> Additional command. <Adr.> is the SYS call address and must be a figure. Later
  123.                            SYS calls to the same address are made with _A<RETURN> only. E.g. _A49152<RETURN>.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.                KA43/5                                                                                       3
  134.  
  135.                            _A automatically seeks for an installed machine code monitor. List from the monitor
  136.                            to the printer with : OPEN 4,4:CMD 4:_A <RETURN>
  137.                
  138.                
  139.                    EXTERNAL COMMANDS
  140.                
  141.                     _X"NAME"  External command which will load a machine code program and jump to the first
  142.                            address loaded. The command will substitute LOAD"NAME",8,1 and the SYS number,
  143.                            with no Basic pointers altered. Thus the command will have the same effect
  144.                            as if already in memory. To recall an already loaded and executed command just
  145.                            press _X <RETURN>.
  146.                            Parameters kan be passed. Eg. _X"AUTO",10,10 <RETURN>, or _X,10,10 <RETURN>.
  147.                            KA43/5 will protect itself from beeing overwritten by an External Command with
  148.                            an OUT OF MEMORY error and it will deny to load a Basic program starting at
  149.                            normal 2049.
  150.                
  151.                
  152.  
  153.                     The best location of KA43/5 OPEN SYSTEM is usually at top of Basic RAM. This area is most
  154.                often not used by any other program. A draw-back is that this may unnecessary reduce the space
  155.                available for Basic programs. The lenght of KA43/5 is 2555 bytes. You may alternatively locate
  156.                KA43/5 in ML-RAM somewhere from 49152 to 53248. If location 49152 is interfering with other
  157.                programs, you can choose 50693 (=53248-2555).
  158.                
  159.                     By locating KA43/5 at top of Basic RAM, the program will protect itself by lowering the
  160.                pointers of Basic RAM top (=PEEK(55)+256*PEEK(56)). Start address  ( <Adr.> ) will then be
  161.                equal to this new RAM top (normally 38405).
  162.                
  163.                     You may save the ML part by help of _M if you want. SYS<Adr.> to start up the program when
  164.                it is loaded (and the computer is reset by  NEW <RETURN>). If you at the same time want the
  165.                program to protect itself from Basic i.e. lower the Basic top then SYS<Adr.+7>.
  166.                
  167.                     Be sure your printer supplies its own linefeed after carrage return (i.e. after RETURN or
  168.                CHR$(13) is received). Try to avoid using file no. 125 to 127 as they may be used by KA43/5.
  169.                
  170.                     When _C0, _G, _K or _B are in operation, KA43/5 uses the first 2k of the RAM under the
  171.                character ROM as a temporary store. This area is hardly used by any other program.
  172.                
  173.                     KA43/5 will work with most programs without difficulty, but some programs may use all
  174.                available RAM and then wipe it out. Let's look at some programs:
  175.                
  176.                KA19/2E BASIC   :Locate KA43/5 at top of Basic RAM.
  177.                
  178.                D-BASE KA9      :Locate KA43/5 at top of Basic RAM.
  179.                
  180.                SPEEDSCRIPT 3.x :Locate KA43/5 at 50693. Load SpeedScript. POKE 2481,197. RUN SpeedScript
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.                KA43/5                                                                                       4
  201.  
  202.                DOS WEDGE       :by Commodore does not like the _. To change this to e.g. ' (=SHIFT 7),
  203.                                 POKE<Adr.+104>,39  where <Adr.> is start-address of KA43/5.
  204.                                 All KA43/5 command is then to be preceeded by ' ,e.g 'G.
  205.                
  206.                SIMONS BASIC    :Insert the cartridge. Locate KA43/5 at top of Basic RAM.
  207.                
  208.                
  209.                
  210.                     SOME POKE's can help you to customerise KA43/5 to your needs:
  211.                
  212.                POKE<Adr.+1776>,x  x is number of lines _K will dump to the printer (25 by default).
  213.                
  214.                POKE<Adr.+2217>,x  Where x is ASCII value of printing character used by _B (64 by default).
  215.                
  216.                POKE<Adr.+904>,x   x is Control code used for underline (21 by default). POKE<Adr.+908>,128
  217.                                   for overline instead of underline.
  218.                
  219.                POKE<Adr.+1736>,x  Value of reduced linespacing is x/216" (24 by default). Disable this
  220.                                   facility with  POKE<Adr.+1705>,96.
  221.                
  222.                POKE<Adr.+2026>,2  CBM K instead of CTRL K for Interrupt kopi to printer. POKE<Adr.+2033>,36
  223.                                   and the printing starts with only a touch on the CTRL (or CBM) key.
  224.                
  225.                POKE<Adr.+1711>,234 Five bytes at your choice, from <Adr.+1729> to <Adr.+1733> will be sent to
  226.                                   the printer before  the _G, _K and _B1 commands and when using CHR$(8) and
  227.                                   CHR$(7) in _C0 mode (i.e. commands reducing the line spacing).
  228.                
  229.                
  230.                
  231.                     The user port at the rear left side of the CBM64 can be hooked to a Centronics printer
  232.                with a standard parallel  cable. The same cable can also be used for Easy-Script, VizaWrite ,
  233.                Final cartridge etc.. The cable can be wired as follows:
  234.                
  235.                CBM user port:    A   B   C   D   E   F   H   J   K   L   M   N
  236.                
  237.                Centr. DB-36 :   27  11   2   3   4   5   6   7   8   9   1  19
  238.                
  239.                You should always connect/disconnect the printer cable at the computer end when it is not
  240.                connected to the printer, and disconnect the power cord of the printer when connecting the
  241.                cable to the computer. This precaution will save wear on the IC (U2, type 6526) connected to
  242.                the User port.
  243.                
  244.                
  245.                
  246.                 KA43/5 OPEN SYSTEM  introduces a new concept for your CBM 64. You can now let the computer
  247.                grow as you expand your libary of external commands. Exsamples of external commands are:
  248.                
  249.                _X"DELETE",100-300
  250.                
  251.                _X"RENUMBER",100,10,400-600 (Renumber the old lines 400 to 600)
  252.                
  253.                _X"OLD"
  254.                
  255.                
  256.                              KA43/5 is written by K]re Aanestad 1988(c) for COMMODORE 64.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.                KA43/5                                                                                       5
  267.  
  268.                                                                                                               
  269.