background image

Summary of Contents for MBC-550 Series

Page 1: ... v 0000000 k c H Tv j1 i N N m y M tev r coocwo A m OOOO I y i AviV i ...

Page 2: ...MBC 550 SERIES USER S GUIDE SANYO ...

Page 3: ......

Page 4: ... manual may be reproduced in any form without expressing written permission form Sanyo If The contents of this manual are subject to change you wish to receive revisions and updates please contact the place of purchase Sanyo assumes no responsibilities for errors in this manual or their consequences MS DOS is a trademark of Microsoft Corporation ...

Page 5: ......

Page 6: ...o m 3 0 D a ...

Page 7: ... O D 0 CO O c 0 ...

Page 8: ... Sanyo Basic Operation Mode How To Enter Sanyo Basic Sanyo Basic Concepts Symbols Used For Syntax Description 3 7 Line Numbers Keywords and Spaces Data General Instructin Words Introduction Descriptions Graphics Screen and World Coordinates Color Specifications Graphic Instruction Worlds 3 1 3 2 3 3 3 6 3 10 3 12 3 13 3 33 3 34 3 36 3 103 3 104 3 107 3 108 4 1 CHAPTER 4 MS DOS INTRODUCTIN What Is ...

Page 9: ...SART 8251A Keyboard Signals Key Operation Timer Baud Rate Establishing Video RAM and HD46505 CRTC DTS 4 Dip Switch DOS Editing Keys 5 1 5 2 5 3 5 6 5 8 5 12 5 14 5 15 5 16 5 17 5 19 5 28 5 30 5 31 5 32 5 33 5 33 5 36 5 37 5 38 5 40 5 41 6 1 CHAPTER 6 PERIPHERAL INSTALLATIONS Installation Instructions Cabinet Cover Removal Rear Panel Removal Second Drive FDD 1655 Installation Memory Expansion MBC 6...

Page 10: ...INDEX 1 1 ...

Page 11: ......

Page 12: ... CHAPTER 1 GETTING STARTEO 1 1 ...

Page 13: ...may be used with your computer The color monitor is 14 640 x 200 dots one dot eight color type and the green monitor is 12 640 x 200 dots type We recommend Sanyo brand monitors for the best results The operating system used is MS DOS tm by Microsoft tm A wide range of software and applications is available Please contact your authorized Sanyo comput er dealer for more information on these programs...

Page 14: ...uter in the direct sun light or near heaters or coolers you should locate your computer where it will 1 2 Do not locate the computer in areas of dirt and dust or where vibration may take place 3 Do not use in areas of intense electromagnetic fields 4 Keep the computer away from walls and place it in a well ventilated room 5 Use only specified local power lines 6 Do not drink or eat near the comput...

Page 15: ...r expose disks to magnetic or electric fields Do not store disks in direct sunlight extreme heat or cold Keep the diskettes inside their envelopes to protect against dust or dirt Do not bend or fold diskettes Always make copies of original disks for safe keeping Recommended Diskettes Sanyo recommends the use of the Sanyo MD1DD diskettes single sided double density soft sectored Sanyo assumes no re...

Page 16: ...m Connection Please read the following instructions before connect ing the system Check each box as you complete each step Connect the keyboard as shown below REAR PANEL KEYBOARD Remove the vinyl cover from the plugs and connect ors Join the keyboard cable to the computer socket labeled KEY BOARD 1 5 ...

Page 17: ...the Sanyo 550 series computer in the socket labeled MONO CHROME Connect the power cord to a local outlet power switch is located below the screen The OTHER MONITORS SOME MONITORS PROVIDE POOR NOTE FOR EMI PERFORMANCE CONNECT THE MONITOR POWER CORD TO THE MBC 550 SERIES COMPUTER POWER OUTLET LOCATED IN THE REAR OF THE COM TO ELIMINBATE THE NOISE PROBLEM PUTER Printer Connection optional Parallel Pr...

Page 18: ...s printer port and will support only a parallel printer such as the Sanyo PR5000 5500 Please contact your Sanyo computer dealer for other Sanyo printers Connect the printer cable to the printer CAUTION When connecting peripherals to the MBC 550 series computers be sure to use the specified shield cables by the peripherals manufacturers to meet the FCC regulations 1 7 ...

Page 19: ...NAMES AND FUNCTIONS OF THE PARTS Names Front 71 2 Drive Lamp i D Diskette Set Lever A 4 Diskette Case B Keyboard T Power Switch 3 Floppy Disk Drive 1 8 ...

Page 20: ...e drive may be added in the space now used for diskette storage 4 Diskette Case This compartment may be used to store disks Please note the position of the diskette as it enters the compartment Do not force entry try again with disk rotated till it matches the figure in the illustration 5 Diskette Set Lever Insert the diskette into the drive and move the lever down to set the diskette Move the lev...

Page 21: ...T button is located on the left rear edge of the keyboard The RESET button is used to start the system cold boot again after it has been running Never depress the button when a program is running RESET BUTTON Id KEYBOARD 1 10 ...

Page 22: ...Names Back 9 Joy stick p ddle connector Fuse Power outlet External Keyboard connector GND terminal Printer connector Color monitor connector Monochrome Monitor connector AC cable RS232C port 1 11 ...

Page 23: ...r Outlet A power outlet is provided to allow you to plug your monitor into the computer 4 Grounding Terminal An electrical may be attached here 5 Keyboard Connector This socket connects the keyboard with the computer 6 Monochrome Monitor Connector This socket connects high resolution composite moni tors 7 Color Monitor Connector This socket connects high resolution color monitors 8 Printer Connect...

Page 24: ...This plate is removed for installing a joystick or paddle 10 RS232C Port This plate is removed for installing an RS232C serial interface 11 EXTERNAL This plate may be removed for installing future inter faces provided by Sanyo 1 13 ...

Page 25: ... maximum comfort when using the keyboard Snap the legs toward the rear of the keyboard Push firmly against the back rests Make sure both legs are at the same angle Refer to the illustration below For a lesser slope the keyboard may be operated without the tilt legs in the extended position Back View of Keyboard 1 14 ...

Page 26: ...OPERATIONS 1 15 ...

Page 27: ...not running The input Inserting the Diskette Withdraw the diskette from its envelope Open the drive door by moving the gate lever up Open Hold the diskette by the label and insert into the drive The write protect cut out on the disk edge will face left and the read write slot will lead into the drive Insert the diskette till the end of its passage 8 Close Close the door by moving the gate lever do...

Page 28: ...Withdrawing the Diskette Open the drive door by moving the gate lever up Withdraw the diskette and close the door by moving the diskette set lever down Q 1 17 ...

Page 29: ... PF6 PF2 0 p I R T Y U J Q W E I I PF7 i PF3 F G J K L S D H A CTRL PF8 SHIFT JS PF4 N M SHIFT Z X C V 8 PF9 PF5 CAPS LOCK GRAPH SPACE PF10 Keyboard with Graphic Symbols 1 GRAPH SB L 9s amlm irTjmr I IE L L i h hr BLANK SPACE 0 00 30H is generated twice 1 18 ...

Page 30: ...2 GRAPH SHIFT 9 i 1 v2 1 4 i a 6 n i N BLANK SPACE 00 30H is generated twice 3 GRAPH CTRL i I J n l s J u 6 Q j l e er pts f 1 r n n J a e o l u elala ala l4 Cj oc BLANK SPACE 1 19 ...

Page 31: ...tters depress the SHIFT key Depress the CAPS LOCK key to conti nually enter upper case letters The CAPS LOCK lamp set in the key will glow red indicating upper case continual entry O CAPS LOCK By depressing the CAPS LOCK key again lower case letters are again continually entered The CAPS LOCK lamp will be off The keyboard is equipped with the auto repeat function If a key is depressed for about 0 ...

Page 32: ...then will have the same effect as entering successively the character keys corresponding to the string In the DOS Disk Operating System mode the keys are assigned through the software Numeric Keys These keys are intended for business operations The SHIFT and GRAPH keys do not effect their operation This key is an on off control for the cursor edit keys In Sanyo Basic or through software applicatio...

Page 33: ...depressed to reset the system It is located on the left rear edge of the key board o KEYBOARD CTRL j This key changes the system to control mode The INS DEL key in Sanyo Basic inserts a character to the left of the cursor or erases the character to the left of cursor function is accessed depressing the SHIFT key and the INS DEL key The DEL function is accessed by directly depressing the INS DEL ke...

Page 34: ...ome position It starts new lines in basic mode checks for valid 1 Q This key is used to create the escape sequence in the basic mode The tab key indicated by these symbols outputs the tab code The key may be used with some application soft ware e g WordStar Easy Writer I II etc 1 23 ...

Page 35: ...ter todayTs date and the time Type todayTs date in an mm dd yy form where mm is a one or two digit number form 1 12 and represents the month dd is a one or two digit number for 1 31 and represents the day of the month yy is a two or four digit number from 80 99 the 19 is assumed or from 1980 2099 yy represents the year Each number set is separated by hyphen or slash For example 05 06 84 or 05 06 8...

Page 36: ...ly the following message will be displayed If you do not enter the time Invalid time Enter new time You may enter the correct form for the time or depress the RETURN key to use the time displayed previously You are now at command level DOS and will see the prompt A You may obtain a listing of the files on your disk by entering DIR followed by a depression of the RETURN key By entering the filename...

Page 37: ... in the drive and replace it with the application diskette If you have two drives the application software may be on the second drive drive on left and you may enter Bs to access that drive then a DIR to obtain a listing for that drive Enter commands by typing in the filenames just as you would for single drive systems 1 26 ...

Page 38: ...kette must be arranged so data may be separated in easy to locate sections and areas The FORMAT command accomplishes the task of assigning sectors and work areas on the diskette Single Drive With the system disk in drive A type in the format command after the system prompt A FORMAT S S is an option that allows you to copy the operating system onto the disk as you format it The following message wi...

Page 39: ... enter Y and depress the RETURN Key IF you do not wish to format another disk enter N and depress the RETURN key You will see the system prompt A indicat ing you are back to command mode CAUTION FORMATTING A DISK WITH INFORMATION ON IT WILL DESTROY ALL THE CONTENTS OF THE DISK PLEASE BE CAREFUL TO CHECK THAT THE DISK IS BLANK OR THE DATA ON THE DISK IS NO LONGER NEEDED If you have copied the syste...

Page 40: ...py the operating system onto the disk as you are formatting it The following message will appear Insert a blank disk in drive B and depress any key Place a blank disk in drive B and depress any key The following prompt will appear as long as the disk is being formatted Formatting Formatting is complete when this prompt is displayed Formatting completed Format another disk Y N 1 29 ...

Page 41: ... RETURN key You will see the system prompt A indicating that you are back to command mode CAUTION FORMATTING A DISK WITH INFORMATION ON IT WILL DESTROY ALL THE CONTENTS OF THE DISK PLEASE BE CAREFUL TO CHECK THAT THE DISK IS BLANK OR THE DATA ON THE DISK IS NO LONGER NEEDED If you have copied the system onto your disk with the S option you must also copy the file COMMAND COM You will do this with ...

Page 42: ...mand The COPY command can also make copies of files on the same disk In this case you must supply a different filename or you will overwrite the file You can not make a copy of a file on the same disk unless you specify a different filename for the new copy The format of the COPY command is COPY filespec filespec Examples COPY A MYFILE TXT AiNEWNAME TXT You have duplicated your file on drive A two...

Page 43: ...l display Insert source diskette into drive A CR Insert formatted target diskettes into drive A CR Press any key when ready Insert the disk to be copied Remove the system disk and depress the RETURN key Remove the disk after the cursor drops to the second prompt Insert a blank formatted disk and depress the RETURN key The files will be read from memory on to the disk Note If either of the disks yo...

Page 44: ...e A CR Insert formatted target diskettes into drive B CR Press any key when ready Since we want to copy the system disk we will leave it in drive A would take the system disk out and insert the other disk in drive A before depressing the RETURN CR key If we wanted to copy another disk you The cursor will drop to the second prompt after the disk has been written into memory After you have a formatt...

