Asteroids DP-143-4th-02A
Asteroids (rev 4) (Atari, 1979) · Drawing Package · 1 pages · original scan

new address. This new address can be loaded into the program counter from t
VECTOR GENERATOR PROGRAM COUNTER
FROM MICROCOMPUTER SHEET 1, SIDE B
Counters F5, HS and JS contain the address of thenext data latches F7 and H7 and butters HB and JB. data byte (insiruction) to be fetched from the Vector ‘Generator memory. Because these counters point to the
next instruction in memory tobe retrieved and performed,
they ate ‘called the program counter. This. program counter is incremented one count (to the next sequential address) each time the Information at its current address Is loaded into data latch 0 or data latch 2
vector generator memory
‘The program counter may also be preset to “ret
‘previous address which it had stored in its “stac Stack consists of register files F4, H4, & J4, and downup Counter KS, The stack is a 4:word t2bit memory, used to save the contents of the program counter for future feference. It is loaded when DMAPUSH is low. Immediately after information is written into the stack, ‘The program counter may also be preset to'jump” toa counter KS increments one count. Immediately before leading the program counter om th sack, counter KS fecrements one count. ‘The address solector consists of multiplexers F3, H3, J3 and K3. When VMEM is low, the MPU of the microcomputer gains access to the address inputs of the vector ‘generator memory. In this stato, 's from 62 and VW (vector generator write) is Tow when 82 and FIWE are both iow. When VMEM is high the address input tothe vector ‘generator memory is from the vector generator program counter and state machine. in
this state, and VW are both held high by the pullup resistors connected to the
2B and 38 inputs of multiplexer K3. to "The
‘Address decoder L3 decodes address bits A11 and At2, and selects the RAM or one of, three ROMS of the vector generator memory.
This address-selecting arrangement allows the game MPU to access the vector ‘generator memory, |e, write dala into the vector generator RAM to instruct the vector ‘Generator what it should do next. The address selector can then allow the vector ‘Generator program counter and state machine to access this same area of RAM also, and Fead what Instructions were sent to It by the game MPU. VECTOR GENERATOR MEMORY ADDRESS SELECTOR
VECTOR TIMER VECTOR GENERATOR RAM VECTOR GENERATOR DATA BUFFER TOIFROM MPU DATA BUS SHEET 1, SIDE B, VECTOR GENERATOR MEMORY aig TRB L,_ DATA LATCHES a ‘sown _)
| jek
‘The vector generator memory consists of 2K
‘of RAM and 4K of ROM. It may be diectly ac- ‘cessed by the MPU of the microcomputer through the direct memory access process. (OMA). Data Is written in trom the microcom- ‘buter thru data buffer Re when BUFFEN and IWS are low. ‘The data latches consist of latch 0 (H7) latch 1 (F7), latch 2 (7), and latch 3 (K7). Inputs DDMAO thru DDMAT are the data outputs from the vector generator memory. Latches Othru 2 are directly clocked by the rising edge of the LATCHO, LATCH, and LATCH? outputs from the vector generators state machine. Latch 3 is clocked by ‘orby PATCHO, i ALPHANUM slow. Latch O18 Cleared when RESET, DMAGO, or ALPHANUM goes low. Latch 1 is cleared by ALPHANUM. The 2x8 vector generator program memory chip NIPG may be substituted with ‘wo equivalent 1K x8 chips in location KA and us
FIRE -eorotee range by ncoatd svision <
‘STATE MACHINE
- of the vector ‘generator circuitry. It receives instructions from the game MPU, via the vector gonerator RAM. It carr out these instruc tions by accessing the appropriate sections of the vector ‘Generator ROM memory, using the vector generator program ‘Counter todo so, The state machine reads the voctor generator ROM data (ia Timer 03) and decodes this information to deter- ‘mine how it should use this data: 1) to draw a vector, 2) to move the monitor beam to a new position on the monitor display: 3) to-"jump" to anew vector memory address; 4) to return t0 a previous vector memory address; or 6) to tell the game MPU {hat ithas complated its current instructions, and is walting for Its next command. ‘The state machine consists of input gates BB and £8, ROM (8, latch DB, clock circuitry A7, and decoder €8. Four bit input TINERO thru TIMERS is the operation code input to the stat machine, The Ad thru AG address input to ROM CB tolls t ROM which instructions to perform. Address inputs AO thru AS. from latch D8 tells the ROM which stata was last performed ‘The address A7 input GO tells the ROM that the position counters are presently drawing a vector. The HACT input toA7 lls the ROM that the vector generator has completed its
During initial powerup of the game, the HALT signal is preset low. The microcomputer reads the high HALT ‘signal {rough its switch input port (buffer M10) on data line DBO. This tells the microcomputer that the vector generator is halted and waiting for an instruction, To ensure that the beam {scoff when the state machine is halted, he high HALT, clock:
‘Sheet 2, Side A P-143.02 Ath printing mo
2d through latch D8, results in alow BLANK to the Z axis out put i
‘The microcomputer outputs an- address that sults in a signal that causes HALT to go high, and clears the vector generator data latches. This) makes. TMERO thru TIMERG signals all low. The state machine now egins execouting instructions, starting at vector memory location 0. “The purpose of the vector timer sto time out the length of time it takes to “draw” an actual vector on the monitor display. During the Interval when the X and ¥ position counters are actualy drawing the vector, STOP is high. This prevents the vector generator state ‘machine from advancing to its next state until the vector currently being drawn Is completed. As soon as the vector has been drawn, STOR goos tow, allowing the state machine fo advance tothe ne state In ite Intended sequence. nen the state machine receles the operation code for a TALT instruction outputs alow FALTSTROBE, setting the HALT fipflop Ad and suspending state machine operation
‘The GO signals load and enable the vector timer and the X and Y position counters and tell the ROM that the vector ‘generator is now actively drawing a vector. The FACT input to G0 fliptlop A9 sets the outputs to ensure thatthe Yector timer and position counters are not active when the state machine is halted. When a low GOSTHOBE is clocked through Ag, the vec tor timer and X and ¥ position counters begin to operate trom the GO, GO and GO™ signals. When STOP is clocked through ‘AG, the vector timer has reached its maximum count, and ‘9028 high. This means the vector has been drawn ‘The vector timer consists of multiplexer F6, decoder £7, LATCH. MT, ADDER M8, and counters 87, C7, and D7. M7 contains a scale factor which is added in M6 to the four timer signal. 1 TIMERO thru TIMERS inputs are any state but all high, decoder €7 directly decodes the sum and loads the decoded low Into one of the ‘counters. When GO goes low, the counters count from the loaded Count until the counters al reach their maximum count. This count saamaximum longth of 1024. At this time STOP goes low and clears the GO flipflop of the state machine. It the TIMER signals are all high, ALPHANUM goes low and data, signals DVX11 and DVY1 are decoded by decoder E7. This is added tothe scale factor and loaded into the counters. ‘The VGCK input tothe clock circuitry ig a buffered 1.6 MHz clock signal from the microcomputer. This is the same fre: Quency Used to clock the MPU of the microcomputer. The Signal clocks latch D8 unless the microcomputer is addressing the voctor RAM or ROM memories (when VMEM goes low). Then the clock input to latch D8 goes high and stays high until, ‘VMEM goes high. “Jumping” to this now position, the beam itsolf is turned off to pre: determines whether the counters count up or down, DVXI1 is used ‘ent Unwanted lines from appearing an the screen. To preset this {0.contrl the spect Input of muluploxers D10, E10, and F' 10 the "counters, the state generator causes Tho UNMDAGXT thru UNMDAGXt0 (axis unmultplexeddigta iw 2bit aumber(OVXO1)ie_to-analog converter signals) are vanstered to the output of the ‘Tne X and Y position counters are two identical circuits. ‘ootor generator memory data mulllplevers and stored at the outputs ofthe latches on each rising ar ‘Tnoreore, the following descripten discusses only the X position {2090.01 the 6 MHz clock (rom the microcomputer elock cireulty. fe: ‘counter uct these counters to count up The DAGXT™ thru DAGKi0" signals are sont othe digital analog Sees ‘The X position counters contain rate multipliers (JB and KB), or down any specific number of counts. This will cause the beam to converters (DACs) inthe X video eutput. ae Sheet 2, Side A <downlup Counters (68, D9 and E8) mullipleners (O10, E10, and E10), move tothe lett or to the right a specie distance relative to where ~The DAGXT” thru DAGX10" outputs reprosont tho physical placeland’assoclated gates (B8 and #0. The ouput of the down/yp twas. During this beam movement, the Bears turned on withthe ment ofthe beam on the monitor. The fa et ofthe monitor sereen ne procedure usedtorawavectoronthe 180, the center le 512, and the far ight Is 1028. Therafore, i the ‘the let or right) and length (Oto _DAGXT* thry OACX10" signal was greater than 1023, the monitor the farteft sige the sereen and 1023 being the tar right sido ofthe 1023) ofthe vector to be drawn relative to the Bea's curtont post. beam would go off the right side ofthe screen and siart again on foreen, Increasing or decreasing this binary number output will ton 's determined by DVXO-11 (rom the vector generator memory “wraparound” condition. To prevent a {ause the beam tomnove tothe ight or let, respectively. The vector data atches). This data contains Information that Gatecmines how wraparound, the multiplexers’ select input from UNMDACX1 goes Generator state machine decodes instructions from ris memory, many clock pulses the. counters. will recelve and whether the ‘unt sgreater than 1023 o lees thanO. This salects Sind thon is capable of using thet data to alter the binary count of counters will count up or down, 7 ‘counters ia'a 12bit binary numer that reprosonts the horizontal desired intensity. Tocation ofthe beam on the monior sereen or X axl, with Obelng monitor screen. The direction ASTEROIDS Video Generator Section of 034986-XX G ‘hese counters in one of two wars DDVX09 momory data Ie loaded Into rate multipliers J8 and KB. ° “Ine state machine can preset hese counters to an entirely dit The Yunetion of those dovices fo to.space the desired number of propriate side onthe screen, Instead of allowing I to wraparound. Counter clock pulses at equal intervals over the time period that TheXVLD and YVLO Ocand Y valid outputs from the Xana pos beam to "Jump" to a new location on ‘nll take to draw the desired vector This Inures thet vectore af cit’ tion counter multiplexes are latched and gated together to enable taneously, Le, for drawing a new voctor {erent engine wil stil be clepayed withthe same relative beam in. the Z axle output, BVLD (beam val Position than where the previous vector ended. tenelty. DVXIO and 11 ae loaded directly nto the counters. DVO