Japanese emulator

Abstract: The present invention comprises a first-language basic input/output control program (300) linked with a first-language OS and a computer and an input/output device for executing first-language application software of an object form, an emulator linked with second-language application software, the first-language basic input/output control program and the first-language OS for executing the second-language application software of the object form and means for activating or ceasing the emulator. Thereby, there is provided a computer system which permits the first-language application software and the second-language application software to be operated using identical computer, input/output device and first-language OS.

Description: The present invention relates to a computer system capable of operating both of first-language application software and second-language application software utilizing one computer, one input/output device and one first-language OS, and more particularly to a computer system having an emulator for executing Japanese application software on a computer running under an English OS while maintaining a soft interface of English application software and its emulator. Heretofore, a personal computer handling Japanese language has a unique architecture different from that of a personal computer handling English language and an operating system (hereinafter abbreviated to OS) is also supplied in a Japanese-processing-facility added form. However, personal computers for business use led by United States of America extensively use the IBM-supplied PC/AT architecture. Several tens of thousands of pieces of excellent application software developed for the PC/AT architecture have been sold. For this reason, in the personal computer world, the PC/AT architecture has generally been recognized as the world standard, and thus personal computers of the same architecture have been manufactured and sold by many companies. On the other hand, in order to realize the Japanese environment on the PC/AT architecture, addition of hardware, such as a modified keyboard and a Kanji font ROM, has been performed. Following this, modifications of the basic input/output system (BIOS) which is a basic input/output control program and the OS are required. That is, Fig. 1 is a block diagram of a system for utilizing English application software (hereinafter referred to as English application) with the English MS-DOS prepared by Microsoft Corporation in U.S.A. Also, Fig. 2 is a block diagram of a system for utilizing Japanese application software (hereinafter referred to as Japanese application) with the Japanese MS-DOS. As is evident from the comparison of Fig. 1 with Fig. 2, in the case of personal computers handling Japanese applications, the Japanese MS-DOS (hereinafter referred to as the Japanese DOS) is provided in place of the English MS-DOS (hereinafter referred to as the English DOS) and the Japanese BIOS is newly provided. To operate Japanese application and English application on one personal computer, there is a method which uses two types of OSs, or the Japanese DOS and English DOS. According to this method, the OSs have only to be equipped with their respective facilities. From the standpoint of users, however, a drawback with the method is that operation is troublesome. That is, by way of example, in order to execute English application after execution of Japanese application, the English DOS has to be activated before the execution of the English application. There is also a drawback that two types of OSs have to be installed on a disk. There is another method which incorporates an English-compatible facility into the Japanese OS. This method has an advantage that one OS permits Japanese and English applications to be operated, but on the other hand the method has a drawback that a free area left for English application is reduced in memory because a section for the Japanese facility is resident permanently in the memory. Moreover, since the DOS is not the English DOS proper, there is a drawback that there is not any guarantee that to what extent the compatibility with the English DOS environment can be maintained. Furthermore, there is a drawback that the whole OS has to be looked over again for revision with each version up of the OS. In either of the two methods, no consideration is given to printers. That is, printers adapted for Japanese must be used for Japanese application, while printers adapted for English must be used for English application. This is very inconvenient. Prior art document ELEKTRONIK, vol. 34, no. 25, 13 December 1985, MUNCHEN DE, pages 91-92; GERD HILDEBRANDT & HERBERT THIESS: "Z80-SOFTWARE LÄUFT AUF 68000-SYSTEMEN", discloses an emulator for an object program of a differing computer system inserted between an user and the BIOS of a first computer system, which in this case is a CP/M OS running on a 68000 hardware. Using the emulator a user program written previously for one computer system can run on another computer system without alteration. It is an object of the present invention to provide a computer system which permits both of first-language and second-language applications to be operated utilizing one computer, one input/output device and one first-language OS, and more specifically an emulator which permits, for example, Japanese-language (second language) application to be executed, as requested by user, under, for example, the English-language (first language) OS. It is another object of the present invention to provide an emulator which permits, for example, Japanese application to be executed, as requested by user, under the English OS without any modification of the contents of the English OS. It is still another object of the present invention to provide an emulator which permits automatic switching between its activation and stop according to a screen mode that an application requests. It is a further object of the present invention to provide an emulator which permits its installation (loading)/cancellation (unloading) to be performed with an easy operation or automatically and dynamically so that a memory area for English application is not decreased. It is a still further object of the present invention to provide a Japanese emulator which emulates the Japanese environment easily for PC/AT-compatible keyboards. It is another object of the present invention to provide a Japanese emulator which is permitted to have Japanese Kanji font patterns for display while using a standard extended memory managed by an English OS. A further object of the present invention is to provide a printer emulator which permits an English printer having no Japanese facility to be used for printing out outputs of a Japanese application. A still further object of the present invention is to provide a Japanese emulator which supervises country identification information and permits the information to be returned to a Japanese application which expects it. To solve this object the present invention provides a computer system as specified in claim 1. According to the present invention, for example, a Japanese environment can be realized using a computer system based on an English OS without addition and modification of hardware. There is no need for worrying about compatibility with English applications because the Japanese environment can be realized without modification of the English OS. The users have only to install one OS, so that the burden of operations is reduced. The automatic switching between use and unuse of the emulator is permitted according to a screen mode requested by an application. An emulator can be realized which does not decrease a memory area for English application because the installation/release of the emulator can be performed easily or automatically and dynamically. It is easy to emulate a Japanese environment for PC/AT-compatible keyboards. Japanese kanji font patterns for display are provided using a standard expanded memory managed by an English OS. Further, outputs of Japanese application can be printed out by an English printer having no Japanese facility without need of a Japanese printer. The advantages of the present invention are as follows: (1) Environments for other languages (Japanese, etc.) can be realized without modification of hardware of PC/AT compatibles. (2) Compatibility with English applications is not lost because environments for other languages can be realized without modification of OS. The burden of installation is light because users have only to install one OS. (3) The installation/release of the emulator can be performed easily or automatically and dynamically and thus a memory area for English application is not decreased. (4) A screen mode of application permits to automatically decide which of English OS and Japanese emulator is operating. Both of English and Japanese applications can be executed by the Japanese emulator. (5) Outputs of Japanese application can be printed out by an English printer without the need of a Japanese printer. (6) Existing applications can be executed without any modification or with minimum modification because an existing application interface is maintained. (7) The keyboard of PC/AT compatibles can realize a Japanese environment easily by using a key which is never or seldom used by application as a kana key and a combination of the key and another key as a kanji conversion key. (8) Kanji font patterns can be stored using a standard expanded memory managed by the OS. This permits Kanji to be displayed easily without worrying about memory capacity. (9) Each of kanji font patterns is stored turned by 90 degrees beforehand in the printer emulator. Thus, the font patterns can be output at high speed without performing pattern conversion. (10) In response to a request for country identification information from a Japanese application the Japanese emulator returns information of "Japan" to the application in spite of use of an English DOS. Thereby, the Japanese application can run properly. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram illustrating the concept of utilization of a conventional English application; Fig. 2 is a block diagram illustrating the concept of utilization of a conventional Japanese application; Fig. 3 is a block diagram illustrating the whole concept of the present invention; Fig. 4 is a block diagram illustrating the concept in which an emulator of the present invention is incorporated into a computer to utilize Japanese applications; Fig. 5 is a flowchart illustrating the whole procedure for executing Japanese application using the present invention; Fig. 6 is a block diagram illustrating the basic configuration of the present invention; Fig. 7 illustrates the configuration of a Japanese emulator program of the present invention; Fig. 8 is a diagram illustrating a system configuration in which a Japanese emulator is loaded into a memory of a personal computer to which the present invention is applied and its associated peripheral devices; Fig. 9 is a diagram illustrating a state in which a Japanese emulator of the present invention is developed on a memory map; Fig. 10 is a flowchart of the operation for installing the Japanese emulator of the present invention into and releasing it from PC/AT compatibles; Fig. 11 is a flowchart illustrating the processing by the keyboard driver of the present invention for keyboard interrupt control; Fig. 12 is a flowchart for screen mode automatic decision processing by the display driver of the present invention; Fig. 13 is a flowchart for the Kanji font pattern acquisition processing by the display driver of the present invention; Fig. 14 is a flowchart for the processing by the printer emulator of the present invention; Fig. 15 illustrates a Kanji font pattern developed in an image buffer of the printer emulator of the present invention; and Fig. 16 illustrates the row printing control image buffer of the printer emulator of the present invention. Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. In the following description, Japanese is taken as an example of the second language. Referring now to Fig. 3, which illustrates the concept of the present invention, a BIOS 1 inherently performs input/output control for English processing. An OS2 manages system resources, such as hardware and software, as well as input/output devices connected to the system by utilizing BIOS 1. A Japanese environment driver 3 includes various types of drivers for Kanji display, Japanese entry (conversion to Kanji codes), Kanji printing, etc. A Japanese application 4 implements a function of processing Japanese documents (word processing). BIOS1, OS2, Japanese environment driver 3 and Japanese application 4 are stored in main storage 7. Kanji font information 5, which is Japanese character pattern information utilized for displaying Kanji, is stored in expanded storage 8. A Japanese emulator 6 is a system disk comprising a set of a Japanese environment driver, Kanji font information and a loader. The loader permits the Japanese environment driver 3 and the Kanji font information 5 to be loaded into main storage 7 and expanded storage 8. The above configuration will be detailed below. Fig. 4 is a block diagram in the case where a Japanese emulator is built into a PC/AT-compatible personal computer to utilize Japanese applications. That is, as is evident from the comparison of Fig. 4 with Figs. 1 and 2, the Japanese emulator of the present invention has a function of emulating parts of the Japanese BIOS and Japanese DOS. Fig. 5 is a flowchart illustrating the whole procedure of executing Japanese application using the present invention. After the activation of the system, a process of booting of the English DOS is first performed in step 10. Next, loading of the Japanese DOS emulator is executed in step 11. Subsequently, loading of the Japanese printer emulator is executed in step 13. Next, a desired Japanese application is executed in step 13. On termination of the execution of the Japanese application the Japanese printer emulator is unloaded in step 14 and then the Japanese DOS emulator is unloaded in step 15. On termination of the unloading of the Japanese DOS emulator the computer system returns to the English DOS mode. Fig. 6 illustrates the basic configuration of the present invention. Japanese emulator 21 of the present invention is loaded into and unloaded from a PC/AT-compatible personal computer 20 carrying an English DOS as its OS. A Japanese application 22 is executed on the PC/AT-compatible personal computer 20 by means of the Japanese emulator 21. Of course, the personal computer 20 can also execute English applications. Fig. 7 illustrates a program configuration of the Japanese emulator of the present invention. The Japanese emulator 21 includes a Japanese DOS emulator 211 and a Japanese printer emulator 215. Further, the Japanese DOS emulator 211 includes a buffer area 212 into which Japanese font patterns are read into, a display driver program (hereinafter referred to as display driver) 213 and a keyboard driver program (hereinafter referred to as keyboard driver) 214. Other programs will be described later. As an option, the Japanese emulator 21 may carry a Kana-to-Kanji conversion program 216. In the present embodiment, use is made of a Kana-to-Kanji conversion program known by the trade name "ATOK" from the Just System Company, which has widely been used with the Japanese DOS. Fig. 8 illustrates the configuration of a personal computer to which the present invention is applied and whose CPU memory is loaded with the emulator of the present invention and its associated input/output devices. The Japanese emulator 21 is equipped with a display driver 213 having a Japanese processing function, a keyboard driver 214, a printer driver 216, a communication driver 217, a timer driver 218, a Japanese expanded driver 219, a country identification information driver 220 and a printer emulator 215 for emulating a Japanese printer function on an English DOS 30 (logically they are "on" the DOS, but they are shown at the left of the DOS in Fig. 8), thereby realizing the Japanese environment. Reading, activating or stopping and releasing of the Japanese emulator 21 can be specified by an operation in a command accepting state when the English DOS is operating. For this reason, it is designed so as not to affect memory capacity and compatibility for English applications. The display driver 213 provides a screen mode which permits Japanese to be displayed on the display 31 and controls basic input/output operations for the display screen. Particularly, the display driver 213 supervises the screen mode so that an existing English application 32 can be executed even in the state in which the Japanese emulator 21 is resident in the memory. Thereby, the Japanese emulator 21 can be stopped in the screen mode for English application. The available memory area cannot be expanded only by stopping the Japanese emulator, but the memory area can be expanded by performing the above-mentioned release operation as needed. The Japanese Kanji font patterns are stored in the expanded memory 33. To display Kanji on the screen, an expanded memory manager 34, which operates with the English DOS standard EMS (Expanded Memory Specification) system, is used to obtain Kanji font patterns from the expanded memory 33. Thereby, font patterns can be obtained at high speed without reducing the memory capacity for the application 32. The interface between the application 32 and the display driver 213 is compatible with the existing Japanese application interface. The keyboard driver 214 manages hardware scan and character codes presented to the application 32 on the basis of scan codes generated from the keyboard 35. Physical difference between a Japanese keyboard and an English keyboard can be absorbed within the driver 214. The interface between the application 32 and the keyboard driver 214 is compatible with the existing Japanese application interface. The printer driver 216, the communication driver 217 and the timer driver 218 are driver programs for controlling a printer 36, a communication unit 37 and a timer 38, respectively. The interface between the application 32 and each of the drivers 216, 217 and 218 is compatible with the existing Japanese application. The Japanese expanded driver 219 is a driver for performing processing dedicated to the Japanese DOS and Japanese application 32 in particular and absorbs a portion derived from the difference in hardware, such as Kanji font information. The interface between the driver 219 and the application 32 is also compatible with the existing Japanese application interface. The country identification information driver 220 is responsive to country identification information from the Japanese application 32 to return country identification information on Japan, while the English DOS returns country identification information on a country such as United States of America. The interface between the application 32 and the driver 20 is compatible with the existing Japanese application. The printer emulator 215 performs emulation for replacing a request for Japanese printer made by the Japanese application 32 with a request to the printer 36. The emulator 215 enables the printer 36 having no Japanese facility to print Japanese characters without any modification of the Japanese application 32. An English ROM BIOS 300 performs basic input/output control on various types of peripheral devices 31 and 35 - 39 in the environment of the English DOS 30. The English ROM BIOS 300 has no Japanese processing facility. When the Japanese emulator 21 executes the emulation, a language-independent portion of the English ROM BIOS 300 operates. The expanded memory manager 34 provides control of the expanded memory 33 using a system known to those skilled in the art by the name of EMS. The Japanese emulator 21 reads Kanji font patterns stored in part of the expanded memory 33 utilizing this function. An auxiliary storage device 39 is used as external storage. The display 31 displays characters, graphs, etc. The keyboard 35 is used to enter characters, data, etc., into the computer. The printer 36 prints characters, graphs, etc. In the present embodiment this is an English printer with no Japanese font pattern ROM. The timer 38 generates interruptions regularly and is used for time management. The expanded memory 33 is managed by the expanded memory manager 34 and stores Japanese Kanji font patterns in the case of the Japanese emulator. The application 32 contains a Japanese application and an English application. Both of them are operable depending on whether or not the Japanese emulator is utilized. The English DOS 30 is an OS containing functions such as memory management, file system, etc., but it has no Japanese processing facility. Fig. 9 illustrates a state in which the Japanese emulator shown in Fig. 8 is further developed in the CPU memory map. When the Japanese emulator of the present invention is loaded into the main memory 40 of the CPU, the Japanese DOS emulator 211 and the Japanese printer emulator 213 are stored. The Kanji font patterns are stored in the EMS type expanded memory 33 managed by an expanded memory window 41. Next, the operation of the CPU executing the Japanese emulator of the present invention will be described in detail with reference to Fig. 4 through 14. (1) Loading and unloading of the Japanese emulator Fig. 10 is a flowchart illustrating processes of loading the Japanese emulator of the present invention into and unloading it from the main memory of a PC/AT-compatible machine. The loading or unloading of the Japanese emulator 21 can be specified in a command accepting state where the English DOS 30 is operative. First, a check is made, in step 50, as to whether or not a request is made for loading or releasing of the Japanese emulator 21. For the request for loading, a check is made in step 51 as to whether or not the Japanese emulator has been loaded. Where the Japanese emulator has already been loaded, an error message is presented to an operator in step 52. Where the emulator has not been loaded, on the other hand, the current screen mode is saved in work memory (not shown) in step 53. Next, Kanji font patterns are loaded into the expanded memory 33 in step 54. Next, interrupt vector information is saved in step 55. Also, DOS device driver information is saved in step 56. Subsequently, interrupt vectors for the Japanese BIOS emulator, the Japanese DOS emulator and the printer emulator are set in step 57 and a device driver is set in step 58. Finally, in order to execute the Japanese application, the display screen mode is changed to the Japanese mode in step 59 and the Japanese emulator is made to reside in the memory in step 60. For the request for unloading of the Japanese emulator 21, a check is first made in step 61 as to whether or not the emulator has already been loaded. Where it has not been loaded, an error message is presented to the operator in step 62. Where it has been loaded, interrupt vector information and DOS device driver information saved at the time of the loading of the emulator are restored in steps 63 and 64. Then, the expanded memory 33 is released and the memory occupied in step 60 are released in steps 65 and 66. Finally, the screen mode is returned to the mode prior to the loading of the emulator in step 67 and the process is terminated in step 68. The foregoing processes permits a Japanese emulator that can be loaded and unloaded to be realized. (2) Japanese BIOS emulator section The Japanese BIOS emulator section is a function which emulates the Japanese BIOS section in the Japanese DOS environment. In the following description, a description will be given of the features of the keyboard driver and the display driver realized by the present invention on the keyboard and the Kanji font ROM which need addition or modification in realizing the Japanese environment in PC/AT-compatible machines. As processing for other devices the Japanese BIOS processing can be used as it is. The Japanese BIOS has been built in Toshiba laptop computers J3100 Series for Japan and many other domestic personal computers and known to those skilled in the art. Thus, a description of the Japanese BIOS is omitted herein. 2-1 Keyboard driver The keyboard driver 214 stores a scan code generated from the keyboard 35 and a character code generated according to the current shift state in a keyboard buffer (not shown) and transfers the buffered code to the application 32 or the English DOS 30 as requested by the application 32 or the English DOS 30. The Japanese keyboard is equipped with a plurality of dedicated keys (for example, a Kana key, a Kanji conversion key, etc.) for reasons of direct entry of Kana characters and kana-to-Kanji and Roman-alphabet-to-Kanji conversion. On the other hand, PC/AT compatibles, having no dedicated keys, must emulate a kana key for switching kana shift states and a kanji conversion key for reading a kana-to-kanji conversion program on a keyboard that is not in existence physically. For this reason, the present invention emulates the two keys with keys that are present on the keyboard of the PC/AT compatibles and seldom or never used by any Japanese application. By way of example, the Scroll Lock key may be used to emulate the kana key. Simultaneous pressing of the Alt key and the Scroll Lock key may be used to emulate the kanji conversion key. Conversely, the Scroll Lock key may be used to emulate the kanji conversion key and the simultaneous pressing of the Alt key and the Scroll Lock key may be used to emulate the kana key. Fig. 11 is a flowchart for the emulation processing in the keyboard interrupt control. First, a check is made in step 70 as to whether or not a key generated by the keyboard is the Scroll Lock key. In the case of the Scroll Lock key, a check is next made for the presence of the Alt key shift state in step 71. In the case of the Alt key shift state where the Alt key and the Scroll Lock key are pressed simultaneously, in step 72, the scan code of the kanji conversion key defined by the Japanese BIOS is saved in the keyboard buffer (not shown) without using the scan code of the Scroll Lock key. Where it is not the Alt key shift state, on the other hand, only the Scroll Lock key is pressed and thus this state is regarded as the kana key, so that the kana shift state is reversed in step 72. When a key pressed is not the Scroll Lock key, the same processing as in the Japanese BIOS is performed in step 74, so that a suitable character code is stored in the keyboard buffer according to each shift state. The above operations are carried out repeatedly with each key entry. 2-2 Display driver The display driver 213 provides not only a function of displaying Japanese on the display 31 but also a function of rendering all the Japanese emulation on or off in response to a screen mode setting request from the application. The PC/AT compatibles have no kanji font ROM. In the present invention, therefore, in order to display kanji, the display driver 213 executes processes of managing kanji fonts stored in the expanded memory 33 via the expanded memory manager 34 and spreading them on the screen. 2-2-1 Changing from Japanese to English or from English to Japanese by switching between screen modes (automatic decision) Fig. 12 is a flowchart illustrating a screen mode automatic decision process of the display driver 213. First, a check is made in step 80 as to whether or not a request made to the display driver 213 is a screen mode setting request. In the case of the screen mode setting mode, in subsequent step 82, a check is made as to whether or not the request is made for setting the Japanese mode. In the case of the Japanese mode setting request, a check is next made in step 82 as to whether or not the current screen mode is the Japanese mode. When it is not the Japanese mode, the Japanese emulator is activated in step 83. Subsequently, the screen mode is set to the Japanese mode in step 84. When the request is not made for setting the Japanese mode, in other words, when the request is made for setting the English mode, a check is made in step 85 as to whether or not the current screen mode is the English mode. When the screen mode is not the English mode (i.e., when it is the Japanese mode), the Japanese emulator is stopped in step 86. At the time of the activating/stopping of the Japanese emulator, the setting/restoration of the interrupt vector and the setting/restoration of the DOS device driver described in connection with the loading/unloading of Fig. 10 are performed. That is, the Japanese emulator is activated or stopped automatically as it is resident in the memory 40. Of course, the emulator may be switched semi-automatically through the intervention of a simple operation for obtaining verification by the operator. This modification is easy. After the screen mode has been changed to the English mode, only the screen mode automatic decision process is operative. For requests other than the mode setting request, a check is made in step 87 as to whether or not the current mode is the Japanese mode. In the case of the Japanese mode, a process corresponding to the Japanese BIOS is performed in step 88. In the case of the English mode, on the other hand, the process prior to loading of the Japanese emulator is executed in step 89. Fig. 12 illustrates the method of switching between activation and stop of the emulator in response to a screen mode setting request made by an application. Alternatively, the emulator may also be switched in such a way that it is activated in response to the Japanese screen mode setting request made by an application and stopped in response to termination of the requesting application. Further, the emulator may be controlled in such a way that it is stopped in response to a request for a screen mode other than Japanese mode made by an application and activated in response to termination of the requesting application. If the reading into the memory and releasing thereof described in connection with Fig. 10 are performed simultaneously with the setting and restoring of the interrupt vector and the DOS device driver, the loading and unloading of the emulator will be performed automatically and dynamically. It is also easy to perform the loading and unloading of the emulator semi-automatically through the intervention of a simple operation for obtaining operator verification. 2-2-2 Kanji font pattern processing The display driver 213 has a function of displaying kanji on the display screen, while PC/At compatibles have no kanji ROM. Thus, there is a need for some method of acquiring kanji font patterns and spreading them on the screen. With Toshiba J3100 Series PCs, a separate kanji font ROM is so prepared that an area of the memory 40 is not occupied by kanji font patterns. The kanji font ROM is separated into 16 banks in 64 KB units. The ROM is controlled such that one of the 16 banks looks from the addressing facility of the memory 40 as if it were copied into a 64-KB fixed address area that is a part of the memory 40. For example, where the OS or application wants to use a font pattern included in the third bank of the 16 banks, an instruction to write information of 3 into an arbitrary address in the 64-KB fixed address area is executed. By this operation hardware control is performed as if the third bank were copied into the 64-KB fixed address area. Thus, the OS or application can use an instruction to read information from the 64 K bytes to obtain a desired font pattern. It is required to pay attention to the fact that the write instruction is executed in the neighborhood of the font patterns because of such a configuration. When the font patterns are stored in a ROM, there is no ground for anxiety because the ROM cannot be written into. In the emulator, etc., where the font patterns are stored in any other place than the ROM, there is a fear that write instructions will destroy the font patterns. Where the OS or application needs font patterns, a specific command defined by the OS is usually issued to execute deduction. That is, an interruption is generated from a hardware standpoint and an interruption handling program examines attendant information to learn that it is a request for font pattern and transfers control to a program for reading font patterns. The font pattern reading program advances processing using such a procedure as described above. However, the application may uncommonly advance processing using the above procedure instead of execution of deduction using a specific command as described above, rendering the way of making the emulator difficult. In the present invention, font patterns are stored in the expanded memory 33 which is also called the EMS memory. The expanded memory 33 is a memory area open to the OS and applications. In addition to the font patterns, programs and data related to the OS and applications may be stored in the expanded memory. The expanded memory 33 comprises a plurality of banks in 16-K units. The expanded memory addressing is performed using a bank number, or a page number and an offset representing an address in a bank. In response to the expanded memory addressing, the expanded memory manager 34 writes into and reads from a specific address in the expanded memory. For example, when a page number of 3 is designated, hardware control is performed as if the third bank of the expanded memory were copied into a specific address area of 16 K bytes, or the EMS window 41 in the memory 40. When an instruction to write into or read from a specific address of the EMS window 41 designated by an offset, writing into or reading from the offset address of the bank of the expanded memory 33 is performed actually. The control system of the font pattern ROM and the expanded memory described in the above three paragraphs is the basic technique that the present invention employs, but it does not constitute a newly devised part of the present invention and well known to those skilled in the art. In the present invention, font patterns are stored in 64 K bytes of each of the banks of the expanded memory 33. Fig. 13 is a flowchart for the font pattern acquiring process. As a result of deduction of the font pattern reading request as described above, the font pattern acquiring process of Fig. 13 starts. First, in step 90, information about control of the expanded memory such as the number of a bank used so far is saved in a specific address of the memory 40. In subsequent step 91, a bank containing a desired font pattern is page-designated so that it is visible to the EMS window 41. In subsequent step 92, 16-KB font pattern information visible to the EMS window is copied into the buffer area 212 for Japanese font patterns prepared in the Japanese DOS emulator 211. The reason for using the font pattern information after being copied into the buffer 212 as described above without using it as it is visible to the EMS window is that there is a possibility that a write instruction is executed in the neighborhood of the font and, when the write instruction is issued to the EMS window 41, the font stored in the expanded memory 33 is destroyed permanently. Even if, depending on applications, the temporal destruction of the contents of the buffer 212 may occur uncommonly, fonts stored in the expanded memory 33 are never subjected to destruction. In subsequent step 93, preparations are made for restoration of the expanded memory control information saved in step 90 and continuation of processing inclusive of the use of the expanded memory after return to the state and the program prior to the font pattern read command. By executing the processing shown in Fig. 13 repeatedly on a character-by-character basis, more than one font pattern is read in sequence. By the above processing, font patterns can be acquired without preventing the application from using the expanded memory. If the memory 40 has enough space, the Japanese emulator is permitted to have the font pattern cache facility to thereby reduce access to the expanded memory. (3) Outputting of country identification information The MS-DOS, the OS used in the embodiment of the present invention, has a function of informing an application of a country where the MS-DOS is to be used by returning a telephone country code from the MS-DOS to the application when the application issues a specific command. For example, "1" is returned in the case of the English MS-DOS for U.S.A., while "81" is returned in the case of the Japanese MS-DOS for Japan. More specifically, the above-mentioned specific command executes deduction and generates an interruption from a hardware standpoint. The interruption handling program checks additional information and sees that it is the country identification information requesting command. The program then reads country identification information and returns it to the application. Some of applications run after checking the country identification information. Some of applications include a function of using "$" and "¥" properly utilizing country identification information. The foregoing points constitute the basic technique that the present invention employs but not a newly devised part of the present invention. They are well known to those skilled in the art. The embodiment of the present invention employs applications prepared for the Japanese MS-DOS with the English MS-DOS. The emulator requires a function of returning the country identification information "81" in spite of the English MS-DOS. For this reason, the above-mentioned interruption causes the Japanese emulator 21 to operate when the Japanese emulator is operative. The Japanese emulator 21 checks attendant information and, when it is decided that the information is a country identification requesting command, the country identification driver 220 operates so as to return "81" to the application. (4) Printer emulator The printer emulator 215 supervises a request to the Japanese printer output from the application 32 and performs a process of converting the output to a request to the printer 36. Fig. 14 is a flowchart illustrating the operation of the printer emulator. First, the printer emulator acquires data sent out from the application 32 in step 100. Next, a check is made in step 102 as to whether or not the data is a control code indicating the start of a command. When the data is not a control code, a check is made as to whether or not the current mode is the kanji mode, in step 102. When it is the kanji mode, second data needed for kanji is acquired in step 103. A kanji font pattern is acquired from the kanji code in step 104 and then saved in the image buffer in step 105. When it is not the kanji mode, on the other hand, the data represents a character code that can be printed. That is, this is a case where half-size alpha-numeric characters are printed by the printer 36. When image data is saved, the image is output in step 106 and then a character code is output in step 107. When it is decided in step 101 that data is a control code, a check is made in step 108 as to whether or not the command is a print start command. In the case of the print start command, an image is output in step 109 if it is saved and then the print start command is output in step 110. When the command is not the print start command, on the other hand, internal processing, such as command conversion and kanji mode ON/OFF, is performed in step 111. After the set of operations, return is made to step 100 and then a process of acquiring next data is carried out. In the image buffer of the printer emulator 215, a kanji font pattern is stored turned by 90 degrees in advance as shown in Fig. 15. Thus, pattern conversion does not need to be performed in reading a font pattern and the font pattern can be printed out easily. That is, where a font pattern composed of 24 × 24 dots (72 bytes) is stored in the same direction as a display font pattern, the font pattern needs to be converted to an output image of the printer 36. This is due to the fact that the scan direction of the display is horizontal, while the print direction of the printer is vertical. Thus, by storing font data as an output image in the vertical direction beforehand, printing can be performed without the pattern conversion process. When a kanji font pattern received as an image is printed by the English printer 36, there is a possibility that part of the rightmost character is not printed. In the usual character print mode in which a character code is sent to a printer and converted to a font within the printer, a character overflowing one line to the right is fed to the next line. However, in the case where fonts are prepared by a computer and print patterns are sent to a printer, half of the right-most character may not be printed even if automatic line feed is performed. For this reason, the printer emulator 215 calculates a maximum number of characters per line and a character spacing and performs such control as to print characters on the next line when the maximum number of characters per line is exceeded. Fig. 16 illustrates the storage state of the image buffer where up to 40 characters are printed at regular intervals by a printer having a maximum print width per line of 3840 bytes. In this example, one line is composed of (72 + 24) × 40 = 3840 bytes with a character spacing of 24 bytes. When the character spacing cannot be set equally, quasi-equal spacing or adjustment of the rightmost space may be used. The printer is put into operation after character fonts have been embedded in the image buffer, thus preventing the rightmost character from being printed partially. Though, in the embodiment of the present invention, the English DOS was taken as an example of the OS, the present invention may be applied to other OSs than the DOS, such as Windows, OS/2, etc., which have the DOS emulator facility. Moreover, though Japanese application software was taken as an example of application software, application software for other languages such as Chinese, Korean, etc. Furthermore, the hardware need not be limited to PC/AT compatibles. With the development of the PC/AT compatibles, a new application interface including higher resolution image mode support may be defined. In this case, the application must be revised to fit the new interface. In the above embodiment, description was given of an example in which an emulator was built in English-oriented hardware having no facility useful in handling Japanese. The purpose is to explain that the present invention can be carried out even by hardware with no Japanese facility. It does not mean that the present invention cannot be carried out by hardware having a Japanese facility. The present invention will be carried out more efficiently in the presence of a Japanese facility. This will be described below. The description of Figs. 3 through 11 and Fig. 12 can also be applied to hardware having a Japanese facility substantially as it is. If a keyboard is equipped with keys unique to entry of Japanese, such as kana conversion and kanji conversion keys, then such a configuration as shown in Fig. 11 will become unnecessary. If keys are marked Japanese, not only Roman alphabet entry but also kana entry is permitted. If Japanese character pattern information is prepared in a dedicated memory, the pattern information can directly be read from an emulator without the provision of the configuration of Fig. 13. If a Japanese printer is prepared which contains Japanese character pattern information, the configurations of Figs. 14 through 16 are unnecessary. That is, if hardware having a Japanese facility is prepared, some configurations of the present invention become unnecessary, permitting higher performance processing. This does not change the essence of the present invention. By the configurations shown in Figs. 3 through 12, an emulator and means for operating or stopping the emulator, a computer system can be realized which permits English application software and Japanese application software to be operated using one computer, one input/output device and one English OS.