Page 45: ...ompt is displayed and you are back on the operating system level If you type N for no the Note If either of the disks you are using has defective tracks DISKCOPY will not work Use the COPY command to back up your disks in these cases The COPY command will skip over defective tracks 1 34 ...

Page 46: ...may be reset by pushing the RESET switch located on the left rear edge of the keyboard All data not saved to disk is lost upon resetting the system The power remains on when you use the RESET switch This is reffered to as a fcold boot If you encounter an error that results in making the keyboard inoperative you must reset the system Note Reset the system only when it is definitely necessary Do not...

Page 47: ......

Page 48: ...N O O ...

Page 49: ... D A 2 O CN ...

Page 50: ...CHAPTER 2 COMPUTER VOCABULARY 2 1 ...

Page 51: ...ur entry parameter A A particular number associated with a memory location Usually an address is a number between 0 and 65535 or H0000 and HFFFF hexadecimal ADDRESS A set of electronic paths which carry the binaryencoded address from a microprocessor to the computer internal architectures ADDRESS BUS Abbreviation for Arithmetic Logic Unit ALU A binary function that is true if and only if all of it...

Page 52: ...ts the characters symbols of an assembly language into machine language generating operation code ASSEMBLY LANGUAGE A language made up of mnemonics symbols Special groupings do special functions and B MS DOS prompt for a second drive waits for your entry parameter BASIC An acronym for Beginner s All Purpose Symbolic Instruction Code BASIC a higher level language was published at Dartmouth College ...

Page 53: ...ually a small program that is run immediately upon power up BOOTSTRAP BOOT A register or memory which is used to hold data temporarily Screen buffers contain information to be displayed on the video screen Keyboard buffers hold formed input lines Register buffers hold intermediate data BUFFER BUS A group of electronic paths in a computer which permit data flow from one place to another A basic uni...

Page 54: ...execute them Computers can input process store and output data CONCATENATE To join or merge files or data into a new composite entity CONNECTOR A physical device for attachment of conductive paths I O to peripheral devices is through connectors CONSOLE The defining label for the immediate input and output device keyboard and the CRT Here the CONSTANT A set of data which will not change i e The val...

Page 55: ...r with 25 pins or conductors used for typically RS 232C I O communications DB25 DECIMAL Usually of ten states DIAGNOSTIC Usually a software program that is used to evaluat the operational performance of a machine MS DOS Acronym for a directory list command DIR DISASSEMBLER A program which analyzes machine language and converts it into assembly language DISPLAY An ouput device or peripheral of a co...

Page 56: ...argon for the mini diskette both 5 1 4 and 8 for use in the disk drive FLOPPY I O The physical rule or characteristic for entry or output Can also be a verb FORMAT A derived sequence of events that manipulate data variables and constants FUNCTIONS The character set for video or printer output Can also refer to special graphic characters or modes GRAPHICS The touchable components of any computer HA...

Page 57: ...e INDEX HOLE Data entering a computer from the outside world It can come from a console or a remote peripheral INPUT INPUT OUTPUT Softwareroutines orhardware architec tures which receive or transmit data with peripherals external to the computer I O A command in a program that a computer can execute In a high level language instructions may be comprised of many characters INSTRUCTION A device or s...

Page 58: ...ges LANGUAGE A line is a horizontal grouping of graphic characters both printers and in displays LINE Lines are used for LOW LEVEL LANGUAGE Communication language more machine rather than human based LOW ORDER The least important element in a grouping The low order bit of a byte is the bit with the least binary value MACHINE LANGUAGE Language for computer hardware use Most machinelanguages are bin...

Page 59: ...ine language programs An easy way to remember something used in the place of something more difficult to remember An abbreviation MNEMONIC A state or set of conditions for which a certain set of rules formats or dates apply MODE An arithmetic function which manipulates two items MODULO 1 A computer controlled television CRT or other display receiver 2 A program which permits user access to compute...

Page 60: ...into the outside world Also refers to the process of generating same OUTPUT A full page or screen of information on a video or CRT display PAGE A French scientist after whom an interpretive language was named PASCAL An external device attached to the combbputer peripherals are input and or output devices which communicate through the I O PERIHERAL A description of the function of each pin on a con...

Page 61: ... memory for general use by a computer values in RAM locations and recalls them for use at any time Data in RAM memory is lost when the power to the computer is turned off RANDOM ACCESS MEMORY RAM The computer stores Slower memory for constant storage of programs or data for use by the computer when the power is first turned on Information in ROMs cannot be changed Information in ROMs is retained w...

Page 62: ...ctions between electronic devices SCHEMATIC To move text on a display upwards making room for text at the bottom of the display SCROLL A portion of a track of data on a floppy diskette SECTOR SOFTWARE Programs files and data executable on the computer STACK A reserved part of memory used to store temporary information SUBROUTINE A much repeated section of a program which can be accessed by calling...

Page 63: ...zation Symbols entered for and by a program TEXT One band of data on a floppy diskette TRACK A location in memory where data can be placed Also refers to the actual data itself VARIABLE A memory or program pointer for a jump to location Vectors are used to re direct processor activity VECTOR A restart of computer operations after an abortion of operating system control WARM START 2 14 ...

Page 64: ......

Page 65: ......

Page 66: ...w 0 0 3 O m i ...

Page 67: ... 2 V cu CO o c CO CO ...

Page 68: ...CHAPTER 3 SANYO BASIC 3 1 ...

Page 69: ...SECTION 1 SANYO BASIC OPERATION MODE 3 2 ...

Page 70: ...ted If it was omitted the system enters key in wait state after displaying prompt mark with Sanyo Basic mode 2 number of files to be used defines the maximum number of data files which are opened by a program at one time If this is omitted the system assumes 3 as its default value The maximum number of files can be opened at one time is 15 using Sanyo Basic The system allocates the buffer area acc...

Page 71: ...ic instruction program can be entered Direct Execution Mode If a program statement without line number and RETURN Key were entered while a prompt mark is being dis played the entered statement is immediately executed This is called a direct execution result of the direct execution is stored in the memory although the instruction statement is deleted statement can also be directly executed The oper...

Page 72: ... series of program is stored to the memory sequentially Then this program can be executed using the RUN instruction 2 Screen edit key 0 When the cursor execution mode the control becomes the screen edit mode is entered in the direct The displayed program can be partially modified Using the screen edit mode the cursor can be freely moved to the place where the user wants to make correction so that ...

Page 73: ...ade to the source program during the temporary termination Although it cannot be restarted if a The system returns to the Sanyo Basic mode after execu ting the END statement in a program or a source program is completed no more statements to be executed from the execution mode Returning to OS When the SYSTEM instruction is found in a program or the SYSTEM instruction is directly executed from Sany...

Page 74: ...osed by can be either omitted or repeated more than once Items enclosed by can be defined within the prescribed range but cannot be omitted I One of the items placed on the left and the right of vertical bar must be selected The range to be selected is underlined if it is not clear Characters and symbols Characters and symbols other than above that appear in general descriptions must be written as...

Page 75: ...k f Single quotation mark Division symbol Space Lower case letters are converted to upper case letters for storage in memory Other characters are available in a programmable format If the lower case letters are regarded as strings literal data they are stored as they are Usable characters correspond to the internal codes of Sanyo MBC 550 series computers and are displayed on the screen However the...

Page 76: ... and 1 of the character codes table referenced at the back of this manual cannot be keyed in through the keyboard They are written in the programs only by the use of CHR functions In the Sanyo Basic programs the special Example 10 PRINT CHR 07 Rings Bell 20 PRINT CHR 45 Prints 3 9 ...

Page 77: ...e range from 0 to 65535 Two bytes are allocated for a line number in memory The leading zeros are ignored No spaces can be included in the numeric parameter to show a line number Examples 00100 A 3 Same as 100 leading zeros ignored 110 A THREE Erroneous spaces 120 PRINT A A 130 END RUN Syntax error in 1 In Sanyo Basic the carriage return is keyed in by use of the keyboards CR key corresponds to RE...

Page 78: ... a delimiter placed between one statement and another in composing several statements into a single program line A program line composed of a single statement is called Simple Statement and one composed of a several statements which are delimited with colons is called a Multiple Statement CR indicates the end of a logical line and is entered by use of the RETURN Key The length of a line cannot exc...

Page 79: ...d by spaces enclosures numeric operators or other delimi ters syntactically recognized The use of spaces in other cases is at the programmers option and is ignored by the system Examples Erroneous 10 P R I N T CR 20 A B C 30 A B AND C A is assigned as a logical AND operation of A and B BANDC becomes a variable name Valid 40 A BANDC RUN Syntax error in 10 For keywords refer to the list of reserved ...

Page 80: ...es and subscripted variables an array The numeric data is divided into three categories namely integers single precision real numbers and double precision real numbers i Examples of data are shown in the following table String Integer Numeric CONSTANTS 245 3 678 1234 567 3 45E35 345 VALUES Your name 32 A SIMPLE VARIABLES ABC DAT SUM K H B 10 4 8 X N ARRAY VARIABLES Z I J Y 2 3 MEMORY USAGE 4 bytes...

Page 81: ...at are expressed in the Example 1 234567 1 Numbers up to 7 digit and 6 digits are displayed 1 23457 is displayed 2 Number with an exponent E Example 1234567E 6 1234567 x 10 Example 1 234567 3 Number with a suffix 3 Double precision real constants 16 digit numbers between 1 7 x 10 are expressd in the following three ways 1 7 x 10 that 1 Numbers of 8 digit and more Example 12345678 2 Numbers with a ...

Page 82: ...ERIES 30 PRINT A B 40 END RUN SANYO MBC SERIES The double quotation marks cannot be used within a string constant Example 10 C SANYO MBC SERIES 20 PRINT C RUN Syntax error in 10 Quotation marks may be printed by using the CHR 34 symbol Example 10 C SANYO MBC SERIES 20 PRINT CHR 310 C CHR 34 RUN SANYO MBC SERIES 3 15 ...

Page 83: ...0 30 TRANSPOSITION 30 40 PRINT TR TRE TRANSPOSITION RUN 30 20 10 The variable names must not be spelled the same as keywords but may include their spelling Any variable name beginning with FN or USR is erroneous Example Erroneous AND is an operator 10 AND 100 20 BAND 0 Acceptable 30 AFN10 A B Acceptable 40 FNABC 1 Erroneous FN is an operator Acceptable 50 BAFN 1 2 Types of variables The variables ...

Page 84: ...lared by the DEF statement a single precision real number is assumed numeric variable name is single precision The default type for a 3 Arrays Subscripted variables Arrays are declared by the DIM statement before they are used dimension or number of elements However the whole length should fit in the total storage capacity There is no limitation on an array s An array which consists of 10 or fewer...

Page 85: ...ll that value in this manual an evaluation result which naturally shall be either numeric or string data ARITHMETIC OPERATORS Arithmetic operators are divided into the following eight types EXAMPLES OPERATOR A B Raise A to the Bth power Minus A Multiply A by B Divide A by B Divide A by B and discard the decimal part A MOD B Remainder of A div ided by B Both A and B are rounded off to inte gers bef...

Page 86: ...bination of numeric data items and arithmetic operators generally written as follows item arithmetic operatorXdata item data The data items to be written are classified below Numeric constant Numeric variable Numeric function Numeric expression 1 2 3 4 3 19 ...

Page 87: ...ons enclosed in parenthesis are always evaluated first and have the highest precedence Power calculation or exponentiation Minus sign or negation Multiplication and division Integer division Remainder Addition and subtraction 1 2 3 5 6 7 The calculations which have the same operational priority are performed from left to right Example 10 A 2 2 1 2 3 1 2 20 PRINT A RUN 3 3 20 ...

Page 88: ...relational expression is a combination of data items and relational operators and is generally written as follows data item Relational operatorXdata item The data item is an arithmetic expression or character string Data items written in relational expressions must be the same type i e arithmetic expressions or character strings Arithmetic expressions cannot be compared with string data or vice ve...

