CATHODE RAY TOMES

Asteroids DP-143-3rd-02A

Asteroids (rev 4) (Atari, 1979) · Drawing Package · 1 pages · original scan

Page 1
Scan of page 1

hl

VECTOR GENERATOR PROGRAM COUNTER

Counters F5, HS and JS contain the address ofthe next

data byte (instruction) to be fetched from the Vector ‘Generator memory. Because these counters point to the ‘ext instruction in memory tobe retrieved and performed, ‘they are called. the program counter. This program ‘counter i incremented one count (to the next sequential

‘address) each time the information at its current address ‘The program counter may also be preset to “Jump” toa

Is loaded into data latch 0 or data latch 2.

new address. This new address can be loaded into the program counter from the vector generator memory via

data latches F7 and H7 and buffers HB and J6,

“The program counter may also be preset to “return” to

‘a provious address which ithad stored in ts “stack". The Slack consist of oglte les Fa, Ha, 8 J4, and downlup Counter KS. The stack isa 4word T2bit memory, used 0 ‘sve the contents of the program counter for future raterence. It Is loaded when ‘mediately after information To writen into the stack, ‘counter KS increments. one count. immediately befors

Toading the program counter from the stack, counter KS

‘decrements one count. His. tow. ln

‘STATE MACHINE

‘The state machine is the “master controller” of the vector ‘generator circuty. It receives instructions from the game MPU, via the vector generator RAM. Itcaries out these instructions by accessing the appropriate sections of the vector ‘generator ROM memory, using the vector generator program ‘Sounter to do so. The state machine reads the vector generator OM data (via Timer 03) and decodes this information to deter ‘mine how It should use this data 1) to draw avector, 2) 10 move {the monitor beam to a new position on the monitor display 3) to-"jump” to a new vector memory address; 4) to roturn to a Devious vector memory address; or 6) to tell the game MPU {hat ithas completed its curent instructions, and is waiting for ite next command,

