CATHODE RAY TOMES

Asteroids Deluxe Caberat DP-173-1st-02A

Asteroids Deluxe (rev 3) (Atari, 1980) · Drawing Package · 1 pages · original scan

Page 1
Scan of page 1

PROGRAM COUNTER micnocomPurER VECTOR GENERATOR RAM ]__ | vector GENERATOR ToIrfion VECTOR GENERATOR ie VECTOR GENERATOR DATA BUFFER MPU DATA BUS MEMORY womens MEMORY ADDRESS SELECTOR _ sere DATA LATCHES

VECTOR GENERATOR ROM

‘The data latches consist of latch 0 (H6), latch 1 (F6), latch 2 (J6) and latch 3 (KE). Inputs DDMAG thru DDMA7 are the data outputs from the vector-generator memory. Latches 0 thru 2 are directly clocked by the rising edge. of the LATCHO, LATCH?, and LATCH? outputs from the etor generate’ sate machine, Latch & is clocked by

Latches 0 thru 2 are directly clocked by the rising edge ‘or by LATCHO, if ALPHANUM is iow. Latch 0 is

Cleared whon RESET, DMAGO, or ALPHANUM goes low. Latch 1 is cleared by A The address selector consists of multiplexers F2, H2, J2 and K2. When VHTEM is iow, the MPU of the microcomputer gains access to the address inputs of the vector rator memory. In this state, BUFFEN is from 92 and WW (vector generator write) is Tow when @2 and FUWB are both iow. When VMEM is high, the address input o the vector, ‘Counters F4, H4 and J4 contain the address of the next The program counter may also be preset to “return” to byte (insiruction) to be fetched from the Vector a previous address which it had stored in its 'stack”. The erator memory. Because these counters point to the stack consists of register files F3, H3, & J3, and down/up ‘next instruction in memory to be retrieved and performed, counter K4. The stack is a 4-word 12-bit memory, used to thoy ae called the program counter. This program count: Save the contents of the program counter for tture Generator memory Is rom the vector generator program counter and state machine. In tre incremented one count (to the next sequential ad- reference. hi loaded when 1s low imme: this state, and VW are both held nigh bythe pullup resistors connected tothe dress) each time the Information atts curren address ie Gately after information e written ino the stack, counter 28 and 3B inputs of multiplexer K2. loaded into data latch 0 or data latch 2. 4 increments one count. Immediately before loading the

program counter from the stack, counter KS decrements,

“The program counter may also be preset to “ump” toa_one count. new address. This new address can be loaded into the program counter from the vector generator memory via data latches F6 and H6 and bufters H5 and J6. ‘Address decoder L2 decodes address bits A11 and A12, 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, i, 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. ‘STATE MACHINE

VECTOR TIMER X- AND Y-POSITION COUNTERS

ooo tty J Sean.

[ na hed =

Bee PROGRAM Sor CouvTen

ae ee ‘Tho state machine is the “master controler" of the vector: The microcomputer outputs_an address that results in a generator circuitry. It receives instructions from the game OMAGO signal that causes HALT to go high, and clears the MPU, via the vector generator RAM. It caries out these instruc: vector-generator data latches. This makes TIMERO thru tions by accessing the appropriate sections ofthe vector gen- TIMERS signals all low. The state machine now begins exeerator ROM memory, using the vectorgenerator program cuting instructions, starting at vector memory location 0.

‘counter to do $0. The state machine reads the vector generator

ROM data via Timer 03) and decodes this information to deter- When the state machine receives the operation code for a ‘mine how it should use this data: 1)to draw avvector,2) to move FIALT instruction, it outputs a low setting the the monitor beam to a new position on the monitor display; 3) HALT fliplop A9, and suspending state machine operatin. to “jump” to a new vector memory address, 4) to return to & previous vector memory address; or 6) fo tell the game MPU The GO signals load and enable the vector timer and the X that ithas completed ite current instructions, and is waiting for and Y position counters and tell the ROM that the vector

Its next command. enorator is now actively drawing a vector. The HALT input to