Page 89: ...rings is performed by the following procedure 1 The value of one character is determined in accordance with the table of ASCII character codes 2 The value of strings having more than two characters are compared as follows The value of comparison based on Rule 1 above should be done on the first pair of characters then on the second and so forth The string in which a character with a smaller code v...

Page 90: ...CII value 65 is less than 66 A B 0 FALSE 1 TRUE 1 TRUE 0 FALSE n n n n ABC ABCA ABA AA XYZ ABC 1 If more than two relational operators are included in an expression the operation is performed from left to right under priority rules 3 23 ...

Page 91: ... LOGICAL EXPRESSION A logical expression generally has the following forms NOT data item logical operator NOT data item Either an arithmetic expression or a relational expres sion can be written as the data item In case of an arithmetic expression its evaluation result should be an integer between 32768 and 32767 If the evalua tion result were a real number it would be rounded off If it falls out ...

Page 92: ...e priority left to right b execute from 2 When the value of data is assigned with either 1 true or 0 false the evaluation of the logical expression will become 1 or 0 When an integer is included in the evaluation result of data item the logical operation is performed with binary notation binary integers are allocated for each bit regarding the result as a binary number The evaluation result will b...

Page 93: ... operators NOT X NOT X 1 0 0 1 AND X AND Y X Y 1 1 1 1 0 0 0 1 0 0 0 0 OR X Y X OR Y 1 1 1 1 0 1 0 1 1 0 0 0 XOR X Y X XOR Y 1 1 0 1 0 1 0 1 1 0 0 0 IMP X Y X IMP Y 1 1 1 1 0 0 0 1 1 0 0 1 EQV X Y X EQV Y 1 1 1 1 0 0 0 0 1 0 0 1 3 26 ...

Page 94: ...5 AND 16 15 01111 10000 16 15 AND 16 00000 0 15 AND 10 15 1111 10 1010 15 AND 10 1010 10 1 AND 16 1 16 1111111111111111 0000000000010000 1 AND 16 0 0000000010000 16 8 OR 16 8 01000 10000 16 8 OR 16 11000 15 OR 16 15 1111 1 0 0 0 0 16 15 OR 16 11111 31 3 27 ...

Page 95: ...formed in the order of 1 arithmetic expression 2 relational expression and 3 logical expression V hen A 1 B 2 C 2 and D 1 the evaluation result ofthe following expression will become 1 tion following these steps With the evalua A B C D OR A B C AND D 4 1 2 5 6 I 7 Please note that used in the LET statement as a relational operator are different in meaning and n Example 0 is assigned to A 1 is assi...

Page 96: ...ple 10 A 5 1 46 1 5 20 PRINT k B RUN 1 2 2 Conversion of Double Precision to Single Precision A number with up to 16 significant digits is converted to a 6 digit internally 7 digits number Example 10 A 1 23 5678 20 PRINT A RUN 1 23 57 An eight digit number is converted to a six digit number 3 29 ...

Page 97: ... to Double Precision Trailing zeros are added to the single precision number meaningless numbers are added after the seventh digit The significant digit is seventh but some Example 10 A 8 9 20 B A 30 PRINT B RUN 8 999999618530214 3 30 ...

Page 98: ...sults of calculations of an integer are outside the integer range the results are of the single precision real type For calculations by and an integer is converted to the single precision real type and then calculations are executed to match the high order type The results are of the corresponding type Calculations by relational operators are executed to match the high order type and the results a...

Page 99: ...be written as a data item String constant String variable 3 Function which results in a string Character functions 1 2 The evaluation result of a string expression is also a character string with less than 255 digits V hen the string length exceeds the limit an error occurs Examples 10 A SANYO 20 B M 30 C B l 0 D C 50 E SERIES 60 PRINT A B C D E RUN SANYO MBC SERIES 3 32 ...

Page 100: ...SECTION 2 GENERAL INSTRUCTION WORDS 3 33 ...

Page 101: ...program Some Sanyo Basic instruction words may be entered with two or three key strokes indicates the keys and corresponding instruction words The following table INSTRUCTION KEYS CTRL SHIFT A CTRL A CTRL B CTRL C CTRL SHIFT C CTRL D CTRL SHIFT D CTRL E CTRL SHIFT E CTRL F CTRL SHIFT F CTRL G CTRL SHIFT G CTRL H CTRL I CTRL SHIFT I CTRL K CTRL SHIFT K CTRL f L CTRL SHIFT L CTRL M CTRL SHIFT M CTRL...

Page 102: ...PUT RUN RETURN SAVE STEP THEN TIME USING VAL VARPTR WHILE WEND Line edit mode Instruction words in the following section are alpha betically ordered for explanations For information on some instruction words listed in the previous table but not explained in the following sections consult the Sanyo Software Basic Reference Manual available at your authorized Sanyo computer dealer 3 35 ...

Page 103: ...her statement to be entered The same process is repeated 2 V hen the line number specification is omitted the creation of line numbers starts from 10 specification of increment is omitted 10 is assumed The line numbers go 10 20 30 and so on V hen the 3 V hen the line number is specified as line number only the previous increment if one has been used is designated 4 The AUTO mode is stopped by pres...

Page 104: ...e number of the last line increment as line number 6 When 0 is assigned to line number message is displayed an error Example AUTO 100 20 100 120 140 160 The final line number of a program which is stored in memory will be displayed AUT0 3 37 ...

Page 105: ...rpose The BEEP sounds a buzzer Description 1 The buzzer is generated for 0 5 seconds Form BEEP Example 10 REM TEST FOR BEEP 20 PRINT SANYO n 30 BEEP 40 END RUN SANYO Sounds a buzzer for about 0 5 seconds 3 38 ...

Page 106: ...fied the visual images are all erased The image attributes are then reset The cursor appears at the position of Line 1 and Row 1 the upper left side of the screen Example 10 REM CLS STATEMENT TEST 20 X PG 2 Y PG 1 30 PRINT Y 40 INPUT CONTINUE Y OR N Z 50 IF Z N THEN 50 60 CLS 70 PRINT X RUN 3 39 ...

Page 107: ...been temporarily terminated by END STOP instructions or BREAK key 2 If the program was modified during interruption CONT in invalid Therefore even if it is entered the execution will not be restarted 3 CONT N inhibits temporary termination using the BREAK key during program execution This CONT N mode is released by reexecuting CONT 3 40 ...

Page 108: ...Example 10 PRINT START1 20 PRINT Please CONT 30 STOP H0 50 PRINT 1 END RUN START1 Please CONT Break in 30 Ready CONT END 3 41 ...

Page 109: ...ecification of line numbers line number 1 line number 2 Deletes the part between the specified two lines a line number period Deletes the part from the specified line number up to the end of the program b line number Deletes the part from the beginning of the program up to the specified line number c d line number Deletes the line with the specified line number only 2 When no program exists in the...

Page 110: ...3 The NEW statement is used for the entire deletion of the program 4 A period indicates the final line of the program Example 10 k 26 82 t i 90 PRINT k 100 B k 2 110 PRINT B DELETE 20 90 DELETE 100 3 43 ...

Page 111: ...mber it is automatically rounded The smallest value of a subscript is 0 When DIM A 10 is declared the number of elements will be 11 0 to 10 The smallest value can be set as 1 using OPTION BASE 3 The number of Subscription maximum value in parentheses determines the array dimension size No limits are prescribed for numbers of dimensions and elements although one array size must be 64Kbytes or less ...

Page 112: ... the number of dimensions Each dimen 7 The array declaration can be cancelled by the ERASE instruction If the memory has been exhausted the array which will not be used any more can be deleted and a new array can be declared Examples 1 10 DIM A 10 20 10 20 FOR I 1 TO 10 30 FOR J 1 TO 20 40 FOR K 1 TO 10 50 INPUT A I J K 60 NEXT K J I 2 10 INPUT M N 20 DIM A M N 30 FOR I 1 TO M 40 FOR J 1 TO N 50 I...

Page 113: ...END statement anywhere in the program If there is an open file at the time when the END statement is specified it will be closed The control stops the program operation and returns to the Basic Mode 2 When no END statement is found at the end of the program the system performs the same operations auto matically closing all files and going into the Basic Mode Example 500 END 3 46 ...

Page 114: ...counter final value The statement following the FOR is executed through NEXT then the counter is incremented by increment value If the counter value does not reach the final value the execution will be repeated after returning to the next FOR statement This procedure will be repeated until the counter value reaches the final value When it reached the final value control is passed to the statement ...

Page 115: ...d Other variable must be defined as a counter in each loop if nested 6 If nested loops have common terminal variables can be written in one NEXT The counter variable of inner loop must be placed inside 7 If NEXT variable is omitted the variable in the immediately before FOR is assumed The variables in the NEXT which is used as common terminal can not be omit ted 8 Neither array nor double precisio...

Page 116: ...2 10 FOR A 1 TO 10 STEP 10 20 FOR B 1 TO 20 30 FOR C 1 TO 10 STEP 1 t t 200 NEXT C B A t 300 END 3 10 INPUT M N i 100 FOR I M TO M N t 120 NEXT I t 300 END 3 49 ...

Page 117: ...nt 2 The RETURN statement comes at the end of the sub routine program returns to the next statement after the GOSUB When RETURN is executed the control 3 Calls of subroutines can be nested Another sub routine program can be called by a subroutine program However the currently executing subprogram cannot call itself 0 Following a GOTO STOP or END statement a subrou tine program may be entered in an...

Page 118: ... 500 i i 490 GO TO 550 500 REM GOSUB ROUTINE 1 510 FOR I 1 TO 10 520 INPUT A 530 NEXT I 540 RETURN 550 END 2 i i 200 GOSUB 1000 i t 900 END 1000 REM GOSUB ROUTINE 2 1010 FOR I 1 TO 10 1020 INPUT A 1030 NEXT I 1040 RETURN 3 51 ...

Page 119: ...ecified line Form GOTO line number Description 1 line number is the line number of branch destina tion 2 When the GOTO is executed the control is moved to line number 3 If line number is not found in the program an error is indicated Example 200 GOTO 500 500 A A 1 3 52 ...

Page 120: ...her than 0 THEN or GOTO statements are executed while if it is false 0 ELSE statements are executed If ELSE statements are omit ted and the expression is false control is trans ferred to the next line If the expression is true and no branch instruction is written in the THEN statement control is transferred to the next line after executing the THEN statement 2 IF statement can be written in THEN o...

Page 121: ...F immediately before Therefore the ELSE cannot be omitted in nested IF statement Only the outermost IF statement can omit the ELSE starement Examples 100 IF A 3 THEN A A 1 C D H H 2 G0T0 200 ELSE 300 100 IF A B GOTO 500 ELSE A 0 G0T0 600 100 IF A B THEN IF C D THEN 200 ELSE 300 ELSE IF C D THEN 400 ELSE 500 3 54 ...

Page 122: ...d in can be reentered after deleting the characters by the Back Space bar 2 number of digits is the number of digits of the keying data used to check and can be written using numeric expression An integer 1 through 255 can be specified the fraction part is automatically rounded the number is indicated as an error if it exceeds the limit When number of digits is specified up to number of digits can...

Page 123: ...is not displayed if is selected 6 The operator must enter as many variable data as witten in the INPUT statement Separate the data corre sponding to each variable using comma If the entered data type differs from the variable type or the number of entered data differs from the number of variables Redo from start is displayed and the system waits for keying 7 A comma cannot be included in a charact...

Page 124: ...ra KEY PF key number Character expression Description 1 PF key number can be written using a numeric expression whose result is 1 through 20 If the valule results in a real number it is automatically rounded 2 The first 8 characters of Character expression are effective the rest of them are discarded Examples 100 KEY 5 MRUN CHR HOD RUN is assigned for PF5 TAB TAB is assigned for PF 1 100 KEY 1 100...

Page 125: ...d the evaluated result of the expression is charac ter or vice versa 3 If both the variable and the expression are numeric values but different types the expression is calculated first then the result is stored in the variable after conversion ed an error occurrs If it cannot be convert Examples 100 A 1 B 2 C 3 100 A A 1 100 A ABC CHR H n 100 A 0 123456789D 5 100 A 231 5 3 58 ...

