4 - USING A PRINTER
If you want to print Arabic text that is generated by an Arabic BASIC pro- gram, please read the following carefully. Four different modes of prin- ting are available and these modes are selected by the last parameter of the SCREEN statement. This parameter can take the value 0,1,2 or 3. You may change this parameter without changing the other parameters of the SCREEN statement by writing four commas at the left of the para-
meter.
- SCREEN,,,,0 (The Default Setting: Standard MSX Printer)
This command will assume that a standard Japanese or English MSX printer is connected. English characters are printed normally while Arabic characters are printed in graphics mode. CCA is done automati- cally if RECON is in action. Since the first character of an Arabic string has to be printed to the farthest righthand position, Arabic characters are stored in a buffer in VRAM then sent to the printer starting from the last character. In this way, Arabic strings will look on the printer.
The default number of characters per line on the printer is set to 80 but this can be modified by poking the new value at RAM address F418H. e.g. POKE&HF418,40
- SCREEN,,,,1 (Arabic MSX Printer)
This command assumes that a customized Arabic MSX Printer is con- nected. Hence there is no need to print Arabic characters in graphics mode and they are sent as patterns directly to the printer which has the patterns in ROM. CCA and buffer inversion are done as in the previous option.
- SCREEN,,,,2 (Arabic Printer)
This command assumes that an ordinary 7 bits code printer is connec- ted. No CCA is done on Arabic characters because the printer is a stan- dard Arabic printer that has this capability.
- SCREEN,,,,3
In this mode, codes are sent to the printer without any modification. This mode should be set for printing a hard copy where the code has no logi- cal meaning but is just a physical distribution of the dots to be plotted.
39
ص١٣٤