Go flip-flop A9 sets the outputs to ensure that the vector timer ‘The state machine consists of input gates 88 and ES, ROM and position counters are not active when the state machine is. (8, latch D8, clock circuitry A6, and decoder E8. Fourbit input halted. When alow GOSTROBE is clocked through AS, the ec TIMERO thru TIMERS is the operation-code input to the stale tor timer and X- and ¥-postion counters bagin to operate from machine. The Aé thru AB address input to ROM CB tells the the GO, GO and GO™ signals. When STOP is clocked through ROM wnich instructions to perform, Addass inputs AD thruAS Ad, the vector timer has reached its maximum count, and GO {rom latch DB tells the HOM which stato was last performed. gods high. This means the vector has been drawn, The address A7 input GO tells the ROM that the position counters are presently drawing a vector. The HALT input toA7 The VGCK input to the clock circuitry isa buffered 1.5: MHz tells the ROM that the vector generator has completed its clock signal from the microcomputer. This is the same freoperations {quency Used to clock the MPU of the microcomputer. The Signal clocks latch D8 unless the microcomputer is addressing During initial power-up of the game, the HALT signal is pre- the vector RAM or ROM memories (when VMEM goes low) set low. The microcomputer reads the high HALT signal Then the clock input to latch D8 goes high and stays high unt through its switch input port (selimux L19) on data line O87. VMEM goes high. This tells the microcomputer that the vector generators

halted and waiting for an instruction. To ensure that the beam

is off when the state machine is halted the high HALT, clocked through latch D8, results in a low BLANK to the Z-axis output ‘The purpose of the vector timer isto time out the length of time it takes to “draw” an actual vector on the monitor display. During the interval when the X- and Y-position counters are actually drawing the vector, STOP is high. This prevents the vectorgenerator state ‘machine from advancing to its next state until the vector currently Boing drawn fs completed As 990m as te vector has been drawn, {9008 low, allowing the state machine to advance to the next ‘State in its intended sequence. ‘The X-and ¥;position counters are two identical circus. Therefore, 12bit number (OVXO-11) is loaded into the counters from the vector _The UNMOROX! thru UNMDACX10 (Xaxis unmultiptexed dgitaltote folowing description dlscusses only the Xposition counters." generator memory data latches, analog converter signals) ate transected and stored at the output of ‘The Xpeaition counters contain rato multipliers (J8 and KB), "The state machine can also instruct these counters to count up or the multiplexers on each rising edge of the GMHE clock (rom th downlup counters (62, 09 and EM, multiplexers (C10, ENO, E10} latch down any space number of counts. This wil cause the beam to move microcompuio clock circu). The DAGXT thru DACXTO signals are (10), and azsoctated gates (88 and #0). The output of the downlup to thalet orto the right a specie distance relative to where was. Sent to the dial toanalog converters (OACs) in the X video out Counters is 12bit binary number that represents the horizontal loca. During this beam movement, the Beam is turned on with the desitegin. The DAGX} and DAGX10 outputs represent the physical placement tion ofthe team on the monitor screen (or X axis), withO being the far tensity. This is the procedure used to draw a vector on the monitor of the beam on the monitor. The far lef ofthe monitor screen is Othe left side of te soreen and 1023 being the (ar igh side ofthe screon. screen. The direction (to the left or ight) and fongth (to 1023) ofthe Conteris 512, and the far right Is 1023. Therefore, i the DAC thru Inoraasing or decreasing this binary number output will cause the vector to be drawn relative tothe bear's curtent position is deter. DACX10 sigral was greater than 1023, the monitor beam would go off ‘beam to mee to the igh or lef, respectively. The vector generator mined by DVXO-11 rom the vector generator memory data latches). the ight sid of the sereen and stat again on the left side of the Slate machine decodes instructions from its memory. and tnen is ca This data containe information that determines how many clock Screen, a “wraparound condition. To prevent a wraparound, the pablo'of using that data fo alter the Dinary count of theee counters In pulses the counters will receive and whether the counters wil count multiplexers’ select Input ffom UNMDAGX1T goos high when the bre of two ways. Sp or down ‘hunts greater than 1029 or tss than The selects UNMIDRCXT 12 "foe statemachine can preset these counters toan entirely diferent DVXO'9 memory data is loaded into rate multillers JB and KB. The be output trom the multiplexers to the DACs, forcing all zeres oF al number tron thir previous contents. This will cause the beam to function ofthese devices is to space the desired numberof counter ones, and thus Keeping the beam on the appropriate side on the ump” t0 anew location on the monitor sereen instantaneously, Le, clock pulses at equal Intervals over the time period that f will take to Screen, instead of allowing I to wraparound. fordrawing 1 new vector from a diferent staring postion than where craw the desired vector. Ths ineues that vectors of diferent longihe The XVLD and VLD (K and Y valid) Outputs from the X- and the previous vector ended. While the beam Is “jumping” to this new wil al be dgplayed with the samo relative boam intensity OVK10 and Y‘postion counter multiplexers are latched (10) and gated together to Position, the beam itself is tured off prevent unwanted tines from 11 ae loaded dlrecty into the counters. DVX10 determines whether enable the Z as output, BVLD (bear valid). Eppearing onthe screen, To reset thisnew postion into the counters, the counters count up or down. DVX'T determines the quadrant ofthe the sate generator causes EDSTROBE to go low. At ths time, anew Yoctor bang crawn. ‘The vector timer consists of multiplexer F5, decoder E6, latch M6, ‘adder MS, and counters B6, C8, and DB. M6 contains a scale factor ‘which is added in MS to the four timer signals. If TIMERO thru TIMERS inputs are any state but all high, decoder £6 directly decodes the sum and loads the decoded low into one of the count: ‘ers. When GO goes low, the counters count from the loaded count ‘until the counters all reach their maximum count. This count is a ‘maximum length of 1024. At this time STOP goes low and clears the GO flip-flop of the state machine. Sheet 2; A

ASTEROIDS DELUXE™ Video Generator- Section of 036471-01 and -02 C If the TIMER signals are all high, ALFHANUM goes low and data signals DVX11 and DVY11 are decoded by decoder E6, This is added to the scale factor and loaded into the counters.

© 1901 ta ne ‘Sheet 2, Side A DP-173-02 st printing