Page 126: ...ine number specifications are interpreted as follows 1 No specification Directs the entire listing 2 line number 1 line number 2 Directs from the specified line number 1 through line number 2 3 line number Directs from the specified line number through the end of the program 4 line number Directs from the beginning of the program through the specified line number 5 line number Directs only the spe...

Page 127: ...If number of lines is 0 page is fed without any blank lines This is same as if it is not specified the 3 If number of lines is omitted only the comma is specified the page is fed with 3 blank lines at the top and bottom of each page assuming one page consists of 60 lines appropriate to 11 inch stockforms If this is not specified the page is fed without any blank lines 4 The listing execution is in...

Page 128: ... LIST 100 500 Directs from the beginning of the program through 250 LIST 250 1000 with 60 lines on Prints 100 each page LLIST 100 1000 Prints after 1000 with 50 lines on each page LLIST 1000 50 Prints the entire program without any blank lines LLIST Prints only the last line LIST 3 61 ...

Page 129: ...ll the currently opened files are closed and the program in the filename is stored in the memory by destroying the current program After the execution the system enters Sanyo Basic mode 3 If the program file in the filename is not found in the disk the program on the memory remains without being destroyed H file name can be written using the character expression Example LOAD PRGM A L0AD PRGM A R 3...

Page 130: ...nge of 1 80 1 indi cates the left most position while 80 indicates the rightmost position 3 horizontal position vertical position and cursor blink switch can be written using the numeric expression although the result is automatically round ed if it includes fraction part If the value is not in the range of the above limit an error occurs 4 If 0 is specified for cursor blink switch the cursor is n...

Page 131: ...Examples 1 X 30 Y 10 LOCATE X Y 2 10 LOCATE 10 15 20 PRINT THIS SPOT BEGINS AT 10 15 3 64 ...

Page 132: ...value of the expres sion following the comma is directed in the next zone following the zone of the previous expression 4 If the semicolon is used as a delimiter the value of the expression following the semicolon is directed continuously to the value of the previous expression 5 If the concluding comma or semicolon is omitted the RETURN Key code is sent to the screen at the end of the LPRINT stat...

Page 133: ...ecuted from the next zone If the semicolon is specified the screen output is continuously executed to the previous output Example 1 LPRINT 10 100 0 1 20 100 1 20 10 LPRINT 10 100 1 20 10 100 1 20 A 10 B 20 LPRINT A A B 20 B B A 10 2 10 LPRINT MBC COMPUTERS RUN MBC COMPUTERS 3 66 ...

Page 134: ...n the disk and can be written using the character expression This program is merged to the program on memory 2 If the program specified by the file name includes the same line number as the program currently on memory the line of the program merged from the file replaces the one on memory 3 After the MERGE execution control returns to Sanyo basic mode Example MERGE PRGM A 3 67 ...

Page 135: ...he NEW instruction deletes the program currently on memory Form Description 1 When the user enters the new program he must execute the NEW beforehand 2 After the NEW execution the system enters Sanyo Basic mode 3 68 ...

Page 136: ... to one of the dine numbers accord ing to the numeric expression value In other words control passes to the line number which matches the value of the numeric expressions 2 The numeric expression value must be within the range of 1 through the number of dine numbers If it includes the fraction part it is automatically round ed if it is negative or exceeds 255 an error occurs 3 When the numeric exp...

Page 137: ...f the subroutine Example 100 INPUT 1 3 A 110 ON A GOSUB 1ii0 170 200 120 GOTO 100 130 1 140 PRINT A 1 150 RETURN 160 170 PRINT A 2 180 RETURN 190 200 PRINT A 3 210 RETURN i RUN 1 3 2 A 2 1 3 100 1 3 1 A 1 1 3 Break in 100 3 70 ...

Page 138: ...ximum value are reserved If DIM A 20 is specified 21 elements A 10 to A 20 are reserved in the memo ry This instruction is used to reserve only 20 ele ments A 1 to A 20 3 Only one OPTION BASE statement can be written in a program lt must be executed before any array declara tions or reference BASEs 0 and 1 cannot be mixed within a program 4 Similarly when the programs are connected using the CHAIN...

Page 139: ...Example 10 OPTION BASE 1 20 DIM A 5 30 PRINT A 0 RUN Subscript out of range in 30 3 72 ...

Page 140: ...ma is directed in the next zone following the zone of the previous expression l If the semicolon is used as a delimiter the value of the expression following the semicolon is directed continuously to the value of the previous expression 5 If the concluding comma or semicolon is omitted the RETURN Key code is sent to the screen at the end of the PRINTstatement and the cursor is carriage returned is...

Page 141: ...nuously executed to the previous output 7 If all the parameters are omitted the line is simply fed Examples 1 PRINT 10 100 0 1 20 10 100 1 20 PRINT 10 100 1 20 10 100 1 20 A 10 B 20 PRINT A A B n B B 20 A 10 2 10 PRINT MBC COMPUTERS RUN MBC COMPUTERS 3 74 ...

Page 142: ...of the DATA statement can be written for one DATA statement or vice versa Several READ statements 2 The DATA instruction can be placed anywhere and any times in the program The READ instruction reads the constants of the DATA sequentially 3 If the variables in the READ statement are numerals and the corresponding constants of the DATA statement are characters an error occures J If the variables of...

Page 143: ...d can be modified using the RESTORE instruction Form RESTORE line number Description 1 If the RESTORE instruction is executed the DATA which corresponds to the next READ is the DATA state ment having the line nmber If the line number is omitted the DATA statement having the smallest line number is processed If the specified line number is not a DATE statement the read pointer is set at the DATE st...

Page 144: ...A I A I 220 NEXT A I 1 A I 2 A I 5 A I 10 2 10 READ A B C D E F 20 RESTORE 60 30 READ G H I 40 DATA 10 10 50 DATA 20 20 60 DATA 30 30 Input the line number from 100 to 180 as follows Result A 10 B 10 C 20 D 20 E 30 F 30 G 20 H 20 1 30 100 PRINT A f A 110 PRINT B B 120 PRINT C C 130 PRINT D D 140 PRINT E E 150 PRINT WF M F 160 PRINT G f G 170 PRINT MH H 180 PRINT I I 3 77 ...

Page 145: ...am is executed ignoring the comment lines 2 If the REM is used in multiple statement up to CR is assumed as the comment after the REM 3 An apostrophe can be used in place of the REM 4 Control can be passed to the REM statement although execution starts from the statement which first appears after the REM line other than REM Example 10 REM RRGM 1 20 f 1990 1 1 30 40 1 by R MILOS 50 60 DIM A 100 3 7...

Page 146: ...een line numbers which is used for renumbering 3 If new line number and incrment are omitted both are assumed as 10 ted execution starts from the first line of the pro gram on the memory If Cold line number is omit 4 An error occurs in the following cases 1 Cold line number specification exceeds the end line of the program 2 If the new line number exceeds 65535 after renumbering 3 If the program o...

Page 147: ... occurs 6 Use the integer constant for line number and increment Examples REUNM RENUM 100 RENUM 70 52 20 Line number before RENUM 10 10 30 20 50 30 52 40 100 10 110 30 120 50 130 70 56 140 50 90 70 60 90 70 150 110 160 130 3 80 ...

Page 148: ...ied the execution starts from that number if it is omitted the execution starts from the beginning of the program 2 2 loads the program from the disk onto memory before execution If R options specified the program is loaded and executed without closing the corrently opened files 3 Use the character expression for filename Example RUN RUN 300 RUN PRGM RUN PRGM A R 3 81 ...

Page 149: ...program characters If P is specified the program is converted into the inter mediate code before writing into the disk If this is omitted P is assumed 3 The option Q is for the program protection If the program was saved with this option the listing is inhibited for the program when it is reloaded to the memory Therefore it cannot be modified using the editor This program cannot be saved again Thi...

Page 150: ...Example SAVE PRGM SAVE PRGM A SAVE PRGM A Q 3 83 ...

Page 151: ...he STOP instruction can be written anywhere in the program V hen it is executed Break in xxxx line number is displayed and the system enters the Sanyo Basic mode The program which was temporarily terminated by the STOP instruction can be restarted from the next statement using the CONT instruction 2 The STOP instrution does not close the file 3 84 ...

Page 152: ...he SYSTEM instruction passes control to the operating system Form SYSTEM Description 1 If the SYSTEM instruction is executed the opened files are all closed if any control is passed to the OS operating system mode 3 85 ...

Page 153: ...SECTION 3 GENERAL FUNCTIONS 3 86 ...

Page 154: ...ber or double precision real number The result of the basics function is a single precision real number The result of the basic function is a single precision real num ber Although the basic function calculates using double precision real numbers internally Therefore the accuracy increases if the parameter is specified using the double precision real number The parameters are abbreviated as follow...

Page 155: ...ABS Purpose Returns the absolute value of X Form ABS X Example 10 N1 ABS 10 1 20 N2 ABS 10 1 30 PRINT N1 N2 RUN 9 9 3 88 ...

Page 156: ...cos Purpose The cosine of trigonometric function of X Form COS X Description 1 Use radian to specify X Example 10 X 3 14159 20 PRINT COS X RUN 1 3 89 ...

Page 157: ...EXP Purpose Returns the value of e X Form EXP X Description 1 X must be 1 5 06286 or less Example 10 A EXP 0 20 PRINT A RUN 1 3 90 ...

Page 158: ...aracter which was depressed Form INKEY Description 1 If no key is pressed it returns the null string Example 10 PRINT BASIC 20 IF INKEY THEN 20 30 PRINT END This processing procedes to the next display if a key is pressed RUN BASIC END 3 91 ...

Page 159: ...ed X Form INT X Description 1 If the X is positive the fraction part is round ed off If it is negative the fraction part is rounded up to obtain the result Examples 10 PRINT INT 10 20 PRINT INT 10 9999 25 PRINT INT 10 001 30 PRINT INT 10 05 RUN 10 10 10 11 3 92 ...

Page 160: ...h the I th character of the X Form LEFT X I Description 1 I must be within the range of 0 255 If the I is greater then the number of characters in the X the X itself is returned as the result Example 10 A 123abc 20 C LEFT A 3 30 PRINT C lfSANY0M RUN 123SANY0 3 93 ...

Page 161: ...LOG Purpose Returns the natural logarithm of X Form LOG X Description 1 X must be positive number Example 10 X 2 20 PRINT LOG X RUN 693147 3 94 ...

Page 162: ...ength the null string is returned as the result 2 J must be within the range of 0 255 If the J is omitted the I th through the last character is assumed Example 100 OPEN R 1 RND DAT 120 DIM AW 32 130 140 GET01 150 J 1 160 FOR 1 1 TO 128 STEP 4 170 AW J MID A I 4 180 J J 1 190 NEXT This process divides the large field data and stores the data in the array 3 95 ...

Page 163: ... rightmost position of X through the I th character Description 1 I must be within the range of 0 255 If I is greater than the number of characters in X X itself is returned as the result Example 10 A BASIC 8088 20 PRINT RIGHT RUN 8088 3 96 ...

Page 164: ...ates the same random sequence 2 The following random numbers are generated depend ing on the x sign The default value is positive When x is positive Generates the subsequent random number When x is 0 Regenerates the preceding random number When x is negative Generates a new random sequence always the same random sequence independent from the x value 3 97 ...

Page 165: ...SGN Purpose Returns the sign of X Form SGN X Description 1 When X is negative 1 2 When X is 0 0 3 When X is positive 1 3 98 ...

Page 166: ...20 N SGN A 30 ON N 2 GOSUB 60 70 80 according to the sing of 40 GOTO 10 50 1 60 PRINT RETURN 70 PRINT ZERO RETURN 80 PRINT RETURN This processing executes different subroutine the input value RUN 7 0 1 12345 0 0 ZERO 3 99 ...

Page 167: ...SIN Purpose Returns the sine of trigonometric function of X Form SIN X Description 1 Use radian to specify X Example 10 X 1 20 Y SIN X 30 PRINT Y RUN 8 1 71 3 100 ...

