_ _ EXTERNAL COMMANDS FOR _OPEN SYSTEM KA43/61 All commands have the syntax: X"COMMAND"',EXPRESSION' where is mandatory and 'EXPRESSION' is optional Do not print these brackets, they are only shown for your convinience. After a command is loaded, a recall can be made with only : X',Parameters' Eg. : X"AUTO",100,10 or : X"AU*",100,10 and later : X,100,10 EXTERNAL COMMANDS: _"APPEND","Name"',Dev' Where Dev=1 for tape and 8 for disk. _"AUTO",',Step' Auto line numbering. Cusor down to an empty line and press to disable. _"BIG CHARACTERS" Prints double height characters to the text screen. This is achieved with the same text on two adjacent lines, the second time with RVS on. Use NORSK or USER CHR to configure the computer for RAM based characters before you enter this command. _"COPY TO PRINTER" Dumps text screen to printer using the character font of the printer _"DATA AUTO",',Step' As AUTO with DATA written automatically after the line number. _"DELETE",'Line'-'Line' Deletes all lines between given numbers. 'Line' syntax as for the LIST command. _"DEUTSCH CHR"_ see "NORSK CHR" _"DIRSORT" Sorts a disk directory alphabetically back to the disk. _"DISK DEV NO",, Gives the disk drives new unit no between 8 and 31. More than one drive can be powered on at the same time. _"EASY LIST" Prints CBM control codes as readable mnemonics. Repeat X to turn off EASY LIST mode. _"FIND",// Hunts through a BASIC program. To find a Basic word enclose in ' instead of / _"HELP KA43/6" Help menu loads to the middle of Basic area. The load adr. should normally not create any problems, but be careful. _"HEX CONVERTER" Allows use of hex. figures, eg. $C000. Does not allow hex in DATA items. _"HIRES" High resolution mode with the fol- lowing options (no preceeding comma): B',Colour' Blank colour sceen C Clear HIRES S Set HIRES R Reset from HIRES T,,,"Text string" P,, Plot on HIRES U,, Unplot on HIRES The B mode initiates HIRES, and is therefore executed automatically first time HIRES is called. The colour byte is (ink*16+background). T prints 80 characters/line, value from 0 to 25 (the higer actually is 24 preceeded by a ) and column value from 0 to 79. The fol- lowing CHR codes have special meaning: 14 and 15 for Expand on/off, 18 and 146 for RVS on/off, 13 (the chr) scrolls the screen one line up, 133 (or ) clears the position (all other CHR's are OR'ed to the bacground). X value from 0 to 319 and y value from 0 to 199 for Plot/Unplot. See ANNUAL REPORT and GRAPHPAD which are nice Basic programs using HIRES. _"MC TRACER"',Delay' Displays continously the MC-registers, the stack pointer (SP) and the program counter (PC). The delay byte (0 to 255) slows down the program. Higher value for slower program execution. _"MERGE","Name", Only for disk (as many of the external commands). The merged file from the disk overwrites any lines in memory with the same number. _"MOVE BYTE/WINDOW",',R,SS,DS,M' Moves any RAM area of N bytes (max. 32K) from S to D, repeats the process R times and steps (only pos. values) each time the source adr. SS and the destination adr. DS. Mode M=0 for normal move, M=1 to ORA the bytes to the background at the destination, M=128 to invert on text screen and M=255 for HIRES invert. The prg. is relocatable and operates on all the 64k RAM of the CBM64. The Basic PRG "GRAPHPAD" shows examples. _"NORSK CHR"',"CHR SET"'''',1' Foreign character sets (others are also available on the system disk) or USER CHR. You can load your own CHR SET as set 2 from Dev which may be different from that which the external command comes from. The last 1 means that you reclaim to BASIC the RAM used by the default text screen. The 1 don't need to be preceeded by the load option. The prg. loads to the lower part of the new screen ($CC00= 52224). Therefore the CUSOR must be on the upper half of the screen if the prg. is to be loaded a second time to prevent interference from text put on the screen by the loading process. (RAM from 52087 to 52223 must not be interfered with when you use the chr. sets.) _"OLD"_ Resets a lost BASIC program _"OUTPUT RAM BLOCK",, and with the number of bytes given by is sent to the output device. The file is automatically closed by this command. The program is relocatable. _"RELOCATE LOAD","NAME",',Dev' Loads a program file to the start . Remember that most MC-prg are not relocateable (i.e. will not run at a new start adr.),but RELOCATE LOAD is. _"RENUMBER"',Start'',Step'',Line-Line' Use line-line when you only want part of a Basic program (i.e. only old lines between numbers given) renumbered. _"TAPE TURBO" Standard tape turbo. The program resets KA43. SYS to restart. Basic prg. always reloads to start of Basic RAM. A MC-PRG saved and loaded with this pro- gram always reloads to correct address (,1 is not required) and no BASIC pointers are altered. An MC-PRG can be started at the load address with: SYS 784. _"TURBO LOAD"',Dev' Turbo disk for device 'Dev' (8 by default). The dev. no may be deleted both for LOAD and VERIFY, but must be included for a MC-PRG together with the sec. adr., i.e. ...",8,1. If sec. adr. is 3, no basic pointers will be changed by the MC load. No other serial devices must be POWERED ON, even too long cables lenghts connected to the serial port may spoil the TURBO LOAD. "KA43 TURBOLOADER" installs the program at BASIC RAM top. _"USER CHR"_ see "NORSK CHR" _"VARIABLE DUMP" Shows the variables and their values when a Basic program has been run. _"VIEW-FILE","Name",',Sec.Adr' Reads files, both SEQ and PRG, from disk and sends to ouput Dev according to the table below. The input disk U no. can be changed with: "VIEW-F*"'U' with U=8,...,15. To HALT screen output press and to stop press . +-------------+--------------------+ ÅInput Disk UÅ Secondary address Å +-------------+--------------------Å ÅOutput Dev NoÅ 0 1 2 3 80 81 Å +-------------Ä--------------------+ ÅModem RS232 2Å x x x x Å Å40-Screen 3Å x x Å ÅPrinter 4Å x x x x Å Å80-Screen 80Å x x x x Å +-------------+--------------------+ The Sec.Adr controls the characters which are sent to the Output Dev : 0 Only printable letters (no CTRL CHR) 1 Transparent (No CHR are deleted) 2 WP-mode i.e. SCREEN CODES 3 Std. ASCII (Use STD ASCII.CHR) 80 As Sec.Adr 1 with 80-screen view 81 Press -key to activate Dev 80-Screen uses the current CHR-set used by the text screen (i.e 40-Screen). To enhance character quality with KA43/61 use: X"USER CHR","80-SCREEN*" Press to activate the new character-set. KA43/61 must not be in C0- mode when using Sec.Adr. 80 or 81 with Dev 4. 80-Screen accepts the same CTRL-codes as HIRES. File 125 must be OPENed before the output is sent to Dev 2; for 1200 baud press when using KA43/61. To convert output to dev. 2 from PET-ASCII to std. ASCII, choose serial printer when KA43/61 is started, POKE+341,2 and goto C2 mode. _"WATCH"',Hour:Min:Sec' "WATCH",B to disable (blank), but the watch keeps going. Only "WATCH" to turn on display again. Both hour, min and sec must be set! *********************************** * OSLO 25-OCT-1992 by K. Aanestad * *********************************** For more info: x,"MORE HELP"