Claims: A computer system having a computer (20), a memory device (40, 33) and input and output units including a keyboard (35), and a display unit (31), and capable of executing an English operating system (OS) for processing English which is on the market, an English application software which is on the market in an object form linked with the English OS, a Japanese OS for processing Japanese which is on the market, and a Japanese application software which is on the market in an object form linked with the Japanese OS, comprising: an English basic input/output control program (300) linked with the English OS, the computer, and the input and output units in order to execute the English application software of the object form; and an emulator linked with the Japanese application software, the English basic input/output control program, and the English OS in order to execute the Japanese application software of the object form; characterized in that activating and ceasing means activate or cease the emulator; the emulator includes Japanese character pattern data, a display driver program (213) for displaying the Japanese character pattern data on the display unit, and a keyboard driver program (214) for converting input data from the keyboard into Japanese character data, the Japanese character pattern data, the display driver program, and the keyboard driver program being stored in the memory device; and said computer comprises first means (21) responsive to input information from the keyboard for controlling the keyboard driver program; second means (21) responsive to Japanese character information output from the keyboard driver program for controlling the Japanese application program; third means (21) responsive to a display command output from the Japanese application software for controlling the display driver program; and fourth means (34, 213, 31) responsive to a Japanese character output from the display driver program for reading the Japanese character pattern information from the memory device and displaying it on the display unit; whereby both the English application software and the Japanese application software are executable by utilizing the identical computer, input and output units, and the English OS. A computer system according to claim 1, characterized in that the keyboard driver program is instructed to perform kana conversion or kanji conversion by using a key that is never or seldom used by any Japanese application software or a combination of the key and another key. A computer system according to claim 1 or 2, comprising an English printer having no Japanese facility,characterized in that said emulator further includes a printer emulator for printing output of the Japanese application software by using the English printer, the printer emulator being stored in the memory device; and said computer further comprises fifth means (34, 215) responsive to Japanese character information for referring to Japanese character pattern information for printing; sixth means (34, 215) for coupling the Japanese character information selectively to form print pattern information; and seventh means (216, 36) for printing the pattern information by the English printer having no Japanese facility to thereby print Japanese characters. A computer system according to claim 3,characterized in that the print Japanese character pattern information is stored turned by 90 degrees in a memory device and many forms obtained by vertically slicing a character pattern included in the same address of a memory device. A computer system according to claim 3, characterized in that the printer emulator includes an image buffer (40, Fig. 14) corresponding to a maximum print width and sends information stored in the image buffer to the printer to thereby print it after writing Japanese character pattern information into the image buffer at substantially regular intervals. A computer system according to claim 1, characterized in that said emulator comprises a printer driver program (216) having a process for printing Japanese character information output from the Japanese application software by a printer having no Japanese facility. A computer system according to claim 1, characterized in that the memory device comprises a main memory section (40) used on a usual addressing basis and an expanded memory section (33) used on an expanded addressing basis under the control of the first-language OS, the second-language character pattern information is stored in the expanded memory section, a part of the expanded memory section including character pattern information used, can be read as a part (41) of the address range of the main memory section by designation, and the character pattern information used is further copied into a separate address area of the main memory section for use. A computer system according to claim 1, characterized in that a supervising section of the emulator is responsive to a sreen mode setting request made by application software to determine whether the application software is the first-language application software or the second-language application software and stops the operation of the emulator when the application software if the first-language software and activates the emulator when the application software is the second-language software, the stopping and activating of the emulator being performed automatically or semi-automatically. A computer system according to claim 8, characterized in that the supervising section of the emulator detects a screen mode setting request unique to the second language made by the second-language application software to activate the emulator and detects the end of the application software to stop the emulator, the activating and stopping of the emulator being performed automatically or semi-automatically. A computer system according to claim 8, characterized in that the supervising section of the emulator detects a screen mode setting request unique to the first language made by the first-language application software to stop the emulator and detects the end of the application software to activate the emulator, the activating and stopping of the emulator being performed automatically or semi-automatically. A computer system according to claim 1, characterized in that reading of the emultaor into the memory device (40, 33) or activating of the emulator is performed by a directive operation in a command accepting state of the first-language OS. A computer system according to claim 1, characterized in that ceasing of the emulator or unloading of the emulator from the memory device (40, 33) is performed by a directive operation in a command accepting state of the first-language OS. A computer system according to claim 1, characterized in that by writing a start address to start the keyboard driver program of the emulator into an interrupt vector address of the memory device (40, 33), a check is made always as to whether keyboard entry having a specific meaning is present or not while the emulator is operative. A computer system according to claim 1, characterized in that when the emulator is activated, information on a screen mode used so far or an interrupt vector is saved and stored from a specific address of the memory device, and when the emulator is ceased, the saved information is restored in the specific address. A computer system according to claim 1, characterized in that the emulator further comprises a country identification driver program (220), and the country identification information driver program is responsive to a country identification information requesting command made by the application software to send country identification information related to the second language to the application software. A computer system according to claim 15, characterized in that the country identification information is a telephone country code.

Inventors: GODA SATOSHI, KASUYA HIDEO, KATO HIROSHI, WADA MASAMICHI, GODA, SATOSHI, KASUYA, HIDEO, KATO, HIROSHI, WADA, MASAMICHI, Goda, Satoshi, c/o Intellectual Property Div., Kasuya, Hideo, c/o Intellectual Property Div., Kato, Hiroshi, c/o Intellectual Property Div., Wada, Masamichi, c/o Intellectual Property Div.
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1991
Main classification: G06F9
IPC codes: G06F17, G06F9