Page 168: ...SQR Purpose Returns the square root of X Form SQR X Description 1 X must be either 0 or positive Example 10 FOR 1 1 TO 5 20 PRINT SQR I 30 NEXT RUN 1 1 411121 1 73205 2 2 23607 3 101 ...

Page 169: ...TAN Purpose Returns the tangent of trigonometric function of X Form TAN X Description 1 Use radian to specify X Example 10 X 3 14159 4 20 PRINT TAN X RUN 0 999999 3 102 ...

Page 170: ...SECTION 4 GRAPHICS 3 103 ...

Page 171: ... abstract world coordinate system Which portion of the huge coordinate system should be displayed where on the screen screen coordinate system must be speci fied This enables free programming on the abstract coordinate system using a required number of dots which are independent from the limited number of dots on the real screen and the graphics created are displayed in the appropriate size and in...

Page 172: ... part or all of the graphics belonging to the world coordinate system in various sizes and in various ratios on the screen The window is the area of the world coordinates that will be seen on an area of the screen defined by the VIEW instruction Example 10 CLS 20 WINDOW 0 0 599 199 30 VIEW 0 0 599 199 6 4 40 GOSUB 110 50 VIEW 0 0 399 133 5 1 60 GOSUB 110 70 VIEW 0 0 199 67 2 7 80 GOSUB 110 90 GOTO...

Page 173: ...ND The initial vaues of the window and the viewport are 0 0 639 199 and 0 0 639 199 respectively This window viewport ratio makes the vertical and horizontal lines which consist of the same number of dots in the world coordinate system assume the same length both vertically and horizotally on the screen as the verti cal size of each dot on the screen is greater than the horizontal size 3 106 ...

Page 174: ...e bits in binary notation correspond to red green and blue respectively When the colors indicated by the higher bits are mixed the resulting color is the color of the code Color code Lower order three bits Color Red Green Blue 0 0 0 0 Black Blue Green 1 0 0 1 2 0 1 0 3 0 1 1 Light blue 1 0 0 Red 5 1 0 1 Purple Yellow White 6 1 1 0 7 1 1 1 Color is specified for some of the graphic instructions als...

Page 175: ...INSTRUCTION WORDS 3 108 ...

Page 176: ... Using this point as the central point a circle is drawn having the radius specified in radius dots 2 For initiating position and terminating posi tion the value having an absolute value within the range of 0 1 and assuming the circumference is 1 is used These values are used for creating wedges In the illustration below the initiating position could be 0 125 and the terminating position 0 25 3 10...

Page 177: ...ating position is omitted a circle is drawn starting from the initiating positions 4 ratio is specified as radius in the vertical direction position in the horizontal direction When ratio is specified an ellipse is drawn using the radius as the radius in the horizontal direction and radius X ratio as the radius in the vertical direction Therefore the following expressions can be formed Circle Elli...

Page 178: ...le color can be written using numeric expressions 7 If a circle or a circular arc extends from the world coordinates it becomes an error Example 100 CLS 110 WINDOW 0 0 639 199 VIEW 0 0 639 199 120 FOR 1 1 TO 5 130 INPUT S I 140 T0TAL T0TAL S I 150 NEXT 160 P1 0 170 FOR 1 1 TO 5 180 PA S I TOTAL P2 P1 PA 190 CIRCLE 250 90 180 P1 P2 8 200 P1 P2 210 NEXT 3 111 ...

Page 179: ...isplayed are colored in char acter color When background color is specified the screen fields to be displayed henceforth are colored in background color If these are omitted the original colors remain unchanged 2 character color and background color may be written together or separately See example below Examples The character color is white and the back ground color is unchanged The background co...

Page 180: ...r shifts one dot each time the cursor keys are depressed When the TAB key is press ed once the cursor shifts eight dots each time the cursor key is pressed V hen the TAB key is pressed agan it returns to one dot interval shift status 3 When RETURN key is depressed the coordinate value on the screen coordinate system indicated by the graphic cursor is written to variable 1 and variable 2 4 color co...

Page 181: ... the position indicated by GOURSOR 10 CLS 20 WIND0W 0 0 639 199 30 VIEW 0 0 6391199 40 SYMBOL 50 50 SYMBOL 3 3 1 0 50 MAX 20030 1 7 8 10040 1 3 lO J1 1 60 DIM A MAX 70 GET 30 40 200 100 A 80 GCURSOR 300 200 BX BY 2 90 PU7 BX BY A 0R 3 114 ...

Page 182: ...is used to write the dot patterns for which DIM declaration must be made so that the GET statement can be declared The array must be numeric which prohibits the use of character arrays If no arrays having the array name have been declared or the sufficient array size has not been provided it becomes an error The maximum subscript value for DIM declaration can be obtained as follows X2 X1 1 7 8 Y2 ...

Page 183: ... and Y can be written using numeric expressions 2 array name is the name of the array which contains the dot pattern It must be the same as that specified by the GET statement 3 function is used to display the dot pattern which is selected from the following five types The default value is PSET PSET Displays the array dot pattern as it appears PRESET Reverses the array dot pattern before displayin...

Page 184: ... array dot pattern and the pattern on the screen then displays the result XOR Takes XOR of the array dot pattern and the pattern on the screen then displays the result 4 256K of memory is required for the PUT command 3 117 ...

Page 185: ...string to be displayed and is written using character expression 3 horizontal magnification and vertical magnification identify the magnification of the characters to be displayed The characters are displayed with horizontal magnification X 8 dots horizontally and with Cvertical magnification X 16 dots vertically Because a dot here is identified with the world coordinate system the character margi...

Page 186: ... the right Turn 270 degrees to the right 1 2 3 6 Take care when specifying as an error occurs if the magnified and turned character string extends from the world coordinate system 7 X Y horizontal magnification vertical magnifi cation color code and angle code can be written using numeric expressions Example 100 WINDOW 0 0 639 199 110 CLS 120 FOR 1 1 TO 4 130 SYMBOL 200 100 SANYO 1 1 1 11 140 NEXT...

Page 187: ...nating point of the LINE instruction executed immediately before is assumed as the initiating point If no LINE instruc tions have been executed immediately before 0 0 is assumed as the initiating point 2 When Cline color is specified a line is drawn using this color Specify using the color codes If omitted the Ccharacter color at that time is used It can be written using a numeric expression 3 Whe...

Page 188: ...Example 10 CLS 20 FOR 1 1 TO 100 30 X RND 639 Y RND 199 H0 N I MOD 8 50 LINE X Y N 60 NEXT 3 121 ...

Page 189: ...s point which is surrounded by border color 2 area color is specified using the color codes If it is omitted the default value is character color 3 border color is specified using the color codes If it is omitted the default value is area color 4 X Y area color and border color can be written using numeric expressions Example 100 CLS 110 LINE 100 70 500 175 7 B 120 PAINT 300 100 7 7 130 CIRCLE 300...

Page 190: ...fied dot Form PRESET X i Y Description 1 X Y are the coordinates on the world coordi nate system and can be written using a numeric expres sion It spreads background color on the X Y dots 2 For monochrome displays it turns the dot OFF 3 123 ...

Page 191: ...1 X Y are the coordinates on the world coordi nate system and can be written using a numeric expres sion 2 When point color is specified the specified color is set It is specified using the color codes If it is omitted character color is used It can be written using a numeric expression 3 124 ...

Page 192: ...wport on the screen to which the window in the world coordinate system is displayed 2 When area color is specified the inside of the viewport is cleared using area color When border color is specified the viewport frame is drawn using border color Both area color and border color are specified using color codes which can be written using numeric expressions 3 The VIEW instruction only sets the dis...

Page 193: ... error Even if these coordinates are within the specified range points with X1 X2 or Y1 Y2 cannot be specified Example 10 CLS 20 WINDOW 0 0 599 199 30 VIEV 0 0 599 199 6 4 10 G0SUB 110 50 VIEW 0 0 399 133 5 1 60 G0SUB 110 70 VIEW 0 0 199 67 2 7 80 G0SUB 110 90 GOTO 90 100 END 110 CIRCLE 100 100 125 120 LINE 275 35 525 165M B 130 RETURN 3 n n 3 126 ...

Page 194: ... viewport on the screen as the window If a graphic on the world coordinate system is not within the window it is not displayed on the screen 2 The WINDOW instruction only sets the area on the world coordinate system It does not affect the actual screen 3 The initial vaue of the window is set within the range of 0 0 639 199 4 When the specified coordinates are not within the range of 0 32767 it bec...

Page 195: ......

Page 196: ...o W QJ r _i CD 3 CO ...

Page 197: ...c E rz o co O ...

Page 198: ...CHAPTER 4 MS DOS INTRODUCTION 4 1 ...

Page 199: ...the computer and both you and the software you are using It can be compared to the electricity in a house you need it for the television but you are not always aware that it is there This section will briefly describe MS DOS and present you will the important commands you may need to use For further information please consult the Sanyo Software MS DOS Reference Manual available at your authorized ...

Page 200: ...Square brackets indicate that the enclosed entry is optional Angle brackets indicate data you must enter When the angle brackets enclose lower case text you must type an entry defined by the text for example filename enclose upper case text you must press the key named by the text for example RETURN When the angle brackets Braces indicate that you have a choice between two or more entries At least...

Page 201: ...Capital letters indicate portions of statements or commands that must be entered exactly as shown All other punctuation such as commas marks and equal signs must be entered exactly as shown colons slash 4 4 ...

Page 202: ...nd each file has a unique name to distinquish it form other files The names of files are kept in directories on a disk These directories also contain information on the size of the files their location where they are stored on the disk and the dates they where created and updated The directory you are working in is called your current or working directory An additional system area is called the Fi...

Page 203: ...ing of the files on that disk with their size expressed in bytes the date each was created or changed and the time of the creation or changed will appear If you have two drives you may obtain a directory on drive B by typing in DIR B and then depress the RETURN key You can also get information about any file on your disk by typing DIR and a filename For example if you have created a file named MYF...

Page 204: ...l be displayed on the screen and any errors that it has found Hov to Name Your Files The name of a typical system file a file created by MS DOS looks like this NEWFILE TXT The name of a file consists of two parts the filename is NEWFILE and the filename extension is TXT A filename can be from one to eight characters long The filename extension can be one to three characters long or not at all Exte...

Page 205: ...NEWFILE TXT which is located on the disk in drive B type the following command DIR B NEWFILE TXT Directory information about the file NEWFILE TXT will be displayed on the screen The following list contains the characters you can use in creating filenames and extensions A Z 0 9 0 Do not use or This will be explained in the follo wing section Wild Cards Two special characters called wild cards can b...

Page 206: ...y RUN TXT Here are some examples of files that might be found with the above command TEST1RUN TXT TEST2RUN TXT TEST6RUN TXT TEST RUN TXT The Wild Card An asterisk in a filename or extension indicates that any character can occupy that position or any of the remaining positions in a filename or extension For example DIR TEST TXT will list all directory entries on the default drive with filenames th...

Page 207: ...o list the directory entries for all files named NEWFILE on drive A regardless of their filename ex tension simply type DIR A NEWFILE To list the directory entries for all files with file name extension of TST regardless of their filenames on the disk in drive B type DIR B TST This command is useful if all your test programs an extension of TST By using the DIR cmmand with the wild characters you ...

Page 208: ...is executed by typing the filename without its extension Batches of You create a batch file by using the EDLIN command EDLIN and Batch Files The form of EDLIN is EDLIN filename BAT Enter the command EDLIN at the system prompt A You will see the following message EDLIN Version X XX New File After the asterisk enter I for insert wing will be displayed The follo 1 Enter a command such as DIR and depr...

Page 209: ...erisk will appear in the far right Enter E to end and depress the RETURN key You are at the system level If you enter a DIR you will see the file you have created You may execute the file by entering the filename only do not include the extension BAT 10 Z This is the CTRL and Z keys entry followed by RETURN E A 4 12 ...