‘The state machine consists of input gates BB and E8, ROM 8, latch 08, clock circuitry A7, and decoder EB. Four bit input TTIMERO thru TIMERS is the operation code input to the state ‘machine. The Ad thru AB address input to ROM CB tells the ROM which instructions to perform, Address inputs AO thru A3 {rom latch D8 tells the ROM which state was last performed. ‘The address A7 input GO tells the ROM that the position ‘counters are presently drawing a vector. The FACT input to A7 tells the ROM that the vector generator has completed its ‘operations.

During initial powerup of the game, the ALT signal is preset low. The microcomputer reads the high HALT signal {through its switch input port (buffer M10) on data line O80. This tells the microcomputer that the vector generator is halted and waiting foran instruction. To ensure that the beam Is off when the state machine is halted, the high HALT, clock. {4 through latch D8, results in alow BLANK to the axis output.

“The microcomputer outputs an address that results in a [DMAGO signal that causes HALT to go high, and clears the vector generator data latches. This makes TINERO thru ‘TIMERS signals all low. The state machine now bagins exe- Cuting Instructions, starting at vector memory locaiion 0.

When the state machine receives the operation code for instruction, t outputs a low fetting the HALT flipflop AB, and suspending state machine gperation.

‘The GO signals load and enable the vector timer and the X YY position counters and tell the ROM that the vector (eherator is now actively drawing a vector. The HALT input to Go flip-flop Ad sets the outputs to ensure thatthe victor timer and position counters are not active when the state machine is halted. Wen alow: is clocked through 49, the vec {or timer and X and Y position counters begin to operat from the GO, GO and GO signals, When STOP i clocked through {A9, the vector timer has reached its maximum cout, and ‘9026 high. This means the vector has been drawn. ‘The VGCK input to the clock circuitry Is a buffered 1.5 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 microcomputers addressing the vector RAM or ROM memories (when ‘Then the clock input to atch DB goes high and stays high until, ‘VMEM goes high. FROM MICROCOMPUTER ‘SHEET 1, SIDE B

MEMORY ADDRESS SELECTO!

‘The address selector consists of multiplexers F3, H3, J anc! KS. When VMEM is iow, the MPU of the microcomputer gaing access to the address inputs of the vector ‘Generator memory. In this stato, Is from 82 and VW (vector generator write) Is Tow when 82 and FUWE are both iow. When VMIEM! i high, the adress input to the vector {generator memory is from the vector generator program counver 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 KS. ‘Address decoder L3 decodes address bits A11 and A12, and elects the RAM or one of thtee ROMS of the vector generator memory.

‘This address-selecting arrangement allows the game MFU to access the vector

‘Generator program counter and state machine to access this same area of RAM also, and ead what instructions were sent to it by the game MPU.

eerie : VECTOR GENERATOR VECTOR GENERATOR RAM

Tttt

Interval when the X and ¥ position counters ae actually drawing vector, STOP is high. This prevents the vector gensrator state ‘machine from advancing to its next stato until the vec‘or currently being drawn Is completed. As soon as the vector has deen drawn, ‘goes low, allowing the state machine to advance to the next slate in its Intended sequence. “The vector timer consists of multiplexer F8, decode! E7, LATCH M7, ADDER M6, and counters B7, C7, and D7. M7 contains a scale facior which Is added in M6 tothe four timer signals. f"IMERO thru TIMERS inputs are any stato but all high, decoder E7 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 unill the counters all reach their maximum count. This count is amaximum length of 1024 At this time STOP goes low and clears the GO flipop of the state machine,

Ifthe TIMER signals ae all high, ALPHANUM goes Iw and data signale DVX11 and DVY11 are decoded by decoder E7. This is added to the scale factor and loaded into the counters.

‘Sheet 2, Side A DP-143-02 3rd printing The X and Y postion counters are two identical ciruite. ‘Therefore, the folowing description discusses only the X position ‘counters "Tne X position counters contain rate multipliers (JB and KE}, ‘downlup counters (C8, 08 and E9) multiplexers (O10, £10, and F10), land associated gates (BB and 10). The output of the downlup ‘counters Is-a 12 Binary numba that represents the horizontal ‘ofthe beam onthe monior soreen (or X axis), with 0 bang Increasing or decreasing this veo tho boam tormove (ot respectively. Tha vector Generator stato machine decodes Instructions from lis memory, and then is capable of using that data to alter th binary count of {hese counters in one of two ways. “The state machine can preset these counters to an entioly ditferent number Irom thei prevois content. This wil cause the bam to “Jump to a new location on the monitor screen Insta {aneously, Le, for drawing a new vector irom a afferent starting position than where the previous vector ended. While the beam Is “Jumping” to this new position, the beam itslt is turned off to prevont unwanted lines from appearing on the screen. To preset this Few \poaition Into’ the counters, the state. gonerator causes ‘EESTROBE to gow. At this timo, anew 120it number (OVX041), Toaded into the counters from the vector generator memory data latenes. "Ine slate machine can also instruct these count cordown any specitic numberof counts. This wil cause the bear to ‘ove tothe lft orto the right a specific distance relative to where Iwas. During this beam movement, the bear Is turned on with the ‘esired intensity. This isthe procedure used to draw a vector on the ‘monitor seraan. The direction (to the lft or right) and longth (0 to 4023) ofthe wector to be drawn relative to the Beams current pos. mined by DVXO'1 (rm the vector generator memory ches). This data contains Information that determines How many clock pulses the counters will rece. and. whether the ‘Counters will count up or down, ‘DVXO-9 memory datas loaded into rete multipliers JB and KB. ‘The function of these devices Is to space the desired number of counter clock pulses at equal intervals over Wil take to draw the desired vector. Toront lengths wil stil be asplayed withthe same: tonaty. DVXTO and 11 are loaded directly inte the counters. DVO to count up VECTOR GENERATOR DATA BUFFER TOIFROM MPU DATA BUS ‘SHEET 1, SIDE By

‘The vector generator memory consists of 2K of RAM and 4K of ROM, It may be diootly ac: essed by the MPU of the microcomputer through the direct memory access process (OMA). Data is written In from the microcom: DButer thru data butfer R when BUFFEN and

The 2kx8 vector generator program memory chip NIP3 may be substituted with {wo equivalent 1K x8 chips in location K4 and ua

[EGR cores cnange by inatoaws revision VECTOR GENERATOR MEMORY DATA LATCHES

sense)

‘The data latches consist of latch 0 (H7), latch 1 (F7), latch 2 (J7), and latch 3 (7). Inputs DDMAO thru ODMAT ‘are the data outputs from the vector generator memory. Latches 0 thru 2 are directly clocked bythe rising edge of the LATCH, and ‘outputs from the ‘vector generator’ state machine. Latch 3's clocked by TaTCHE ory IPALPHANUM is low, Latch 018 cleared when RESET, DMAGO, or ALPHANUM goes low. LLateh 1 Is cleared by ALPHANOM.

{determines whether the counters count up or down, DVX11 is used To.control the select input of multiplexers B10, E10, and F10. "The UNMDAGXI thru UNMDACX'0 (axis unmultiplexed digital toanalog converter signals) are transfered to the output of the malt i stored atthe outputs ofthe latches each sing ‘2dge of the 6 MHz clock (rom the microcomputer lock eteuty) ‘The DACXT™ thru DAGXI0" signals are sat To the digital o-analog Convertors (DACs) in the X vidoo output. "The DAGKI” thru DAOKIO" outputs represent the physical place- ‘ment of the beam on the moniter, The fa [s.0, the contort. 512, andthe fart DDAGRT® thru DACKIO® signal beam would go off the right sd reen and start again on the Itt sid ofthe screen, a “wraparound” condition. To prevent @ ‘wraparound, the multiplexer select Input from UNMDACX'? goes high when the counts greater than 1023 or less than 0 This solocts UNMDAGX'2 tebe output trom the multiplexers tothe DACS, fre Ing all zeros or allones, and thus keeping the beam on the ap- Dropriate side on the sereen, inteed of allowing it to wraparound. ‘The XVLD and YVLO (cand vale) outputs rom the X and ¥ pos tion counter multiplexers ar latched and gated together to enable the Z axis output, BVLD (beam val. Sheet 2, Side A

ATARI

© 1079 Aart ne.