Page 2 Hardware Bugs & Warnings ‘destination write-only’ instruction that writes to the same register. In addition, any instruction which writes its result into a register and is immediately followed by a ‘destination write-only’ instruction which writes to the same register will also corrupt the register. This effect is shown in the example below. loop: ix EQ, loop add r10,r12 moveq #1,r12; ADD will trash this You should also note that a ‘dummy’ instruction sequence, as shown above, is rare. In normal program code where the result of a register write is used, the bug does not occur. This is illustrated in the following example: load = (r2),r4 add r4,r6 moveq #4,r4 ; Safe because R4 was ; read above 3) Neither the DSP or the GPU will reliably execute ‘jr’ or ‘jump’ instructions unless they are in internal RAM. 4) The DSP may not be used in high priority. The DMAEN bit of D_FLAGS should always be 0. Otherwise, doing an external load or store will cause the DSP to hang, needing a reset to recover. 5) The GPU and blitier may not be used in high bus priority while the object processor is running. The DMAEN bit of G_FLAGS should be 0, and the BUSHI bit of B_CMD should be 0. No bus master may operate at a higher priority than the object processor. If something else gets the bus between the second and third phrases of an object header, then the line buffer address can be corrupted, causing horizontal black stripes and possibly other artifacts in the display. 6) The DSP and the GPU must not be stopped by an external processor writing directly to the D_CTRL or G_CTRL registers. Only the GPU should turn off the GPU, and only the DSP should turn off the DSP. If one processor wants to shut down another one, the best way is to ask them to do it to themselves. For example, place a special code into a semaphore and then cause an interrupt for the processor you want to shut down. The interrupt handler would see the semaphore and shut down the processor itself. 7) The DSP must not do an external write unless it is preceded by an external read that will complete for the write starts. This problem is intermittent and could be missed by testing. Be careful in any DSP code that writes to external memery. Example #1 load (rl),r2 r10,r1l £11, (13) Example #2: load (r1) ,22 or r2,r1l store rll, (3) Example #3: load (xl),r2 or r2,r2 or rl0,rll store rll, (r3) Example #1 will not work correctly but example #2 will. This is because the result of the load is re- quired for the or operation to be performed. To make example #1 work change it to example #3. 8) The value in the High Data Register in the GPU is changed after ANY external load, not just loadp. This means that if an interrupt in running in the GPU that loads from external memory the underlying program may not use loadp. 26 April, 1995 Confidential Information “FOR Property of Atari Corporation © 1994 Atari Corp. na