Page 210: ...OMMAND COM searches the disk for a file named AUTOEXEC BAT If the system finds this file the Cile is immediately executed by the command processor and the date and time prompts are bypassed If the system does not find an AUTOEXEC BAT file when you first load the system disk then the date and time prompts will be displayed You may have only one AUTOEXEC BAT file per disk More Information about EDLI...

Page 211: ... copy a The COPY command can also make copies of files on the same disk In this case you must supply a different filename or you will overwrite the file You can not make a copy of a file on the same disk unless you specify a different filename for the new copy The format of the COPY command is COPY filespec filespec Examples COPY A MYFILE TXT A NEWNAME TXT You have duplicated your file on drive A ...

Page 212: ...ive that contains the blank formatted disk SINGLE DRIVE if you want to make a copy of a disk type DISKCOPY The system will display Insert source diskette into drive A CR Insert formatted target diskettes into drive A CR Press any key when ready Remove the system disk Insert the disk to be copied and depress the RETURN key Remove the disk after the cursor drops to the second prompt Insert a blank f...

Page 213: ...Y N Type Y for yes if you wish to copy other disks or make a second copy default drive prompt is displayed and you are back on the operating system level If you type N for no the Note If either of the disks you are using has defec tive tracks DISKCOPY will not work Use the COPY command to back up your disks in these cases The COPY command will skip over defective tracks 4 16 ...

Page 214: ...COMMANDS Commands are a way of communicating with your Sanyo computer By entering commands you can ask the opera ting system to perform useful tasks 4 17 ...

Page 215: ...be swapped Information Common To All MS DOS Commands Commands are usually followed by one or more options 1 Commands and options may be entered in upper case or lower case or combination 2 3 Commands and options must be separated by delimi ters will usually use the space and comma as delimi ters Because they are the easiest you For example DEL MYFILE OLD NEWFILE TXT RENAME THISFILE THATFILE You ca...

Page 216: ... PRN or NUL are not allowed in the names of any commands 9 V hen commands produce a large amount of output to the screen the display will automatically scroll to the next screen You can depress the CTRL key and the S key at the same time to suspend the display Press any key to resume the display on the screen 10 The prompt from the command processor is the default drive designation drive A plus a ...

Page 217: ...command line and erase the character from the screen CTRL H Insert a physical end of line but do not empty the command line Use linefeed to extend the current logical line beyond the physical limits of one screen line CTRL J Echo screen output to the printer CTRL P Suspend display of output to the screen Press any key to continue CTRL S CTRL X Cancel the curent line empty the command line and then...

Page 218: ...spec option If the first filespec is on the default drive and the second filespec is not specified the COPY will be aborted Copying files to themselves is not allowed The system will display the error message File cannot be copied onto itself 0 File s copied The second option may take three forms a If the second option is a drive designation d only the original file is copied with the original fil...

Page 219: ...other switch is found A A or B switch on the destination file determines whether or not file Source files read while A is in effect have CTRL Z stripped off If A is in effect when the file is written a single CTRL Z will be put back CTRL Z is placed at the end of the 3 The COPY command also allows concatentation joining while copying Concatentation is accomplish ed by simply listing any number of ...

Page 220: ...BIN PRN This command would take all files with an extension of 3 COPY LST REF PRN This command combines all files with the extensions filename All TEST LST and TEST REF would be combined in TEST PRN all SAMPLE LST and SAMPLE REF would be combined in SAMPLE PRN and so forth 4 COPY MBC550 TEST ONEFILE This command combines all MBC550 files and TEST files with any fifth character that have the same e...

Page 221: ... change the date shown If you want to change the date enter the number of the month followed by a hyphen the number of day followed by a hyphen and all four digits of the year or only the last two Hyphens may be substituted for slashes 2 You can also type a particular date after entering DATE and before depressing the RETURN key example See 3 If the options or separators are not valid the followin...

Page 222: ...You must enter the date or depress the RETURN key to terminate the DATE command Example DATE 5 6 84 4 25 ...

Page 223: ...ec is the prompt Are you sure If a Y or y is entered as a response then 1 appears all files are deleted as requested 2 You can also type ERASE for the DEL command CAUTION DEL AND ERASE ARE POWERFUL COMMANDS PLEASE USE WITH CARE MAKE SURE YOU AHVE BACK UP FILES AND DISKS BEFORE USING THESE COMMANDS 4 26 ...

Page 224: ...Examples 1 DEL MBC550 TXT This command erases file MBC550 TXT 2 ERASE MBC550 TXT This command also erases file MBC550 TXT 3 DEL MBC550 This command will erase all MBC550 files with any extension 4 27 ...

Page 225: ...2 then all files with that filename on drive A will be listed You may use wild cards in filename specification See example 3 5 Files are listed with their size in bytes and with the time and date of their creation or modification 6 The P switch selects Page Mode V ith P display of the directory pauses after the screen is filled To resume display of output press any key 7 The W switch selects Wide ...

Page 226: ...Examples 1 DIR B DIR MBC550 2 3 DIR DE TXT 4 29 ...

Page 227: ...owing prompt will be displayed EDLIN Version x xx New file Command I begins Insert a command listed below creating a new file I 1 Write the comraand s you want for the files followed by depressing the RETURN key for each command To end depress both the CTRL and Z key at the same time then the RETURN Key You will be back to the system level 3 To edit an existing file enter the EDLIN command followe...

Page 228: ...prompt followed by depressing the RETURN key You will be returned to the system level A 4 EDLIN commands Command Explanation line Edits line no Appends lines Deletes lines Ends editing Inserts lines Lists text Quits editing Replaces lines Searches text Writes lines A D E I L Q R S W For detailed information on EDLIN consult the Sanyo Software MS DOS Reference manual available at your authorized Sa...

Page 229: ...ied it defaults to EXE If no extension is The input file is converted to COM file format memory image of the program and placed in the output file converted file 3 For double drive systems if you do not specify a drive the drive of the input file will be used 4 If you do not specify an output filename the input filename will be used 5 If you do not specify a filename extension in the output filena...

Page 230: ...e contained information indicating that load segment is required for the file Specify the absolute segment address at which the finished module is to be located File can not be converted The input file is not in the correct format WARNING Read error on EXE file Amount read less than size in header This is a warning message only Example EXE2BIN MBC550 TST MBC555 The file MBC550 TST will be converte...

Page 231: ... to copy the operating system onto the disk as you format it 3 The following message will appear if no drive is designated Remove disk now in drive A Insert a blank disk in drive A and depress any key Remove the system disk and depress any key Format ting will begin following prompt will appear as long as the disk is being formatted Place a blank disk in drive a The Formatting Formatting is comple...

Page 232: ...N and depress the RETURN key You will see the system prompt A indica ting you are back to command mode The following message will appear if you designate drive B as the drive to be formatted 5 Insert a blank disk in drive B and depress any key CAUTION FORMATTING A DISK WITH INFORMATION ON IT WILL DESTROY ALL THE CONTENTS OF THE DISK PLEASE BE CAREFUL TO CHECK THAT THE DISK IS BLANK OR THE DATA ON ...

Page 233: ...will be displayed Strike a key when ready 2 3 If you depress the CTRL and C keys together at this point another prompt is displayed Abort batch job Y N If you enter Y in response executoin of the reminder of the batch command file is ended ands control is returned to the operating sysem 4 An option comment or message comment may be entered on the same line as pause You may want to prompt the user ...

Page 234: ...ecution of a batch file Form REM comment Description The REM command has no other effect delimiters for the comment are any one of the three legal delimiters to start the comment blank space tab or comma The only 1 Example 1 REM PLEASE CHECK THE BYTES LEFT ON TEST ONE 2 DIR TEST ONE 4 37 ...

Page 235: ...le will remain on the disk where it resides 2 The wild card characters may be used in either option All files matching the first filespec are renamed If wild card characters appear in the second filename corresponding character positions will not be changed See example 2 An attempt to rename a filespec to a name already present in the directory will result in the error message File not found 3 Exa...

Page 236: ...y be given as an option to the time command as in TIME 8 20 The new time must be entered using numerals only letters are not allowed The allowed options are hh 00 2 1 mm 00 59 2 The hour and minute entries must be separated by colons You do not have to type the seconds ss or hundredths of seconds cc options 3 The system uses the time entered as the new time if the options and separators are valid ...

Page 237: ...Invalid time Enter new time At this point you will enter a valid time or depress the RETURN key to go back to system level A 4 40 v 1 v ...

Page 238: ...en Form TYPE filespec Description The TYPE command is used to examine a file without modifying it 1 A display of binary files causes control characters such as CTRL Z to be sent to the screen including buzzer and escape sequences 2 Example TYPE SANYO BAS 4 41 ...

Page 239: ......

Page 240: ...01 H _ CD 33 o CD 3 CD 5 r o CD SL 3 O CD ...

Page 241: ...0 o 5 g o z c c 8 H LO ...

Page 242: ...CHAPTER 5 TECHNICAL REFERENCE 5 1 ...

Page 243: ... Ambient Temperature Operating Not operating 50 to 95 degrees F 5 to 149 degrees F Relative humidity Operating Not operating 30 to 80 without dewing 20 to 80 without dewing Options Sanyo color CRT display monitor RGB only CRT 70 Sanyo monochromatic CRT display monitor CRT 36 Sanyo Printer PR 5000 5500 and the complete Sanyo line of printers Second Sanyo drive FDD 1655 Extension RAM MBC 64K RS232C ...

Page 244: ...et is a combina tion of both the standard 7 bit ASCII set and the graphic characters that are on the second half of the set with the 8 bit at a high state The configura tion for the digits in the X dimension repesent bits B7 B6 B5 BH and the bits in the Y vertical dimension represent the bits B3 B2 B1 BO The combination of these two nybbles represent the character code byte 5 3 ...

Page 245: ... 0 2 3 4 5 6 7 c P 0 p o o BLANK NULL BLANK ISAACEI Q 1 A q i a 1 1 l b 2 B R r 2 2 c s II 3 v c s 3 3 rr d 4 t D T 4 4 5 U E 4 i 5 5 e u 6 F V f 6 V 6 G 7 W 9 7 7 W 8 H h X 8 X 8 9 Y 9 O I y 9 I o J z 10 A J z cf K k 11 B j L 2 I N 12 C j M 13 D m n N 14 E n A 0 9 o F 15 o A 5 4 ...

Page 246: ...E E F C D B 9 A 8 4 t E f a oc 0 0 I 222 W 3 E mm 1 1 u I 7777 y oxK w o r e FE 7 2 2 u A a A o 7r 3 3 2 n o 4 a 4 a 7 N 5 5 o A u a 6 6 a u o r 7 7 m e o S y 8 8 6 a mm e O 9 9 aa e n u A 10 If aa v2 d r B a I 11 A T 1 4 c 12 00 1 Y 2 D 13 I I T aa 1 Pts A 14 E f A BLANK 15 F ff 5 5 ...

Page 247: ...LL LOC GET AND DATA DATE LOCATE GO AS GOSUB GOTO LOF ASC DEF LOG ATN DEFDBL DEFINT DEFSNG DEFSTR DELETE LPOS LPRINT LSET AUTO BASE BEEP HEX IF IMP MERGE M ID MKD MKI MKS CALL CDBL CHAIN CHR CINT CIRCLE CLEAR CLOSE DIM IN IT INKEY ELSE INP END INPUT INPUT INSTR EOF MOD EQV ERASE INT NAME ERL NEW CLS ERR KEY NEXT COLOR ERROR KILL NOT COM EXP COMMON CONT LEFT 0CT FIELD FILES LEN OFF COS LET ON CSNG C...

Page 248: ...T PRESET PSET PRINT TO PUT TROFF TRON RANDOMIZE READ UNPACK USING REM RENUM RESET RESTORE USR VAL RESUME RETURN RIGHT VARPTR VIEW RND WAIT WEND WHILE WIDTH WINDOW WRITE RSET RUN SAVE SCREEN SEG SET XOR SGN SIN SPACER SPC SQR STEP STOP STR STRING SUB SWAP 5 7 ...

