speed on the program development environment made even ......core developed by kawasaki...

2
Fast and generates compact objects. Automatically executes optimum register layout. Generates Object Code using the KC 's extension command. Generates codes making efficient use of Z 's Index Register. Supports the HD /HD F/KC bank conversion. An Optimizing C Cross Compiler Speed on the Program Development Environment made even faster ! LSI C-80 is a C cross compiler made in accordance with the ANSI Standard Specifications which supports the software development for i8080/i8085/z80/HD64180/KC80/KC160 processors. This package includes both the compilers for KC160 and i8080/Z80/HD64180. Conforms with KC160's 16M Byte Linear Address space requirements. SARAH Inc. - International Sales and Purchasing Center HEAD OFFICE: 6-18-9 Meguro Honcho, Meguro-Ku, Tokyo, Japan Tel. 81-3-5704-9447 Fax 81-3-5725-1135 URL: http://www.sarah-grp.com E-mail: [email protected] FACTORIES IN THE PHILIPPINES: Sarah Digital Network Inc.; Cebu Sarah Inc. Lot 3(B), Block 5, MEPZ II, Basak, Lapu Lapu City, Philippines Tel. 63-32-340-7375 Fax 63-32-340-7378

Upload: others

Post on 28-Jan-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

  • ■Fast and generates compact objects.■Automatically executes optimum register layout.■Generates Object Code using the KC160's extension command.■Generates codes making efficient use of Z80's Index Register.■Supports the HD64180/HD64180F/KC80 bank conversion.

    An Optimizing C Cross Compiler

    Speed on the ProgramDevelopment Environment made even faster !

    LSI C-80 is a C cross compiler made in accordance with the ANSIStandard Specifications which supports the software development for i8080/i8085/z80/HD64180/KC80/KC160 processors. This package includes both the compilers for KC160 and i8080/Z80/HD64180.

    Conforms with KC160's 16M Byte Linear Address space requirements.

    SARAH Inc. - International Sales and Purchasing Center HEAD OFFICE: 6-18-9 Meguro Honcho, Meguro-Ku, Tokyo, Japan Tel. 81-3-5704-9447 Fax 81-3-5725-1135 URL: http://www.sarah-grp.com E-mail: [email protected]

    FACTORIES IN THE PHILIPPINES: Sarah Digital Network Inc.; Cebu Sarah Inc. Lot 3(B), Block 5, MEPZ II, Basak, Lapu Lapu City, Philippines Tel. 63-32-340-7375 Fax 63-32-340-7378

  • By this, high level debugging is possible, making the development more efficient.�

    ▼Debugger for i8080/Z80/HD64180 (For system requirements, please contact the respective makers).��

    ▼Debugger for KC160 (For system requirements, please contact the respective makers.)

    ▼Multi-task monitor for Z80 (For system requirements, please contact the respective makers.)

    ●CD-ROM Drive necessary.

    ●Compiler Driver (lcc80, lcc160)●Pre-processor (cpp)●Compiler (cf/cg80/cgz80, cf160/cg160)●Assembler (r80/nr80/rz80, r160)●Linker (knil, lld160)●Librarian (sofar, lar160)●Library (includes Source Codes)

    ●ROM making training Program●UNIX-like Program Saving � Tool (kmmake)●lcc80, cpp, kmmake etc. Tool � Source Code●Japanese or English Manual ●Registration Card

    *1: excluding bit field, multi-byte characters and (locale.h), (signal.h). *2: KC80 High Speed 16 bit Microcontroller CPU Core developed by Kawasaki Microelectronics Incorporated. *3: A Z80 Simulator Debugger intended for PC-9800 Series which runs on MS-DOS. *4: (Windows Pack) Compiler for I8080/Z80 that runs on MS-DOS 3.30 and above. (Main memory must be 384KB and above) is also included in the standard package. *5: Please inquire about the corresponding OS and libc version. *6: Those who wish to use a 3.5-inch (For PC-9801: 1.2MB or 1.4MB; PC/AT Compatibles: 1.4MB; for Sun :1.4MB) floppy disk, we offer a Media Conversion Service (For each software that works with any of the above-mentioned corresponding OS, with charge). You may request it during or after your purchase. *7: Those who purchase 1 basic package could buy additional license/licenses aside from the product. We have additional licenses ready for distribution, so you can purchase the necessary number of licenses according to the number of personal computers to be used.

    ●Please take note that (Windows Pack) Basic Package; (Solaris Pack) Basic Package, (FreeBSD/Linux Pack) Basic Package are separate products. ●With regards to the sales of programs made through this compiler, for as long as the said program is not included in the compiler itself, a royalty fee is not needed.

    LSI C is a registered trademark of LSI Japan, Co., Ltd. Other product names are trademarks or registered trademarks of their respective maker-developers.

    Fast; generates compact objects.

    ■Automatic Register Layouting capabilityThis compiler automatically executes the most suitable register layout. Since the registers would be layouted to its best, full utilization of all the CPU's register is ensured even without the attention of the programmer. Because of this, marvelous objects could be generated.

    ■Parameter DeliveryThe first three of the function call parameters would be delivered to the registers. Because of this, the function call's overhead becomes very light.�

    ■Introduction of the non-recursive functionBy the introduction of the nonrec (non-recursive) key word, one can specify each function as recursive or non-recursive. With the non-recursive function, GREATER EFFICIENCY could be achieved because the automatic variables which hasn't been layouted would be arranged not in stack, but in a fixed address,�

    ■Compiler for KC160Generates Object Codes using the KC160 extension commands. The KC160 processor has a 16M Byte memory space. For the programmer to be able to choose according to purpose, 2 memory models S and L are being prepared in this memory space. Furthermore, because it is supported by the "far" and "near" keywords, large amounts of data could be placed inside the S model program.�

    ■Compiler for i8080/Z80/HD64180In addition to the i8080 codes, this compiler generates codes using the Z80 index registers. The linker for i8080/Z80/HD64180 is our company's very own (original), which can link to objects in SOF or REL form. Moreover, it supports the bank changeover of HD64180/HD64180F/KC80.�

    ■Fastest in making ROMWith the fact that the interrupt service routines are written in C, and because object efficiency is very good, ROM programs could generally be written in C language.�

    ■LibraryThis compiler provides functions defined by the ANSI standards. Library modifications can be done freely because both the object and source code forms are provided.�

    ■PerformanceThe program in figure 1's run time is shown in table 1. �

    ▼Fig. 1 Source List        ▼Table 1: Execution result of the program in Fig. 1����

    ▼Fig. 2(a) Assemble List (for Z80) ▼Fig. 2(b) Assemble List (for KC160)

    ※When tarai (10, 5, 0) is used.

    Program

    Fig.2(a) for Z80

    Fig.2(b)for KC160

    CPU Clock

    HD64180(10MHz)

    KC160 (16MHz)

    Speed(sec)

    20

    1.5

    *3With the debugger [LDB-80X or PARTNER-ETII(80)] included in the package, program errors could easily be detected, thereby improving workability.

    Multi-task Monitor supporting LSI C-80

    Kyoto MicrocomputerSophia Systems

    Yokogawa Digital ComputerProfessional Education Laboratory

    Yokogawa ElectricA-ONE Co., Ltd.

    PARTNER-ETII(80)Z80TAT mkII, KC80TAT ICE System, WATCHPOINTadvice, micro VIEW-GRM80/win, RM80/win-DBVirtual ICEbug finder BF3000

    I.O. Laboratory Co., Ltd. MiSPO

    IOL-RMM_Z80, IOL-RMM_64180

    NORTi3/Z80 Standard, NORTi3/KC160 Standard

    ■LSI C-80 Ver. 3.6 System Requirements

    *1

    Software Name

    LSI C-80 Ver.3.6(Windows Pack)

    LSI C-80 Ver.3.6(Solaris Pack)

    LSI C-80 Ver.3.6(FreeBSD/Linux Pack)

    Corresponding Model

    Computers that work with Windows 95, Windows 98, Windows Me, Windows

    NT Workstation Version 4.0 (i386 up), Windows 2000 Professional

    Any workstation that works with Solaris 1.x, Solaris 2.x

    Any computer

    that works

    with FreeBSD, Linux

    *4

    ■LSI C-80 Ver. 3.6 ListProduct NameLSI C-80 Ver.3.6 (Windows Pack) Basic PackageSupply Media: CD-ROMLSI C-80 Ver.3.6 (Windows Pack) Additional 1 LicenseLSI C-80 Ver.3.6 (Solaris Pack) Basic PackageSupply Media: CD-ROMLSI C-80 Ver.3.6 (Solaris Pack) Additional 1 LicenseLSI C-80 Ver.3.6 (FreeBSD/Linux Pack) Basic PackageSupply Media: CD-ROMLSI C-80 Ver. 3.6 (FreeBSD/Linux Pack) Additional 1 licenseLSI C-80 Ver. 3.6 Additional User's Manual

    Model No.

    LSIC80-11-ST

    LSIC80-11-1L

    LSIC80-21-ST

    LSIC80-21-1L

    LSIC80-31-ST

    LSIC80-31-1L

    LSIC80-11-UM

    *6

    *7

    *7

    *7

    *6

    *6

    ■Package includes:

    Computex ROMICE 64

    int tarai(int x, int y, int z)

    {

    if (x > y)

    � return tarai� (tarai(x-1, y, z),

    � � tarai(y-1, z, x),

    � � tarai(z-1, x, y));

    else

    � return y;

    }

    0000� tarai_:0000 DDE5� � PUSH� IX0002 DD210000�� LD� IX,O0006 DD39� � ADD� IX,SP0008 E5� � PUSH� HL0009 D5� � PUSH� DE000A C5� � PUSH� BC000B DD6EFC�� LD� L,(IX-4)000E DD66FD�� LD� H,(IX-3)0011 DD5EFE�� LD� E,(IX-2)0014 DD56FF�� LD� D,(IX-1)0017 CD0000� � CALL� CMPHD##001A 304B� � JP� NC,_2001C DD4EFC�� LD� C,(IX-4)001F DD46FD�� LD� B,(IX-3)0022 DD5EFE�� LD� E,(IX-2)0025 DD56FF�� LD� D,(IX-1)0028 DD6EFA�� LD� L,(IX-6)002B DD66FB�� LD� H,(IX-5)002E 2B� � DEC� HL002F CD0000�� CALL� tarai_0032 E5� � PUSH� HL0033 DD4EFE�� LD� C,(IX-2)0036 DD46FF�� LD� B,(IX-1)0039 DD5EFA�� LD� E,(IX-6)003C DD56FB�� LD� D,(IX-5)003F DD6EFC�� LD� L,(IX-4)0042 DD66FD�� LD� H,(IX-3)0045 2B� � DEC� HL0046 CD0000� � CALL� tarai_0049 E5� � PUSH� HL004A DD4EFA�� LD� C,(IX-6)004D DD46FB�� LD� B,(IX-5)0050 DD5EFC�� LD� E,(IX-4)0053 DD56FD�� LD� D,(IX-3)0056 DD6EFE�� LD� L,(IX-2)0059 DD66FF�� LD� H,(IX-1)005C 2B� � DEC� HL005D CD0000� � CALL� tarai_0060 D1� � POP� DE0061 C1� � POP� BC0062 CD0000� � CALL� tarai_0065 1806� � JP� _3:0067� _2:0067 DD6EFC�� LD� L,(IX-4)006A DD66FD�� LD� H,(IX-3)006D� _3:006D DDF9� � LD� SP,IX006F DDE1� � POP� IX0071 C9� � RET

    00000000� tarai_:00000000 DDE5�� PUSH� IX00000002 ED06�� LD� IX,SP00000004 E5� � PUSH� HL00000005 D5� � PUSH� DE00000006 C5� � PUSH� BC00000007 EDADFC� LD� HL,(IX-4)0000000A ED9DFE� LD� DE,(IX-2)0000000D 7C� � LD� A,H0000000E AA�� XOR� D0000000F F21300� JP� P,_200000012 EB� � EX� DE,HL00000013 _2:00000013 ED52�� SBC� HL,DE00000015 D24900� JP� NC,_300000018 ED8DFC� LD� BC,(IX-4)0000001B ED9DFE� LD� DE,(IX-2)0000001E EDADFA� LD� HL,(IX-6)00000021 2B� � DEC� HL00000022 CD0000� CALL� tarai_00000025 E5� � PUSH� HL00000026 ED8DFE� LD� BC,(IX-2)00000029 ED9DFA� LD� DE,(IX-6)0000002C EDADFC� LD� HL,(IX-4)0000002F 2B� � DEC� HL00000030 CD0000� CALL� tarai_00000033 E5� � PUSH� HL00000034 ED8DFA� LD� BC,(IX-6)00000037 ED9DFC� LD� DE,(IX-4)0000003A EDADFE� LD� HL,(IX-2)0000003D 2B� � DEC� HL0000003E CD0000� CALL� tarai_00000041 D1� � POP� DE00000042 C1� � POP� BC00000043 CD0000� CALL� tarai_00000046 C34C00� JP� _400000049� _3:00000049 EDADFC� LD� HL,(IX-4)0000004C� _4:0000004C DDF9�� LD� SP,IX0000004E DDE1�� POP� IX00000050 C9� � RET