D.3 Hardware Structure of DSR 0.3.1 DSR ROM Normally, a DSR is written in the 9900 Assembly Language amu is housed in a ROM, which is itself part of the TI-99/4A family's peripheral. All DSRs must begin at address >4000 and should not exceed >oFFF. All of the eight data pins of the DSR ROM must be buffered before heing connected to the data bus of the 1/0 Bus. This buffer is enabled and disabled by a preassigned CRU output bit which is controlled by the console software, so that not more than one DSR is accessed at any time. D.3.2 CRU Mapping The CRU I/f1 is used by the system to access the peripherals, 1f tne speed of data transfer is not too crucial. The decoding format for the CRU address ing is indicated as: AU AL A2 A3 A4 A5 A6 A7 A8 AQ AiO All Al2 A13 Ala A15/CRUQUT 00 0 User ID Device CRU 1/0 Bit Decode 0 The CRU address space, ranging from >0 to >1FFE with AO, Al, A3e and A15 unused, is broken into eight blocks of 512 bits each. The User ID, indicated through the Address Decoding of A3, A4, and AS, represents each of the 512 Bit Block. They are assigned as follows: MPU Address A3 A4 AS Assignment 0000-0 3FE 000 Console Use 1000-13F E 100 TI Peripheral Space No. 1 1400-17FE Tol TI Peripheral Space No. ? 1800-1BFE 1 1 0 TI Peripheral Space No. 3 1CO0~1FFE 111 TI Peripheral Space No. 4 The standard device decoding through AG and A/ gives a total of four device blocks within each User ID Block. The CRU I/O Bit decoding through A8-Al4 allows 128 addressable bits each of input and output. In the 128 CRU Output bits, the first bit, with A8 AIA all O's, is reserved fur enabling the Data Buffer of the DSR ROM in each Peripheral as mentioned in the last subsection. Setting this bit to logic one enables the DSR ROM, while setting it to logic zero disables the DSR ROM,