Page 249: ... found although the GOSUB was not executed 3 03 4 04 Out of DATA Number of constants in the DATA state ment is less than the number of va riables in the the READ statement 5 05 Illegal function call Illegal statement or function call was found 6 06 Overflow Numeric value overflow Calculation result too large 7 07 Out of memory Memory was exhausted Also too large an array 5 8 ...

Page 250: ...he same variable 0A 01 OB Division by zero Number divided by 0 12 0C Illegal direct It cannot be directly executed A statement illegal in the direct mode 13 0D Type mismatch Variable type does not match the data type 0E Out of string space The character string area was exhausted 15 OF String too long The character length exceeded 255 characters 16 10 Printer not ready The printer is not ready to p...

Page 251: ... occurred RESUME without error 20 Unprintable error Undefined error 21 15 The entered line was too long 17 Line buffer overflow 23 18 24 The position is screen out of the screen Position not on 25 Print field overflow The data cannot be stored in the specified print field 19 26 FOR without NEXT 1A NEXT was not found in the FOR NEXT loop 28 1C Out of array space Out of array space WHILE without WEN...

Page 252: ...found in the WHILE WEND loop 30 1E WEND without WHILE WHILE was not found in the WHILE WEND loop 51 33 Port I O Error RS232 not set Baud rate mismatched 5 11 ...

Page 253: ...er The file number is invalid 53 35 File not found The specified file was not found 36 54 Bad file mode The file open mode was not found 55 File already open 37 The file was already opened 56 38 Bad file data The file data is invalid 57 39 Disk I O error The disk is invalid 58 3A File already exists The specified file already exists 5 12 ...

Page 254: ...he write instruction was found after the end of file Input past end 3E 63 The record number is invalid Bad record number 3F 64 40 The file name is invalid Bad file name 67 43 Too many files are opened Too many files 68 44 The file is write protected or the diskette has been replaced File write protected 45 69 The NAME was incorrectly specified NAME across disk 5 13 ...

Page 255: ...1C000 VRAM 50000 Note 128K 1COOO COOOO 1FFFF 1FFFF 70000 192K 2COOO i 80000 2FFFF FOOOO 256 3C000 90000 i 3FFFF A0000 110000 COOOO 00000 E0000 I FCOQO ROM area f OOOO Image Up to 16K bytes 27128 2768 m I7TMF J Reserved address system reset FFFFF Note Numbers are in hexadecimal 5 14 ...

Page 256: ...ROM MAP F0000 FC000 2764 FE000 o o E KEY CODE FE000 2712d FC000 o 27128 FF000 2764 2764 FFFFF Font I PL FF800 FFFFF BOOT Note Numbers are in hexadecimal FFFFF Cold start jump vector 5 15 ...

Page 257: ...1 Reserved for Intel SOFT Interrupt vector FUNCTION 7C 7F 80 83 32 to 63 Reserved for MS DOS FC FF 380 384 3E0 3E3 3E4 3E7 3E8 3EB 3EC 3EF 3F0 3F3 3F4 3F7 3F8 3FB 3FC 3FF 8253 PIT counter 0 8253 PIT counter 1 8251 USART Ready option RS 232C 8251 USART Rx Ready Keyboard Printer Ready MB8877 floppy disk controller 8087 digital data processor User interrupt optional bus IR7 ...

Page 258: ... IR2 USART Rx Ready keyboard 251 FB IR3 252 FC IRiJ Printer Ready 253CFD Floppy disk controller IR5 IR6 25MFE 8087 digital data processor User interrupt external bus IR7 1 1 Negative logic 255 FF IR7 The priorities of pins are fixed to the order of IRO high to IR7 low Operation Command Word OCW 1 changes the priorities Of IRO to IR7 only IR1 to IR3 are associated with BIOS Pins other than IR1 to I...

Page 259: ... interrupts other than IR1 k to IR3 and IR5 can be used by a transient program To use interrupts write the segment and offset the interrupt servicing routine and reset the corresponding IMR bits If the program has terminated restore the rewritten vector set the reset IMR bits then return control to DOS IF the vector and the IMR are not restored an overrun results NOTE to use interrupt master the o...

Page 260: ...ber 0 3 allowed value checked DH Head number 0 1 allowed not value check ed Track number 0 39 not value checked Sector number 1 8 not value checked Number of sectors max 8 checked CH CL AL not value ES BX Address of buffer not required for verify AH 2 Read the desired sectors into memory AH 3 V rite the desired sectors from memory AH 4 Verify the desired sectors Data variable Disk pointer Double w...

Page 261: ...IFY DS BX DX CH CL preserved NOTE 1 If an error is reported by the diskette code the appropriate action is to reset the diskette then retry the operation On read acceses no motor start delay is taken so that three retries are required on reads to ensure that the problem is not due to motor start up 2 Inside the shows the Registor and data is in hexadecimal 5 20 ...

Page 262: ...nter port Returns with AH set with printer satatus 2 Read the printer status into AH AH AH AH 5 4 0 j j I time out I 1 1 selected 1 1 out of paper 1 1 busy printer to be used 0 1 2 corresponding to actual values in printer base area DX Data area printer base contains the base address of the printer card s available located at beginning of data segment 408H absolute 3 words AH is modified All other...

Page 263: ...BH Page number must be 0 for graphics modes On exit DH DL Row column of current cursor CH CL Cursor mode currently set AH s 5 Select active display page valid only for alpha modes AL New page value 0 7 for modes 0 1 0 3 for modes 2 3 AH s 6 Scroll aotive page up AL Number of lines input lines blanked at bottom of window AL s 0 means blank entire window CH CL s Row column of upper left corner of sc...

Page 264: ...sition BH Display page valid for alpha modes only On exit AL Characters read AH Attribute of character read alpha modes only AH 9 Write attribute character at current cursor position BH Display page valid for alpha modes only CX Count of characters to write AL Characters to write BL Attribute of character alpha color of char graphics see note on write dot for bit 7 of BL 1 AH 10 Write character on...

Page 265: ...e BH Display page in alpha mode NOTE Screen width is controlled by previous mode set AH 15 Current video state Returns the current video state AL Mode currently set see AH 0 AH Number of character columns on screen BH Current active display page CS SS DS ES BX CX DX preserved during call others destroyed All 5 24 ...

Page 266: ...ines the amount of memory in the system as represented by the switches on the planar Note that the system may not be able to use I O memory unless there is a full complement of 64K bytes on the planar Output AX Number of contiguous 1K blocks of memory 5 25 ...

Page 267: ...rinter 8255 port that can be read as well as written Output AX is set bit significant to indicate attached I O Bit 15 14 Number of printers attached Bit 13 Not used Bit 12 Game I O attached Bit 11 10 9 Number of RS232 cards attached Bit 8 Unused Bit 7 6 Number of diskette drives 00 1 01 2 10 3 11 4 only if Bit 0 1 Bit 5 4 INITIAL VIDEO MODE 00 Unused 10 80X25 BW using color card Bit 3 2 Planar RAM...

Page 268: ...he next ASCII character struck from the keyboard Return the result in AL scan code in AH AH 1 Z flag to indicate if a code is Set the available to be read ZF 1 No code available ZF 0 Code is available IF ZF 0 to be read is in AX and the entry remains in the buffer the next character in the buffer 5 27 ...

Page 269: ...1 CTRL CTRL CTRL CTL PF1 CTL PF2 CTL PF3 CTL PF4 CTL PF5 CTL PF6 CTL PF7 CTL PF8 CTL PF9 CTL PF10 ALT PF1 ALT PF2 ALT PF3 ALT PF4 ALT PF5 ALT PF6 ALT PF7 ALT PF8 ALT PF9 ALT PF10 CTRL PF1 CTRL PF2 CTRL PF3 CTRL PFH CTRL PF5 CTRL SHIFT PF1 CTRL SHIFT PF2 CTRL SHIFT PF3 CTRL SHIFT PFH CTRL SHIFT PF5 SHIFT PF1 SHIFT PF2 SHIFT PF3 SHIFT PF4 SHIFT PF5 SHIFT PF6 SHIFT PF7 SHIFT PF8 CTRL 1 CTRL 2 CTRL 3 ...

Page 270: ...SHIFT PF9 SHIFT PF10 CTRL 9 CTRL 0 CTRL CTRL SHIFT CTL 2 CTL 6 m 5 Numeric pad 2 Numeric pad END 5 29 ...

Page 271: ...OC V RAM pjg t l cl PA Joy stick PB Printer data 8255 m 8255 PPI PC 8255 PPI PPI control 8255 PPI Counter 0 8253 PIT Counter 1 8253 PIT Counter 2 8253 PIT PTT control 8253 PIT Data RS 232C 8251 USABT Command Status 8251 USAftT HD4CS0S CKTC Address register Data HD4C50S cure Data Keyboard Command Status 8251 S kT 8251 US 8T mr 5 30 ...

Page 272: ... 8 o PA 3 PA 2 PA 1 PAO K I bO to b5 Non inversion l A D trigger Printer joy stick PB Inverted output o 8 bit parallel output c 8 o O n 5 8259A IR4 PC 7 5 8 P C 6 PC 5 P C 4 Select Paper empty BUSY READY S Printer status c 3 Op Printer data strobe Side select P C 3 P C 2 PC 1 PCO FDD selector Drive select 5 31 ...

Page 273: ...Rx Tx ROY ROY 8259A IR2 Mark space ar x x nft e0 ece rLr_Lr Ln_n_n_rlfi_n_n_jn_ Oc Os Da Dj D Oi DO 07 RX 1 SYM n m D5R pjj ft 01 ROY ROY I it transmit data Puller a empt i C n o n Id R ROY pm Conform to T EMRTYpm T rl Htcixi ti it m pari t error Clear thittii mth R corr rr arri USART OP le n nOt atlected f it n t data n marred Pelore CRU r Rewree data alter r RT operation eadt erred to data Polle...

Page 274: ...ty bit Serial signal Baud rate 1200 baud Data bit 8 bits Parity Enable Even parity Stop bit 2 bits Key Operation General Key Depressing these keys causes data signals to be gener ated Depressing the keys continuously for 720 msec or more results in auto repeat operation i Pressing key Data transmission timing n e tw 720ms 57 ms 5 33 ...

Page 275: ...transmission timing 5 720ms 80 ms 80ms CTRL Key Key no 31 Depressing a general key together with this key causes transmission data parity bit to be sent as a parity error Parity bit t Stop Start Data bits bit bit i Parity error 5 34 ...

Page 276: ...a general key together with this key causes the shift code for the mode alphanumeric mode to be sent LOCK Key This key is used to switch to lower case code mode The led illuminates when operated in the upper case mode 5 35 ...

Page 277: ...mer tone oscillator and baud rate generator respectively Its allocation is as follows I O Address 78 6 KHz u CO OUT1 8259A IRO 10 msec in period at initialization 20H Counter 0 ci OUT1 22H 8259A IR1 Counter 1 C2 OUT2 RS 232C Baud rate 1200 bps at initializatio 24H Counter 2 8253 Control 26H 1 78977 MHz 5 36 ...

Page 278: ...R EQU 24H COUNTER 2 RATE EQU 59658 BPS 30 l6 J30 RATE 59658 BPS 30 16 40 AL RATE AND 255 50 AH RATE 256 AND 255 60 OUT RSBR AL REM LSB 70 AL AH 80 OUT RSBR AL REM MSB Basic i i i i i MOV AX RATE OUT RSBR AL LSB MOV AL AH OUT RSBR AL MSB Assembler i i i i i i i i i NOTE Sanyo Basic is able to handle baud rates up to 1200 assembler Rates higher than 1200 must be accessed through Default upon cold bo...

Page 279: ...on of the 256K byte area to be converted into Video RAM Allo cation is effected by the following method 1 Select a 16K byte page usually page 1 using the page selector at I O address XMO1 2 Determine a display address by CRTC Relations between CPU addresses and pages 5 38 ...

Page 280: ...s 08000 E0 M 0 0 1 1C000 1 0 M 4 o 1FFFF 2 CRTC address I 1 1 Note The start address has the meaning of a 4 byte step on the V RAM because the two low order bits refer to the row address 2C000 7FFF 2 0 C000 to FFFF show first half image 2FFFF 2 1 Note Numbers are in hexadecimal 3C000 3 0 3FFFF 3 1 5 39 ...

