ATARI XL ADDENDUM _ATARI HOME COMPUTER SYSTEM . OPERATING SYSTEM MANUAL Supplement to ATARI 400/800” Technical Reference Notes _ TABLE OF CONTENTS LO 2.0 3.0 40 5.0 6.0 INTRODUCTION APPLICABLE DOCUMENTS HOW THE 120OXL COMPARES TO THE A400/800 31 The Help Key 32 What the Function Keys Do Cursor Left Cursor Right Cursor Up Cursor Down Home Cursor Cursor to Lower Left Comer Cursor to Beginning of Physical Line Cursor to End of Physical Line Keyboard Enable /Disable Screen DMA Enable/Disable Key-Click Enable/Disable Domestic/Intemational Char. Set Select 33 Key Redefinition Contents of the Key Redefinition Table Reassignment of the function keys only Non-reassignable Keys and combinations 34 User-Alterable Keyboard Auto-Repeat Rate 3.5 Caps/Lowr Key Toggle Action 3.6 LED Initialization 3.7 Power-On Self-Test 38 Option Jumpers 3.9 Additional Hardware Screen Modes 310 Text Screen Fine Scrolling 311 Disk Communications Enhancements 312 Power-On Display Enhancement 313 Deleted Features MEMORY MAP OF THE I200XL ENHANCEMENTS TO THE A4OO/800 REV, B OPERATING SYSTEM INCORPORATED IN THE 120OXL Peripheral Handler Additions General Improvemenis OTHER CHANGES/GENERAL INFORMATION Improved Handling of OS Database Variables NTSC/PAL Timing Provisions LOOXL OS ROM Identification and Checksum APPENDIX A — An Example of Keyboard Reassign- ment APPENDIX B — Suggestions for the Construction of a ; New Character Set for the New Graphics Modes 12-1, and details of memory use and data interpretation for modes 12-15. APPENDIX C — OS DataBase Changes trom REV.B to 1200 a LO INTRODUCTION This: manual is designed to serve as a supplement to the ATARI 400™ and ATARI 8OO™ OPERATING SYSTEM MANUAL. The I2ZOOXL, as shown in sections 3-5, is a technical upgrade of the A800. The operating system for the 12OOXL has been written to maintain, as much as possi: ble, compatibility with application programms which have already been developed for the A400/800. | Since the basic hardware which controls the user interface and the display is, for the most part, compatible with the earlier designs, the operating system, ex- cept for the enhancements or changes described here, has remained largely the same, Therefore the data contained in the OS manual for the A400/800 is still valid. This manual has been written to provide the user with data regarding usage of the added features of the 12OOXL operating system, with some details about the characteristics of the peripheral devices with which it will operate. Program- mers or peripheral developers who require a greater level of detail regarding the handling of peripheral devices should refer to the documents referenced in item 2 of section 2 below. | | 2.0 APPLICABLE DOCUMENTS L ATARI Home Computer Operating Systems Manual. Describes the OS for the A400 and A800, which ts the basis for the enhance- ments described in this manual. . . ; 2. ATARI Home Computer Hardware. Manual and 1200XL Supplement The Hardware Manual covers the hardware registers which control the various tunctions of the A400 and A8Oo, The supplement to the hardware manual covers the added features for control of the LOOXL Home Compu- ter, Details that are appropriate to the OS handling of such hardware registers are contained in this OS manual. The user who has need for other hardware-related data should refer to the hardware manual for more information. 3. DERE,ATARI _4 This document provides-the user with an introduction to the effective use of the ATARI Home Computer hardware. Although written to cover the A400 /800, the data contained therein is valid for the ZOOXL as well 3.0 HOW THE 1200XL COMPARES TO THE A400/800 The following Is a list of the features and functions which will be discussed in this chapter, Each will be explained in a separate section.. In this chapter, you will leam about: L The HELP Key tr 2. The Function Keys 3. How key codes are redefined and which ones cannot be redefined 4. How to alter the key repeat rate 5. The action of the Caps/Lowr Key 6. How the OS initializes the LED’s on the keyboard | 7. Whathappens when a catiridge is installed or removed 8. What happens during power-on self-test | 9. What the option jumper assignments mean 10. What new screen modes the l2OOXL can use How to enable fine scrolling of the text screen 12. How the disk handler has been changed for improved operation 13. What kind of display is now produced at power up 14. What features have been deleted as compared to the A400 cr A800 Each of the items enumerated above corresponds to the paragraph number in this section which follows. For example, item | above is covered in paragraph 3.1L item 2 in paragraph 32 and so forth. om 3.1 The HELP Key The operating system, while watching the keyboard, will recognize the pressing ot the HELP key as a request to set a flag in the OS database. This flag can be read by whichever application program is in control at the time and react : accordingly. ~The OS treats the help flag in the same way as the BREAK key in that no ATASCI - code is produced but a database variable is set. Therefore, if your program. is ox~ pecting the HELP key to be pressed, you must not only read the keyboard FIFO (hex location O2FC) for incoming ATASCI codes other than Help, but also occa- sionally check (“poll”) the contents of the HELPFG (help flag) database variable to see it Help was requested. After reading the database location, and deciding what to do, you must “clear” +t for the next time the key will be pressed. The OS does not clear it for you. The Help Flag is cleared. by storing a zero in its database variable. The location of this variable is $O2DC. The conditions to which it responds are _ sted below, along with the codes which will be stored in HELPFG: Hex value Condition represented ee) The Help flag is cleared. This flag is cleared at int- tial power-up reset and subsequently, if set, must be - cleared by the application program. iu HELP key alone was pressed. . 51 SHIFT-HELP key combination was pressed. 91 CTRL-HELP key combination was pressed. The HELP key can be used during the power-on display and during the self test feature. See those sections for more information. Oe 3.2. What The FUNCTION Keys Do NOTE: This section only applies to XL computers with function keys. The I2OOXL is provided with a set of four function keys. You may redefine the ATASCH values which these keys produce. if you desire. As a matter of fact, the entire keyboard ATASCI output may be redetined as will be seen later. This sec- tion shows the normal detinition of the Fl-F4 keys, their functions and the ATASCIT codes which they produce (if any) as a result of the power-on reset assignment. All values in the table below are given in hexadecimal , FUNCTION KEY ASSIGNMENT SUMMARY Key If pressed alone Fl Produces the Cursor-up function, retums ATASCI1C - F2 Produces the Cursor-down function, returns ATASCT 1D F3 Produces the Cursor-lett function, returns ATASCT 1E F4 Produces the Cursor-right function, returns ATASCT IF Key If pressed with SHIFT Fl See HOME CURSOR below F2 © See CURSOR TO LOWER LEFT CORNER below F3 See CURSOR TO BEGINNING OF PHYSICAL LINE below F4 See CURSOR TO FAR RIGHT OF PHYSICAL LINE below Key If pressed with CTRL Fl See KEYBOARD ENABLE/DISABLE below F2 See SCREEN DMA ENABLE/DISABLE below F3 See KEY-CLICK ENABLE/DISABLE below F4 See DOMESTIC /INTERNATIONAL CHARACTER SET below Key If pressed with CTRL and SHIFT Fl Ignored F2 Ignored F3 Ignored F4 Ignored HOME CURSOR FUNCTION SHIFT-Fl ccruses the cursor to move to the home position of the screen as well as producing the default ATASCI code IC. The default function is reassignable. . CURSOR TO LOWER LEFT CORNER SHIFT-F2 causes the cursor to move to the lower left comer of the screen as well as producing the default ATASCI code ID. The default function is reassignable. oo, CURSOR TO BEGINNING OF PHYSICAL LINE SHIFT-F3 causes the cursor to move to the far lett of the physical line on which it is located (note, not the logical line which, in the screen editor, could be as many as 3 physical lines), This function is performed by the screen editor as well. as. generating the default ATASCI code IE. The default function is reassignable. CURSOR TO FAR RIGHT WITHIN PHYSICAL LINE SHIFT-F4 causes the cursor to move to the tar right side of the physical line on which it is located. This function is performed by the screen editor as well as generating the default ATASCI code IF. The default function is reassignable. KEYBOARD ENABLE/DISABLE CTRL-Fl controls the keyboard enable/ disable function. It produces no ATASCI code. This key combination affects the operating system handling of the key- board and is not reassignable. CTRLFi disables and re-enables all keyboard functions except for the following: RESET is the 6502 RESET key, and cannot be disabled OPTION START SELECT keys are not controlled by the operating system | Each time you press CTRL-FL the operating system changes the enabled/dis- abled status to the opposite of what it was when you pressed this combination. In other words, if the OS had disabled the keyboard, LED | would be on. If, at that time, you press CTRL-FL the OS would re-enable the keyboard and tum LED | off. The second press of this combination would reverse the process, disabling the keyboard again. You may monitor or control the keyboard enable or disable function under sott- ware control by reading or writing the OS database variable called KEYDIS (hex location O26D). A value ot O in this location means the keyboard is enabled, and a value of hex FF here means the keyboard is disabled. SCREEN DMA ENABLE/DISABLE CTRL-F2 controls the Screen Enable/Disable Direct Memory Access (DMA). It pro- duces no ATASCI code. This key combination attects the operating system handling of the display function. This key combination is not Teassignable. " The 2OOXL on power-up, always enables the screen DMA. What this means is that the system will always initialize itself to display anything which has been defined for the screen display during power up. This same screen DMA enable will also occur if you touch any keyboard key other than the CTRL- F2 combination. Various types of programs which you wite may be heavily involved in amith- metic computations. To speed up the processing in the A400 or A800, you may disable the screen DMA. When it is disabled, the ANTIC processor does not steal memory cycles trom the 6502 to get its data for the screen. Therefore during dis- able mode, the screen remains blank. When it is enabled, the full display which you have defined is visible; however, the processor is slowed down by any- where fromm 10 to 40 percent as explained in the section on ANTIC DMA in the Atarl Hardware Manual On the 12ZOOXL, to start the higher speed/ no display function, press the CTRL-F2 key combination. The display will go blank. To restore the display again at any time, you can press any other key. During your arithmetic calculations, you may be in continuous process of up- dating the memory area where the display data is conicined. You can then get a status of the operation in process at any time simply by pressing any key other than CTRL-F2, then again press CTRL-F2 to re-enter the higher speed mode. Your program, then, on completion of the calculation, could exercise direct pro- gram control over the ANTIC DMA variable to restore the display when the arithmetic intensive part is over. The DMA control database variable SMDCTL contains status bits for displary list memory access as well as player missile data access. When the combination CTRL-F2 is pressed, the OS will save this value, cif it is not already zero) in data- base variable location DMASAVSO2DD). Then the variable SMDCTL will be set to zero. When the combination is pressed again, the original value is restored to SMDCTL from DMASAV thereby restoring the display. Your program could per- form the same- Pprocess.. KEY-CLICK ENABLE /DISABLE CTRL-F3 controls the Key-Click enable/disable function. If pressed once, it dis- ables the audible feedback on keystrokes, Pressed again reenabies it. This func: tion only attects an OS detabase veriable. ‘and produces no ATASCI code. It is not reassignable. You may control the key click enable/disable. trom your program. All that needs to be done is to change the same flag which the operating system uses to indicate whether a key click is required. This flag is called NOCLIK. It is one of the OS database variables, contained at location SO2DB. On power up and reset, the operating system initializes this variable to a value of OO, meaning that key. click is enabled. This location, when it contains the value SFF, indicates that no key click is desired. The key combination CTRL-F3 toggles it between the values OO and FF. DOMESTIC/INTERNATIONAL CHARACTER SELECTION CTRL-F4 controls the domestic/interational character selection Default is domestic. It affects an OS database variable only and produces no ATASCI code. It is not reassignable. It toggles the display of character sets, changing between the two each time the key combination is pressed. When the intemna- tional character set is selected, LED number 2 will be lit. The international version of the character set is located in the ROM beginning at location $CCOO You can cause the intemmational character set to be selected by storing the constant SCC to location SO2F4, This is the location CHBAS., The nor- mal character set is located in the ROM starting at SEOOO. If a program stores SEO to CHBAS, it selects the display of the normal characters. If you have defined your own character set, however, pressing CTRL-F4 will display the intemational character set. This is because the operating system will test CHBAS and find that the value SCC is not there. Therefore SCC must be the next value which is to be used (selects int'l set). When it tests CHBAS and finds SCC stored there, it knows that SEO is the next value to use during the toggle between character sets. Two variables are used to control the character set selection: CHBAS (O2F4) and CHSALT (O26B). The Screen Editor CE.) and the Display Handler (S;) initialize vari- ables CHBAS and CHSAIT at every OPEN command which you issue to either one. CHBAS is initidlized to a value of hex EO and CHSALT is initialized to a value ot] hex, ‘CC. When you-press CTRL-F4 the 5 operating system swaps the values of CHBAS and CHSALT using the OS variable TEMP as the temporary holding point. Once it completes the swap, if CHBAS is equal to CC, it will light LED 2, indicating that the international character set is selected. 3.3 KEY REDEFINITION You may redefine most of the L2ZOOXL console keys if desired. The redefinition process consists of setting up a pair of tables which can be referenced by the operating system when it translates your keystroke into an ATASCI value. The two tables are the KEY Definition Table and the Function Key Definition Table. The operating system has a pair of data tables from which the normal detinitions are made. You may define your own set of tables however, then simply tell the operating systen where they are located in memory. One such use of key redefinition might be to experiment with other, possibly more efficient keyboard layouts, such as perhaps the Dvorak keyboard. An ex- ample is given in Appendix A of a keyboard redefinition to allow you to do such an experiment (Over the years, the QWERTY key Iayout has been the ac- cepted standard, though many people have found DVORAK to be more effi- cient. This would allow you to try it for yourself) CONTENTS OF THE KEY DEFINITION TABLE This table allows most of the keys of the I2ZOOXL to generate any desired ATASCI code or special internal function. The exceptions to this are listed at the end of this section. To redetine the keys, it is necessary first to define an area in memory where a 192 byte table may be stored = Into this table, you will store the definitions of the-keys which you desire. Later you will tell the operating system where this table is located so that future _ teterences may be made to it instead of the standard definition table. . The organization of this table is as follows: Lower case convert KEYTABLE — START (Starts at user defined Group of 64 bytes address) Table of lower case conversions hift . Grow Piet betes Table of uppercase conversions CTRL plus key Group of 64 bytes Table of control key conversions KEYTABLE — START + 191 The reason that each of the subdivisions of the table has 64 bytes in it is that the hardware can generate a total of 64 hardware keycodes. These codes, num- bered 00-43 decimal (OO-3F hexadecimal) are used to index directly into one ot the three keycode tables. Which table is referenced depends on whether the CTRL or SHIFT keys is pressed. Note that there is no table for the combination of both CTRL and SHIFT. This com- bination is invalid and is ignored by the operating system. : Each of the three 64 byte subsections of the table has the form: OO code Byte © contains conversion tor key code OO for key alone, key with CTRL or key plus SHIFT. Depends on which table is accessed per which keys pressed. Ol-code — Byte 1 contains conversion for key code Ol bof 3F code Byte 3F contains conversion for key code 3F The codes which you place in your table will either generate an ATASCI code (for direct character translation) or they will tell the system to perform a specific function. Specitically any code in the range of 80 to 91 hexadecimal will be treated as special by the system. This is illustrated in the table below. CODES AND THEIR EFFECT ON THE SYSTEM AFTER TRANSLATION CODE EFFECT (if any) OO thru 7F Used as the ATASCI code only. 92 thru FF Used as the ATASCT code only. 80 Ignore, invalid key combination. 81 Invert the video output to the screen. 82 Alpha lock/Lower case toggle. ~ 83 Alpha lock 84 Control Lock 85 End of file 86 ATASCI code 87 ATASCT code . 88 ATASCI code 89 Key click on/off 8A Function | * 8B Function 2 * 8C Function 3 * 8D Function 4 * * NOTE: When it sees these keycode translations, it is told to DO the function which is described in the Function Key descriptions. The ATASCI coded gene- ration for the normal and shifted function keys is handled in a different table, whose description follows that for the keycode hardware translate table. 8E Cursor to home 8F Cursor to bottom 90 Cursor to the left margin 91 Cursor to the nght margin The table below shows the key cap corresponding to each key code. The physical position of each key switch within the table determines the hardware code which it will generate. To determine what code it is, take the row address of the cap, and add it to the column address. The result is the hexadecimal value returned to the operating system (Tange OO-3F) for use in the table lookup for that key. 10 STI, a fe FPR, ‘ ., KEYCODE DEFINITIONS TABLE ‘e} 1 2 3 4 5 6 ole) L J i Fl |. F2 K o8 e) Pp U -| RET I ~ = 10 Vv HLP C F3 F4..| B x Z 18 4 3 6 ESC 5 2 l 20 ' SPACE ; N M / jl¢ 28 R E 4 TAB T W a 30 9 e) 7 |BACKS| 8 38 F H D CAPS | G. S A As an example the key cap “C” is in the table in row 10, column 2. This means that the hardware generates a hardware code 10 + 2orl2 hexadecimal There- fore, in the translation tables shown above, the function code or ATASCI code for this character will be stored in the key definition table position $12 for each of the three types of “C” which are valid (c alone, Shitted C, or Control C). You may - cause each of these to perform a separate function or generaie a separate ATASCI code by revising the tables. When you have decided on how you want your keys to be redefined , you tell the operating system where it may tind the definitions by storing the address of those definitions in locations 79 and 7A hexadecimal The low byte of the hex- adecimal address where you have stored the keys should be placed in loca- tion 79, the high byte ts location 7A. This is defined as one of the systern vectors, called KEYDEE It will point to the default, or original key definition table at: power-on reset time. ll REASSIGNMENT OF THE FUNCTION KEYS ONLY There may be times when you only want to redefine the function keys and not redetine the rest of the keyboard. The 12OOXL operating system allows you to redetine only the function keys by setting up an 8-byte.table in place of the 192 byte table which would have otherwise been required. The format of this table is as follows: Fl «— Lowest memory location of the table F2 F3 F4 SHIFT-Fl SHIFT-F2 SHIFT-F3 SHIFT-F4 +— Highest memory location of the table When you have decided what functions each combination must perform and have built the table, change the system vector FKDEF to point to the lowest ad- dress of your table. This vector is located at memory locations 6O and 6! hexa- decimal. Location 60 gets the low byte of the hex address, location 61 gets the high byte. The same codes described in the section titled “CODES AND THEIR EFFECT ON THE SYSTEM AFTER TRANSLATION” are used in this table. However, DO NOT assign codes 8A through 8D to the same function as the key itself. In other words, do not specify that the key Fl should perform function FL etc. since this would. result in an infinite loop. (Fl sensed by the OS sends it to the function key table, which tels it to look up and perform the Fl tunction, which sends it to the table, and so on, with no possible exit) . 12 On NON-REASSIGNABLE KEYS AND KEY COMBINATIONS The following keys or key combinations are either specifically wired for special functions or are subjected to special handling by the operating sysiem. Even though there might be a hardware-generated key code shown in the table above, and a corresponding space in the translate tables, there is no way to reassign these functions. This is because the operating system traps the hard- ware code directly to perform the specitied function and it never gets to the - translate mode. These keys or combinations are as tollows: BREAK _ This function is tixed as a special case in the operating system. It is sensed by the hardware. SHIFT —_ This key is an integral part ot the hardware encoding of any key function. CTRL . —- This key in an integral part of the hardware encoding of any key function. OPTION SELECT ie All of these are directly wired to and are sensed by the START GTIA circuitry. RESET _ Directly wired to the 6502 reset line. HELP — Function is fixed by the operating systern. The help func: tion handling is described elsewhere in this manual CTRL-1 Controls the screen output start/stop function. CTRL-Fl See KEYBOARD ENABLE/DISABLE above. As noted there. this tunction is not reassignable. CTRL-F2 See SCREEN DMA CONTROL above. As noted there. this tunction is not reassignable. CTRL-F3 See KEY-CLICK ENABLE/DISABLE above, As noted there, this function is not reassignable. CTRLF4.- —. See DOMESTIC/INTERNATIONAL CHARACTER SET above. 13 3.4 USER-ALTERABLE KEY AUTO-REPEAT RATE The 12OOXL operating system allows you to control the rate at which a key, con- tinuously held down, will repeat its entry to the system This change can be done by. modifying the OS database variable KEYREP, located at hex address O2DA. This variable determines the repetition rate by counting the number of VBLANK (vertical blanking) intervals which occur. For the NTSC (460 Hz) system, the initial value of this variable its 6, for PAL systems, the value is 5. This assures a uniform repeat rate of 1O characters per second for either system. The key repeat rate equals the VBLANK rate (60 or 5O per second) divided by the KEYREP value. Under control of this variable, the maximum “controllable” key repeat rate would be 50 characters per second on the PAL, and 60 characters per second on the NTSC (screen refresh rate). This would occur with a value of | in this variable. You may control the rate at which occurs before the key repeat starts. The OS database variable which controls this is called KRPDEL Its hex address is O2D9, It controls the number of VBLANKs which must occur between the sensing of the key pressed until the first repeat occurs, From that time on, the repeat rate is con- trolled as described above. The initial values used by the OS provide a 0.8 sec- ond initial delay for either NTSC (count = 48) or PAL (count = 40) systems. 3.5 CAPS/LOWR KEY TOGGLE ACTION The CAPS/LOWR key on the 12OOXL functions as shown in the chart below: KEY COMBINATION CURRENT STATE NEW STATE CAPS Control Lock Lower Case CAPS Alpha Lock Lower Case CAPS _ Lower Case Alpha Lock SHIFT-CAPS —any — Alpha Lock CTRL-CAPS —any — Control Lock CTRL-SHIFT-CAPS — any — — no change — - The meaning ot-the terms is as follows. Lower Case: — All key caps respond in lower case mode Alpha Lock ~— All alphabetic keys (A-Z) respond in upper case mode, ali others lower case Control Lock — All alphabetic keys (A-Z) respond as though the control key is being held down as well as the selected key 14 ee ey Vay “dy Oo 3.6 LED INITIALIZATION The 120OXL has two LED’s on the front panel, called LED 1, and LED 2. LED L when Hit indicates. that the Keyboard is disabled. LED 2, when lit. indicates that the international character set is selected. The operating system enables the key- board and selects the domestic character set on powe!I up and reset. Therefore these LED's will both be off 3.7 POWER-ON SELF-TEST During the initial power-on. the 12OOXL operating system will perform the fol- lowing quick check of the integrity of the system RAM and ROM: a. Is it possible to write SFF (all ones) to all RAM locations? b. Is it possible to write SOO (all zeros) to all RAM locations? c. Does a checksum of the two ROM's compare to that stored within each ROM? It any of these tests tail, the operating system will transfer control to the self-test memory test routine. Here a more thorough test of both RAM and ROM can take’ place. 3.8 OPTION JUMPERS The 120OXL is provided with a set of four hardware jumpers which are designed to tell the operating system how the system is configured. As of the date of this writing, only one of the four jumpers has been assigned, specifically Ji. This is specified in the table below. During the power-on sequence, the QOOXL operat: ing system reads the state of these jurnpe!s and stores this state in the OS data- base variable JMPERS, location OS80E. The bit assignments for each of the four jumpers is as specified below. The bits are all active low, meaning that if a line reads a digital zero, the jumper is installed. FUNCTION HARDWARE NAME Self test enable (will run selt testiflow) Jl (pot 4) Reserved for future use Unused con: 15 3.9 ADDITIONAL HARDWARE SCREEN MODES The OOXL adds direct access to the remaining special purpose display pro- cessor operating modes. The table below shows the current mapping which has been provided tor the A400 and A8Oo. The table which follows thereatter. shows the added modes and the numbers which the software can use to access the extra modes. . Mode mapping common to A400/A800: Software Mode ANTIC MODE GTIA MODE oO (SOO) 2 ($O2) @) | (SO) 6 (S06) Oo 2 ($O2) 7 (SO7) O 3 ($O3) 8 ($08) oO 4 (SO4) 9 ($09) O 5 (SOS) 10 = (SOA) O 6 ($06) ll (SOB) O 7 (SO/) 13 (SOD) © oO 8 ($O8) 15 (SOF) @) 9 (SO9) 15 (SOF) ] 10 =6©(SOA) 15 (SOF) 2 ll (SOB) 15 (SOF) 3 Mode mapping for 2OOXL (additional): Sottware Mode ANTIC MODE GTLA MODE 2 (SOC) 4 (SO4) O (mote }) 13 (SOD) 5 (SOS) © (note 1) 14 (SOE) 2 (SOC) oO 15 (SOF) 14 (SOE) O Note 1 The existing character sets will not provide recognizable characters for these new modes. Therefore you will have to provide the character set if you use these modes. This is done by defining the full character set then moditying the OS database variable CHBAS to point to the most signifi- cant byte of the address at which the character set starts. CHBAS is located at S2F4. _Appendix B of this manual contains some suggestions on the method for designing a new character set to support those added modes. 16 3.10 TEXT SCREEN FINE SCROLLING The screen editor (E) supports fine scrolling of the text screen data as an option. This fine scrolling option will be enabled if the database variable FINE (hex - T6eation O26E) is set nonzero prior to issuing the OPEN command to the screen editor, Likewise, the teature will be disabled if this location is set to OO before issuing the OPEN. There are only two allowed values for FINE= O and hex FF. Other values may produce undesirable results. During an OPEN command to the Screen Editor (E:), it FINE (0268) is hex FF, then a tine scrolling displary list is created. This display list will be one byte larger than a coarse scrolling display list. In addition, the OS places the address of a display list interrupt routine into the display Ust vector VDSLST (©0200) replacing an other vector which you might have already stored there. When tine scrolling is enabled, the Screen Editor's display list interrupt service routine modities the content of color register COLPFl (DO17) for the very last visi- bie line of the screen When a CLOSE command is issued for the Screen Editor, if FINE is hex FF then the address of an RTI is placed into the display list vector VDSLST (0200), For OS ver- sions ll and beyond: FINE is set to zero again, and the screen is reopened with a coarse scrolling display list The recommended manner for enabling and disabling tine scrolling is shown. below: a. Set FINE to hex FF b. OPEN E, using an IOCB number c. Use E, as usual, fine scrolling !s enabled da CLOSE E. e. It the IOCB is now open, then you are finished, otherwise continue with the next step ~ Set. FINE to zero ) Q@-OPENE 17 3.1 DISK COMMUNICATIONS ENHANCEMENTS The 12ZOOXL adds the capability for the resident disk handler to read and write disk sectors having variable length from | to 65536 bytes. The default length, as is used on the A400 and A8OO currently, is 128 bytes. Both at power-on and RESET (warm start), the 128 byte sector length is established. Your program can alter this length by modifying the OS database variable DSCTLN. The location of this two- byte variable is O2D5 and O2D6 (lo byte in O2D85, hi in O2D6). In addition to the’ capability to read and wmite variable length sectors, the POOXL also adds the capability to write a sector to the disk without a read- verity operation always following it This is the command ‘P’ which was specific- ally excluded in the previous releases of the operating system. With this capability added, you have a choice of either using the verity, for sys- tem integrity (always read after write) Or you can take a chance of writing a bad sector on rare occasions but increasing your average speed of disk usage by some value related to the verify time. You may want to experiment with some of your programs with and without verity to see the results. 3.12 POWER-ON DISPLAY ENHANCEMENT In place of the original power-on memo pad display used by the A400 and A800 (in the absence of a cartridge or disk), the OOXL displays a dynamic ATARI rainbow. If you press the HELP key while the rainbow is displayed, the 12OOXL will enter the self-test mode. 18 4.0 MEMORY MAP OF THE 1200XL The following table shows how the 6502 processor perceives the various ad- dress spaces which it can access. The maximum allowable address range, with the 16 bit address of the 6502 is hexadecimal OOOO-FFFF. This address range is split by the hardware memory management circuitry. as follows: (Note: The 12OOXL uses 64K RAM’s as the main system writeable memory. Ad- dresses within those RAM’‘s, which would normally have tiled the entire _memidry access space of Q0O0O-FFFF of the processor, are prevented from ac- cess by the memory manager. This allows ROM’s, cartridge memory, and pen- pherals to occupy a@ part of the memory space as ls noted below.) 1200XL MEMORY MAP HEX ADDRESS FFFF-D8OO D7FF-DOOO CFFF-COOO BFFF-AQOO QFFF-8000 TEFF-5800 57FF-SOOO AFFF-OOOO WHAT IS ACCESSED THERE | NOTES OS-ROM or RAM if ROM disabled The special purpose chips respond to the address ranges shown in the listing below DOOO-DOFF D200-D2FF D300-D3FF D400-D4FF D500-D5FF GTIA POKEY PIA ANTIC Any read or write toanaddressin _ this range enables the cartridge con- trol line CCNTL on the cartridge inter- face (same as A400/A800.~ DIOO-DIFE, D600-D4FF, and D700-D7FF are reserved for future use. OS-ROM physically present but cannot . be accessed here. OS-ROM or RAM if ROM is disabled RAM, or cartridge interface RAM, or cartridge interface RAM RAM, unless in self-test mode RAM 19 l Ww ©w ee bh NOTES: 1 Access to the OS ROM may be disabled by wirting a zero to port B of the PIA, bit O. Access is normally enabled, with a 1 present in this bit. (When changing this bit in the register, other bits should not be changed.) 2. The self-test ROM code is physically present in the OS ROM at actual. address DOOO-D7FF.. However, this area is used for the access to the memory mapped I/O devices. When the self-test feature is invoked, the RAM located from 5000-57FF is disabled. The: memory manager re- maps the memory access such that the OS ROM physical addresses DOOO-D7FF are accessed at 5000-57FF. The memory manager uses port B of the PIA, bit to determine whether to access RAM or ROM in the region 5O0O-S7F. If bit 7 is high, RAM is accessed, If bit 7 is low, the OS- ROM is accessed instead. (When changing this bit in the register, other bits should not be changed.) (Port B was used in the A4O00/800 to service the game ports 3 and 4 The use of the remaining bits of ths port are specitied in Section 6 of-this manual) ~ 3, ROM will be selected in these regions if control lines RD4 or RD5 are pulled up to +5V by the cartridge. RD4 controls ROM select in the region 8OO0-9FFF. RDS controls ROM select in the region AOOO-BFFF. 20 fmm 5.0 ENHANCEMENTS TO THE A400/800 REV. B OPERATING SYSTEM INCORPORATED IN THE 1200XL This section describes a set of enhancements which include new methods of handling peripheral products and, in a separate section, improvements in basic operations of the system The latter might be referred to as “bug fixes”. PERIPHERAL HANDLER ADDITIONS To accommodate a new class ot peripheral devices, the operating system now includes a relocating loader, used to upload peripheral handlers through the serial (/O interface). In the A400 /800, device handlers for the peripherals were uploaded as fixed location (absolute) object code. These handlers were loaded using a set of de- vice inquires, or polls, known as types O, 1 and 2. Information on types O, | and 2 Poll Commands is available from Ata Customer Service. The 200XL adds two other types of polls to its operating system. One poll known as type 3, is issued at power-on or reset time. The other, type 4, can be issued as a result of an OPEN command by an application program. Type 3 Poll Command The type 3 poll command itself is used as an “Are You There?” type of com- mand. Associated with the type 3 poll are two other types, specifically the: a) Poll Reset and b) Nuil Poll Poll Reset consists of the following SIO command byte sequence (reter to the SIO | document for further explanation of the byte types): Byte Position Value (hex) Device Address 4F Command Byte 40 AUX 4F AUX2 . 4F Command Checksum Normal (checked by peripheral) The 4F its AUXI and AUX2 detine this sequence to all peripherals as a poll reset. Atter responding to a type 3 poll by sending a handler to the system, a peri- pheral is not supposed to respond again to a type 3 poll The Poll Reset com- mand, at power-up, resets all type 3 peripherals, freeing them to respond to the poll request. However, no serial bus device sends back any data as a result of a poll reset command. al Type 3 Poll (Are you there?) There may be several types of peripherals which can respond to a type 3 poll. In types O, | and 2, the device address sent on the serial line specifies which exact device is being called. In the type 3 poll processing, however, the address remains fixed (4F) and the devices each respond atter a specific number of poll 3 tetries. In other words, during poll 3 operations, the computer doesn’t know which peripherals are actually attached, but"will keep asking “is anybody there” until it has reached its last retry and no peripheral has responded. Each peripheral which does respond to the type 3 poll must be designed to count the number of retries of type 3 polls, then to respond as described below on its own specitied retry slot. Each time it sees a command other than a type 3 poll these peripherals must reset their retry counters. This allows the computer to load the handler for each peripheral which responds, then restart its poll 3 se- quence (original retry number restored) to look for another poll 3 response from the next peripheral (if any). Since each peripheral responds only once (atter a poll reset), a second request at a specific retry slot causes no peripheral response and allows the next retry slot to be polled. This poll (“are you there?”) is sent as follows: Byte Position Value (hex) Device address 4F Command Byte 40 AUX! OO AUR2 OO Command checksum Normal (checked by peripheral) When. atter checking the retry count, it is a peripheral's tum to respond, it sends back the following data to the computer on the serial interface, a) An ACK response byte, and b) L Low byte of handler size in bytes (nust be EVEN) 2. High byte of handler size 3. Device Serial I/O Address to be used for loading 4, Peripheral Revision Number These four bytes, if sent by the peripheral, will be stored in OS variables DVSTAT (O2EA hex) through DVSTAT +3, If there is a successful return to the OS (not a “timeout or other problem), it indicates that there is a handler to be loaded. The loading is pétférmed, then the type 3 poll is repeated until all retries are ex- hausted and no peripheral responds. Once the device address data is received from the peripheral during this type 3 poll, it can thereatier be referenced directly on the serial bus by its address in place of the original poll address 4F. Specific details of the actions taken by the OS after receiving an answer from a peripheral may be found in Appendix C. aa Null Poll Command This command is used as a serial bus no-operation If any error should occur during loading of a peripheral handler or by the relocator, the systern should be tree to “back out” of the linking of the faulty loader and tell the peripherals that - it is ready for the next one to be loaded. Since this null poll is a non-type-3 poll all peripherals will have reset their retry.counters and should be ready for another sequence of retries, looking for théir own response retry slot. This main- tains synchronization between the computer and the peripherals. The structure of the Null Poll is as follows: Byte Position Value (hex) Device Address 4F Command Byte 40 AUX] 4E AUX2 4E Command Checksum Normal (penpherals check it) Type 4 Polling This type of poll is sent out on the serial bus as a result of an application initiated request. During an OPEN command, a device which responds to a type 4 poll” may conditionally or unconditionally be polled to determine if it is online and may or may not have its handler uploaded and linked to the system under con- trol of the OS. Detailed information regarding the handling of the device under various operating conditions may be found in Appendix.c. The Type 4 Poll is a serial port command structured as follows: « Device address of 4F hex (peripherals looking for Type 4 Poll may ignore the device address and look only for the poll command ‘@’; however, the device address will always be 4F hex and the peripheral may check this); ¢« Command is ‘@‘ (40 hex) (peripherals looking for this poll will always look for the ‘@’ command); e« AUXI contains the device name, which is an ATASCH upper-case letter (range 4] hex through 5A hex) (the peripheral must be assigned that device hame in order to legally answer the poll); 2 AUX2 contairis the device number, which is an ATASCI digit (range ATASCIL1 through 9, 31 hex through 39 hex) (the peripheral may optionally use this intor- L mation in deciding whethe or not to answer the poll); ¢ Standard command checksum (peripheral checks this). This poll differs from the Type 3 Poll in that the device name and number is in- cluded in the poll. Therefore the peripheral need not count retries of the type 4 poll and should answer the poll as soon as the poll command is recognized. There is no limitation on the type 4 poll; the peripheral should answer its type 4 poll each time it is issued. : The peripheral response to a type 4 poll is the same as for the type 3 poll. The four response bytes are placed, by the computer, into DVSTAT through DVSTAT+3 (O2EA through O2ED hex.). 23 GENERAL ENHANCEMENTS TO THE REV. B OS FUNCTIONS The following functions which are supported by the A400 /800 Rev.B Operating System have been further enhanced by the addition of the following features: Printer CLOSE with data in the buffer — The printer handler will insert an EOL(end-of-line) character in the printer buffer, if one is not there, before sending the buffer to the printer on a CLOSE. This .. assures that the last line will be printed immediately rather than having the printer forced offline to output the final line. Printer Unit Number Handling — The printer handler has been changed so that it will process the unit number in the IOCB, allowing separate addressing for printers Pl through P8. CIO Handling of Truncated Records on Read — The CIO now places an EOL in the user's input buffer on the occurrence of either a record longer than the buffer being read or an EOF being encountered during the read attempt. This assures that all records are accessible, even if the user has not provided a sufficient buffer size, he will at least get as much of the record as he has provided for. CIO Error Handling With Zero Length Buffer — The CIO will retum a butfer length of zero (in the 6502 A-register) when there is a handler error while effecting a zero length butter transfer. (See CIO section in the OS manual) Display Handler Cursor Handling — The display handler now accepts a screen clear code no matter what value is in the cursor X and Y coordinates. Display Handler/Screen Editor Memory Clearing — The Display handler and Screen editor will not clear memory beyond the end of memory as indicated by RAMTOP. Now it is possible for the user to specify the top of memory to be used by the system and to store device handlers or per- sonal machine code in the memory area above the display. Changing display graphics modes, then, will not erase any data which has been placed in the RAM area above that assigned for use by the display or screen editor. Rework,of the Floating Point Package — The 2O0OXL operating system corrects a bug in the Rev. B OS. It now produces an error status when an attempt is made to calculate the LOG or LOGIO of zero. New ROM Vectors — The following fixed entry point vectors have been added to the 2LOOXL ROM set: E48QO JMP PUPDIS entry to power-on display E483 JMP SLFTST entry to the self-test pgm. E486 JMP PHENTR entry to uploaded handler enter E489 JMP PHULNK entry to uploaded handler unlink E48C JMP PHINIS entry to uploaded handler int. a4 FO, 6.0 OTHER CHANGES/ GENERAL INFORMATION This section deals with items which involve operating system changes, but which do not easily fit into any other category. IMPROVED HANDLING OF OS DATABASE VARIABLES During normal power-on sequence (cold start), the OS database variables from — SO3ED-SO3FF are set to zero, During a RESET (warmstant), they are NOT changed by the OS. This means that an enhanced version of the operating system in the future will be able to make use of these locations without reloading thém after any RESET operation. These bytes are all reserved for use in future OS revisions. NTSC/PAL VERSION TIMING PROVISIONS . There are various timing differences between the NTSC (40 hz) and the PAL (5 hz) versions. To eliminate the necessity for providing a special operating system ROM set for each one, the specific timing adjustment values are handled within. the single ROM set. . To determine which type of system the ROM is operating on, the operating sys- tem checks a flag within the GTIA chip and adjusts all timings accordingly. This - was possible because the GTIA must be different to handle the moditied display format for the 5O Hz version. By making certain timings a function of the state of this flag, it was possible to make extemal timings independent of the NTSC or PAL system itself. The timing values relate to the handling of the 115 Volt cassette player (Atari 410) and the console auto-repeat rate as shown in the table below: CASSETTE TIMINGS NOW INDEPENDENT TIMING Wiite Inter-record gap (long) 3.0 sec. Read IRG delay (long) 2.0 sec. Write IRG (short) ; ©,.25 sec. Read IRG delay (short) O16 sec. Write File leader 19.2 sec. Read Leader delay 9.6 sec. Beep cue duration ©.5 sec. Beep cue separation O16 sec. AUTO-REPEAT FUNCTIONS NOW INDEPENDENT TIMING Initial delay for-auto-repeat O.8 sec. _Repeatrate — 10.0 char/sec. 12OOXL OS ROM IDENTIFICATION AND CHECKSUM DATA Each of the two ROM’s in which the 12OOXL operating system is contained has a capacity of 64K bits organized as 8K by 8. Within each of the ROM's is a block of data organized as shown in the diagram below, to identity the ROM and to give its checksum. The checksum is tested by the operating system as part of the powe!l up sequence. . ao The format of the block tor the COOO-DFFF ROM is as follows: ROM Cksurm (1o) ROM Cksum (hi) Di Di M1 M2 Yl Y2 Option byte Al A2 Nl ~ N2 ——} _N3 N4 NS N6 Revision No. COOO COOL _ COO2 COO3 COO4 COOS COs | COO7 COO8 COO9 COOA Checksum which is the sum of all —— bytes in ROM except checksum bytes themselves. Revision date having the form DDMMVYY where D = day digit M = month digit Y = year digit. Each a 4 bit BCD digit. Reserved, contains $OO for the 2LOOXL -—_—— Part number having the form AANNNNNN, where A's represent ASCII characters, N are BCD digits. COOB The format of the identification block for the EOQOO-FFFF ROM is as follows: Di D2 Ml M2 Yl Y¥2 Option byte Al A2 Ni N 2 | emer RS NS | NG Revision No.- ROM Cksum (lo) ROM Cksum (hi) vector table for tor NML RES and IRQ! ———ey FFEE FFEF Revision date having the form DDMMYY where D = day digit FEFO M = month digit, Y = year digit — Each a 4 bit BCD digit. . FFF Hardware product identifier, will — be used by Atari to identify Home FFF2 Computer products, for 2LOOXL = SOL FFF3 FFF4 +—— Part number having the form AANNNNNN, where A‘s represent FFE5 ASCI characters, N are BCD digits. FFF6 FFF7 FFF8 —— Checksum which is the sum of all bytes in ROM except for checksum FEF9 bytes themselves. FFFA-FFFF This area reserved for power-on reset vectors, NMI and IRQ vectoIs. © a6 at ~ PORT B CHANGES Port B of the PIA is a read/write port which no longer is connected to game I/O | ports. Instead, its bits control various functions which include control of LED | LED 2, read enable ot the the.OS ROM’s and other functions. To change. only one single bit at a time within that port the following technique should be used. Clear A Bit (bit b) LDA PORTB ‘AND # SFF-b . STA PORTB ,clears only bit b in the port Set A Bit (bit b) LDA PORTB ORA *b STA PORTB ssets only bit b in the port XL PORTB ($D30l1) BIT ASSIGNMENTS BIT VALUE | USE O O OS ROM DISABLED, RAM ENABLED OS ROM ENABLED The memory region mapped to the OS ROM is trom $COOO to SFFFF except for the region from SDOOO to SD7FF which is always Mapped to the hardware I/O chips (GTIA, POKEY, PLA, ANTIC). BASIC ENABLED BASIC DISABLED, RAM ENABLED The memory region mapped to BASIC is from SBFFF. LED #1 ON LED #1 OFF LED #2 ON LED #2 OFF RESERVED FOR FUTURE USE RESERVED FOR FUTURE USE RESERVED FOR FUTURE USE SELF TEST ROM ENABLED SELF TEST ROM DISABLED, RAM ENABLED Ga ne ~O-O -O . SN OOS —~O wa, — | The memory region mapped to the self test ROM is from fy _| $5000 to S57FF. a NOTE: The OS VBLANK process copies the port A joystick and paddle values into the Port B shadows. Thus, stick O affects both O and 2, stick | atfects both | and 3. a7 REV-LEVEL DETERMINATION To allow program products to determine which Atari Home Computer and Operating System Revision level it is operating with, the following testis are recommended: If location SECD8 = $A2, then product is an A400/A800 wherein: If location SFFF8 = $DD and SFFF9 = $57 then OS is NTSC rev A. If location SFFF8 = $Dé and SFFF9 = $57 then OS is PAL rev A If location SFFF8 = $F3 and SFFF9 = SE6 then OS is NTSC rev B. If location SFFF8 = $22 and SFFF9 = $58 then OS is PAL rev B. Otherwise, it is some future A400/A800 OS. If location SFCD8 not $A2, then product is a 2OOXL or other future home com- puter product, wherein If location SFFF] = SOL then OS is lZOOXL and location $FFF7 will be the internal rev number for the IZOOXL OS. Otherwise, location SFFFl = product code for tuture Atari Home Computer product and location $FFF7 contains OS rev level for this product. 28 APPENDIX A— AN EXAMPLE OF KEYBOARD REASSIGNMENT As suggested earlier in this document, the keyboard functions may be reas- signed. The table below gives. the corresponding keys for the Dvorak (also known as the American Simplitied) Keyboard. When the typewriter was first invented in 1867, Christopher L. Sholes chose..a layout for the keys which would slow down the good typists of his day and thereby prevent his machine from jamming, This keyboard has endured to this day... In 1932, August Dvorak invented this key layout which places the most often used characters, including the vowels, on the “home” key line and also redistributes the keystrokes from a 60-70% left-hand activity to an almost 50/50 activity. Cer- tain manufacturers currently offer this key layout as an option. Now you can try it for yourself if you wish. Only the list of key correspondence is given here. It is lett to the reader to compose the key function table using the data contained earlier in this manual TOP ROW OF KEYBOARD =. CENTER ROW BOTTOM ROW Current Dvorak Current Dvorak Current Dvorak Q ? A. A Z t q / Zz i W , 5 O x Q WwW E ; D E Cc J e . R P F U Vv K T Y G I B x Y F H D. N B U G J H M _M I Cc K T WwW Ww O R L N V - Vv P L S ? Z ; S$ / Z Ya . “ __ cunderline) Yy —— ‘ _ 29 APPENDIX B — SUGGESTIONS FOR THE CONSTRUCTION OF A NEW CHARACTER SET FOR THE NEW GRAPHICS MODES This appendix covers the new graphics modes 12, 13, 14 and 15 now provided on the l2OOKL Modes 14 and 15 are pure-graphics modes with resolutions of 160 by 20 and 160 by 40 respectively. Since these are not character modes, the discus- sion below will be limited only to modes 12 and 13. Graphics 12 and 13 do not produce recognizable characters, for the most part. using the standard character set. One will understand why this is tue by exam- ining the following comparison between Graphics mode O to 12 and_l3. Mode O is a 40 character mode, Each character is formed from an 8 wide by 8 high pixel matrix. Each pixel is one bit wide in memory and is % of a color clock wide on the screen. Modes 12 and 13 are also 40 character modes. However, each character ° is formed from a 4 wide by 8 high pixel matrix. with each pixel 2 bits wide in memory and one color clock wide on the screen. This forces the character to be the same width as that used in Graphics mode O, but cannot convey the same information within 4 pixels as with 8 as far as character recognition is concerned. (It is difficult to form a recognizable character in a four by eight dot matrix), Let's examine how the 4-pixel character is formed, again comparing the way the 8-pixel character is formed in mode O, Mode O has a choice of two colors for each pixel (the hardware man- ual says 1 4% colors, but it is actually either the hue and luminance of playtield 2 if there is a zero bit in the selected pixel position. or the hue trom playtield 2 with the luminance of playtield 1 if there is a1 bit in the selected pixel position: Therefore, each single bit in the character defini- tion byte for a given line occupies a single %-color-clock-wide pixel position. The character set built into the OS defines the characters in an 8 by 8 matrix. Mode 12 also uses 8 scan lines per character. However, it uses the character bytes in a different manner. Each of the character bytes retrieved by the ANTIC is treated as a set of four two-bit quantities, where each bit pair describes the color which is to be applied to one of the 4 single color-clock-wide pixels which are part of the character. Mode 13 is the-same in its treatment of the data bytes, but each of the characters is double-feight (16.scan lines instead of 8) and each data byte is used twice which effectively doubles the height of the character. 30 Let's look at a typical character, for example a W The bits which form a W inthe default character set are similar ta the following: l1loooog90o 01 display: 1ooooo 0 1 . 1ootltzo9o 1 1oottloo 1 1oie.tootloiil 1toooo0 1 1 1 |! oo0 0 1 +7 1oooo90oo0 (NOTE: This is not the exact representation, but is used as an example of correct interpretation in mode O and incorrect interpretation in modes 2 and 13.) If you view the sample set of bytes, each at consecutive addresses within the detined character set, it actually looks like a W when you trace the outline formed by the I‘s in the byte set, as shown in the display example to the right of the byte representation. In this mode O display, each of the I's would be one color, and each of the zeros would be another color, assuring a readable display. For the modes 12 and 13, the four (not 8) pixels are controlled as follows: If two-bit value is. Then the pixel color is. , ole) the background color Ol the playtield O color 10 the playtield | color les. the playtield 2 color dif bit 7 of char = O) Q the playfield 3 color dt bit 7 of char = }) For the example shown. then, the 4th line from the bottom would display a 10 10 Ol Ol or 4 pixels of playtield colors 1,1, O, O in a row, if the standard character set is used. And the bottom-most line would display playtield colors 1, BAK. BAK, Oin a tow. As may be imagined, it is difficult to recognize such a character. (This character is a mirror image lett to right — nonsymmetric characters would be ~ even more difficult to recognize.) 3] To build a character set for these modes 12 and 13, then, it is suggested that you build each character as double wide, to allow a total of 8 pixels (by 8 lines) to define the character. This would also mean assigning two character set loca- tions for each character and treating each character printed in these modes as two characters to be printed. For the exarnple of the W, the character set might look like this: Byte set 1 Byte set 2: 10 OO OO OO OO OO OO 10 1 CO CO OO OO OO OO 10 10 OO OO 10 1 OO 00 10 10 OO CO 10 1lO = =CO CO 10 10 CO 10 OO OO 10 £©O 10 10 10 OO OO OO OO 10 10 10 1 OO OO OO OO 10 10 10 OO OO OO OO OO OO 10 Byte set 1 may represent ATASCI value hex 57 within the new character set table, and set 2 may be at ATASCT value hex D7 (hex 57 plus hex 80) if desired. You may feel free, of course, to assign your character sets in any mannér you desire. Therefore, if you would print these two characters side by side on the screen, it would become etfectively a 20 character per line mode, with the resultant 10-combination treated as the |-bit in the mode O example and the OO-combi- nation as the O-bit in the mode O example, forming a recognizable W in the PIOCESS. Note also that you may want to design these new character sets in a7 by 7 matrix starting the upper left hand corner of the bit-pair set to allow at least one blank row and column between each of the new characters. (This was not done in the example.) Thus many combinations of colorful characters may be formed using this tech- nique, allowing the user of the 1ZOOXL additional program flexibility. 32 MEMORY REQUIREMENTS FOR NEW SCREEN MODES The following table summarizes the memory utilization tor the new modes 12. through 15. . Mode Horiz Vert Vert Colors Data Color Memory. No. Posit. w/o with Value Reg. Required split split. range used screen screen (split (full screen) screen) 2 40 24 20 5 OO-7F * 1154 1152 13 40 12. 10 5 OO-7F * 664 660 14 160 192 160 2 O BAK 4270 4296 1 PFO €> 1 «160 192 160 4 O BAK ai2 8i3a l PFO 2 PFl 3 PF2 *Note: See character detinition format for modes 12 and 13. 33 CHARACTER DEFINITION FORMAT FOR MODES 12 AND 13 The following chart shows the layout for a single character of the character set which would be used for forming characters in modes 12 and 13. As explained above, the value of each of the bit pairs specifies what color will copped on a. tull-width color clock when this character mode 4s selected. 7 oO Bit positions within this line Relative byte O Relative byte 7 Each 2 bit color specification in the character definition maps to the color regis- ters as follows: If the bits have Then the color register used to select the the value: color of the pixel is: ©) BAK l PFO 2 PF] 3 PF2 if Bit-7 (the color modifier) equals a O, or PF3 if Bit-7 (the color modifier) equals al. The meaning of the color modifier is shown i in the following tables, which show the formats for the data bytes which are used to produce the display itself As a reminder, the data which is to be displayed on the screen is located some: where in memory. The data is located by the address provided in the display list. The data bytes themselves in these locations will be interpreted according to the following table. TABLE of DATA FORMATS used for GET CHARACTER/PUT CHARACTER for MODES 12 through 15. Modes 12, 13 M = color modifier bit 7 @) M D —_ . Ds truncated ATASCI Mode 14. a De=color ~ 7 O oe zero D Mode 15 D = color 7 O ZeIO D 34 wet ee eee eae eae APPENDIX C — DATA BASE CHANGES FROM REV. B TO 1200 This appendix lists the difference in memory usage between the Rev. B operat: ing system of the A400 LOCATION OOOO OOO! OOIC OOID OOIE OOIF OO036 0037 OO4A OO4B O06O0 OOél O062 OO79 OO7A 0233 O238-0239 0245 0247 O248-026A O26B O26C O26D O26E O288 O28E O29C O2BD O2C9-O2CA O2CB-O2CC O2CD-O2CE O2CF-O2DO O2D1-02D2 Q2D3-02D4 O2D5-02D4 O2D7-O2D8 Q2D9 O2A -- _ O2DB O2DC O2DD O2DE O2DF REV. B USE reserved reserved PTIMOT moved (0314) PBPNT moved (O2DE) PBUFSZ moved (O2DF) PTEMP (deleted) CRETRY moved (029C) DRETRY moved (O2BD) CKEY moved (O3E9) CASSBT moved (O3E9) NEWROW moved (O2F5) NEWCOL moved (O2F6) NEWCOL moved (O2F7) ROWINC moved (©O2F8) COLINC moved (O2F9 reserved reserved reserved LINBUF (deleted) LINBUF (deleted) LINBUF (deleted) LINBUF (deleted) LINBUF (deleted) LINBUF (deleted) CSTAT (deleted) reserved TMPX1 (deleted). HOLDS (deleted) reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved LNFLG NGFLAG ABUFPT ABUFPT ABUFPT RECLEN reserved reserved CHSAIT VSFLAG KEYDIS FINE HIBYTE NEWADR CRETRY DRETRY RUNADR HIUSED ZHIUSE GBYTEA LOADAD ZLOADA DSCTLN ACMISR KRPDEL KEYREP NOCLIK HELPFG DMASAV PBPNT PBUFSZ 35 Ped ddd ddd beaten ee Oe ee ee ee ee /800 and the operating system for the 2O0OXL. 2OOXL USE . for inhouse debugger tor power-up self test - reserved reserved reserved reserved loader temp. loader temp.. handler loader temp. handler loader temp. func. key det. pt. func. key det pit. PAL/NTSC flag. key det pointer key det pointer loader temp. loader loader character set pt. fine scroll temp. keyboard disable tine scrolling flag loader loader trom 0036 fromOO37 loader loader loader loader loader loader disk sector size reserved auto key delay auto key rate key click disable HELP key flag. DMA state save from OOID from OOIE O2E9 O2F5 O2F6-O2F7 O2F8 O2F9 O30E ~ O314 O33D. O33E O33F O3E8 O3E9 OS3EA. O3EB O3ED-O3F8 O3F9 O3FA O3FB-O3FC reserved reserved — reserved reserved Teserved ADDCOR (deleted) TEMP2 moved (0313) reserved reserved reserved reserved reserved teserved reserved reserved reserved reserved reserved HNDLOD NEWROW NEWCOL ROWINC COLINC PTIMOT PUPBT1 PUPBT2 PUPBT3 SUPERF CKEY CASSBT - CARTCK ACMVAR CHLINK Prbdbdattrrtettte handler loader flag: ‘from O060°~ from OOél -from:O079°. from OO7A. option jumpers trom OOIC power-up/reset power-up/reset power-up/reset . screen editor from OO4A trom OO4B cart checksum reserved. reserved . cart interlock handler chain