Page 281: ...3 This is the setting for most software Please refer to the chart below for the on applications functions of each switch Function Switch Monochrome mixed mode Three levels of green for graphic programs used for test 1 Half intensity 2 Blink 3 4 Not used Normal setting is as follows Switch Setting OFF 1 ON 2 ON 3 4 OFF 5 40 ...

Page 282: ...acters up to a designated character the next character you want to be copied from the template to the screen PF3 Copies all remaining characters from the template to the screen PF4 Skips over all characters to a designated character PF5 Initialize the template PF6 Kills the new template no change in old template PF7 Enters the template insertion mode PF8 Resets the template insertion mode Skips ov...

Page 283: ......

Page 284: ...O 0 CD D 2 73 r 3 02 Si O 3 ...

Page 285: ...Vi C 2 is fl CL c C 0 CL ...

Page 286: ...CHAPTER 6 OPTIONAL PERIPHERAL INSTALLATION 6 1 ...

Page 287: ...cian do the installation Please consult your authorized Sanyo computer dealer Sanyo Business Systems assumes no responsibility for all improper installations and their consequences due to misinterpretations of the installation directions contained in this chapter These installation instructions apply only to Sanyo supplied peripherals or recommended compatible components mentioned in this document...

Page 288: ...m carefully and refer to them for all peripheral installations 1 Turn the power off and unplug the AC cord from the electrical outlet 2 Unscrew counter clockwise the case screws on the sides of the computer two on each side 3 Unscrew the top center screw in the rear of the computer one screw 0 Slide the top of the cabinet away from the drives Please refer to the illustration below CABINET COVER FR...

Page 289: ...REAR PANEL REMOVAL Unscrew the screws holding the left panel 2 screws Please refer to the illustration below 1 PANEL REAR s PANEL REAR LEFT 6 4 ...

Page 290: ...2 Disconnect the two plugs and speaker plug on the main board Please refer to the illustration below FD Power Supply FD Signal Speaker Power Supply 6 5 ...

Page 291: ...electrical outlet 2 Remove the cabinet cover Refer to the instructions at the beginning of this chapter 3 Disconnect the two plugs in the back of the drive 0 Remove the screws holding the drive plate and slide the plate drive and diskette holder away from the front of the computer and up Please refer to the illustration below V N DRIVE PLATE 6 6 ...

Page 292: ...the second drive over The bottom of the second drive has a circular drive motor it looks like a turn table on a phonograph This side should be facing down 6 Carefully turn the drive plate with both drives on it over Align the second drive to the screw holes and screw the plate onto the drive SECOND DRIVE DRIVE PLATE 6 7 ...

Page 293: ...nd drive The signal line plug large black plug has one red wire This should be at the right side of the plug as you insert it Please refer to the illustration The power plugs H wires only 1 yellow 2 black and 1 red can only be inserted the correct way If you have trouble pushing the plug in turn it over and try again Again the red wire is to the right RED WIRE RED WIRE 6 8 ...

Page 294: ...10 Check to make sure you did not loosen anything while you were installing the drive 11 Replace the cabinet cover 12 Restore power to your unit 6 9 ...

Page 295: ... case top Refer to the instructions at the beginning of this chapter 3 Remove the back panel Refer to the instructions at the beginning of this chapter JO Slide the board back pulling gently on the panel away from the drives by 5 Locate column C toward the end of the board refer to the illustration Please Column C Column B Colume A 6 10 ...

Page 296: ... column C should be reading in the same direction 7 Place all the pins of the chip on one side of the socket row and gently push in as far as possible Push the other side down till you hear a click Be careful not to break the pins If you have trouble please consult an authorized Sanyo computer dealer 8 After you have placed all eight chips in column C replace the board and connect the plugs 9 Chec...

Page 297: ...e case top Refer to the instructions at the beginning of this chapter 3 Remove the back panel Refer to the instructions at the beginning of this chapter 4 Slide the board back away from the drives by pulling gently on the panel 5 Locate column B and A toward the end of the board Please refer to the illustration ...

Page 298: ...column A The order that you place the chips does not matter How you insert the chips does Look at a chip One end is flat one end has a half circle cut in it This half circle should be facing toward the panel All lettering on these chips and the ones in column B and A should be reading in the same direction 6 13 ...

Page 299: ...e careful not to break the pins If you have trouble please consult an authorized Sanyo computer dealer 8 After you have placed seven chip in column B and one chip in the last socket of column A replace the board and connect the plugs 9 Check to make sure everything is secure before you replace the cabinet cover 10 Restore power to your unit 6 14 ...

Page 300: ...he electrical outlet 2 Remove the case top Refer to the instructions at the beginning of this chapter 3 Remove the back panel Refer to the instructions at the beginning of this chapter 4 Disconnect the two screw holding the plate labeled LINE Please refer to the illustration 6 15 ...

Page 301: ...blue line blue line 6 16 ...

Page 302: ...e rear panel and located on the side of the pins labeled 0 and 1 8 Insert the side of the plug with the blue line first Gently press down as far as possible Press the other side onto the pins 9 Check to make sure everything is secure before you replace the back panel and cabinet cover 10 Restore power to your unit Jumper There is a green plastic jumper on the RS 232 board This jumper governs recei...

Page 303: ...BPS 30 l6 40 AL RATE AND 255 50 AH RATE 256 AND 255 60 OUT RSBR AL REM LSB 70 AL AH 80 OUT RSBR AL REM MSB Basic I I I MOV AX RATE OUT RSBR AL LSB MOV AL AH OUT RSBR AL Assembler i i i i i i MSB i i To set any other baud rate subsitute the rate in place of J 800 in the examples above The default rate upon cold boot is 1200 Other baud rates must be set upon start up Sanyo Basic may handle baud rate...

Page 304: ... plate labeled JOY STICK PADDLE by removing the single screw inside the rear panel i Thread the joy stick or paddle cable through the hole and attach to the socket labeled CN8 This is located about the middle of column H 5 You will notice that one edge of the joy stick paddle plug is rounded inserted at the corner of the socket labeled CN8 This edge will be 6 Press the plug into the socket gently ...

Page 305: ...7 Check to make sure everything is secure before you replace the cabinet cover 8 Restore power to your unit 6 20 ...

Page 306: ...the rear of the Sanyo 550 series computer in the socket labeled MONO CHROME 3 Connect the power cord to the power outlet of the computer located in the rear of the cabinet The power switch is located below the screen NOTE FOR OTHER MONITORS SOME MONITORS PROVIDE POOR EMI PERFORMANCE TO ELIMINBATE THE NOISE PROBLEM CONNECT THE MONITOR POWER CORD TO THE MBC 550 SERIES COMPUTER POWER OUTLET LOCATED I...

Page 307: ......

Page 308: ...ence manuals are also available from your Sanyo computer dealer for detailed information you might require Sanyo Softv are Reference Manuals MS DOS Reference Manual by Microsoft Sanyo Basic Reference Manual WordStar Reference Manual by MicroPro SpellStar and MailMerge Reference Manual by MicroPro ReportStar Reference Manual by MicroPro DataStar Reference Manual by MicroPro ...

Page 309: ... Vr m ...

Page 310: ...ommand Sanyo Basic 3 36 Auto Loading Batch Files 4 13 B BREAK Key 1 22 Back Space Key 1 22 Batch Processing 4 11 Baud Rate Setting 5 35 Beep Command Sanyo Basic 3 38 C CHKDSK Command 4 7 CIRCLE Command Sanyo Basic Graphics 3 109 CLS Command Sanyo Basic 3 39 COLOR Command Sanyo Basic Graphics 3 112 CONT Command Sanyo Basic 3 40 COPY Command MS DOS 4 21 COPY Command 4 14 COS Funotion 3 89 CRT 36 1 6...

Page 311: ... Copying Disks 1 32 Copying Files 1 31 D DATA Command MS DOS 4 2 1 DEL Command MS DOS i 26 DELETE Command Sanyo Basic 3 2 DIM Command Sanyo Basic 3 44 DIR Command MS D0S 4 28 DIR Command 4 6 DISKCOPY Command 1 32 DISKCOPY Command 4 15 Data 3 13 Delete Key 1 22 Destination Drives 4 19 Direct Execution Sanyo Basic 3 4 Disk Drive 1 16 Disk Error Messages 5 9 Diskette Handling 1 4 Diskette I O Interru...

Page 312: ...DD 1655 Installation 6 6 FOR NEXT Command Sanyo Basic 3 47 FORMAT Command MS DOS 4 34 File Allocation Table Description 4 5 File Copying MS D0S 4 14 File Naming MS D0S 4 7 File What is An MS DOS File 4 5 Filenames MS DOS 4 7 Files How To Copy 1 31 Formatting Diskettes 1 27 Function Key 1 21 Function Sanyo Basic 3 86 G GCURSOR Command Sanyo Basic Graphics 3 113 GET Command Sanyo Basic Graphics 3 11...

Page 313: ...22 INT Function 3 92 Insert Key 1 22 Inserting a Diskette 1 16 Installation MBC 550 Series 1 5 Interrupt Routines 5 19 Interrupt Vector 5 16 J Joy Stick Installation 6 19 K KEY Command Sanyo Basic 3 57 Key Repeat Function 1 20 Keyboard Illustration 1 18 Keyboard Interrupt Routine 5 31 Keyboard Signals 5 37 Keyboard Tilt 1 1 Keyboard Translation Table 5 32 Keyboard Graphic Symbols Illustration 1 19...

Page 314: ...ression 3 24 Logical Operators 3 24 H MBC 232C Installation 6 15 MBC 550 Series Options 5 2 MBC 64K Installation 6 10 wlERGE Command Sanyo Basic 3 67 MID Function 3 95 MS DOS Command Options 4 17 MS DOS Commands common Information 4 18 MS DOS Commands 4 17 MS DOS Files 4 5 MS DOS Rules 4 3 MS DOS What Is It 4 2 MS DOS 4 1 Memory Map 5 14 Memory Size Determination Interrupt 5 28 Monitor Installatio...

Page 315: ...le Installation 6 21 Part Functions 1 9 Part Names 1 8 Peripheral Installation 1 Printer Connection Parallel 1 6 Printer I O Interrupt 5 21 Program Edit Sanyo Basic 3 5 Prompt Sanyo Basic 3 4 R READ DATA RESTORE Command Sanyo Basic 3 75 REM Command MS DOS 4 37 REM Command Sanyo Basic 3 78 REN Command MS DOS 4 38 RENUM Command Sanyo Basic 3 79 RIGHTS Function 3 96 RND Funotion 3 97 ROM Map 5 15 RS ...

Page 316: ...bols 3 7 Sanyo Basic Constants 3 14 Sanyo Basic Conversion of Numeric Values 3 29 Sanyo basic Data 3 13 Sanyo Basic Evaluation of Combined Expressions 3 28 Sanyo Basic Expressions and Operators 3 18 Sanyo Basic General Functions 3 86 Sanyo Basic General Instruction Words 3 33 Sanyo Basic How to Enter 3 3 Sanyo Basic Keywords and Spaces 3 12 Sanyo Basic Line Numbers 3 10 Sanyo Basic Logical Express...

Page 317: ...ommand MS DOS 4 39 TYPE Command MS DOS 4 41 Tab Key 1 23 Tilt Legs 1 14 Timer 8253 5 36 U USART 8251 A 5 32 USART 5 31 V VIEW Command Sanyo Basic Graphics 3 125 Variables 3 16 Video RAM 5 40 Viewport Sanyo Basic Graphics 3 105 Vocabulary 2 1 W WINDOW Command Sanyo Basic Graphics 3 127 Wild Cards MS DOS 4 8 Window Sanyo Basic Graphics 3 105 Withdrawing a Diskette 1 17 World Coordinates Sanyo Basic ...

Page 318: ......

Page 319: ...SANYO ELECTRIC CO LTD Printed In Japan Nov 1983 Rev 1 0 9376411914800 ...

Reviews: