CATHODE RAY TOMES

Asteroids Caberat DP-155-1st-02A

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

Page 1
Scan of page 1

VECTOR GENERATOR PROGRAM COUNTER

Cavirveno unos 1] 1) | Serene or caso ele

Counters F5, HS and JS contain the address of the next ‘next instruction in memory to be retrieved and performed,

data byte (insiruction) to be fetched from the Vector Generator memory. Because these counters point to the

they afe called the program counter. This. program

‘counter is incremented one count (to the next sequential

‘adgress) each time the information at its current address is loaded into data latch 0 or data latch 2.

‘The program counter may also be preset to “jump” toa

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 H6 and J6.

‘counter KS. The stack is a 4word 12-bit memory, used to

save the contents of the program counter for future reference. It is loaded when DMAPUSH is low. Im mediately after information is written int counter KS increments one count. Immediately befor loading the program counter from the stack, counter KS decrements one count. the stack, three

“Ee

STATE MACHINE

‘The state machine is the “master controller” of the vector generator circuitry. It receives instructions from the game MPU, via the vector generator RAM. It carries out these instruc: tions’ by accessing the appropriate sections of the vector generator ROM memory, using the vector generator program Counter to do $0. The state machine reads the vector generator OM data via Timer 0-3) and decodes this information to deter ‘mine how it should use this data: 1) to draw a vector, 2)t0 move the monitor beam to a new position on the monitor display: 3) {o “jump” to a new vector memory address; 4) to return toa Previous vector memory address; or 5) to tell the game MPU that ithas completed its curentinstuctions ands wating for tS next comman

“The state machine consists of input gates 88 and E6, ROM 8, latch DB, clock circuitry A7, and decoder €8. Four bit input TIMERO thru TIMERS is the operation code input to the state ‘machine. The Ad thru AB address input to OM C8 tells the ROM which instructions to perform. Address inputs AO thru AS {om 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 HALT input to A7 tells the HOM that the vector generator has completed its ‘operations.

During initial power-up of the game, the HALT signal is preset low. The microcomputer reads the high HALT signal through its switch input port (buffer M10) on data line OBO. This tells the microcomputer that the vector generator is hhalted and waiting for an instruction. To ensure that the beam ‘is off when the state machine is halted, he high HALT, clock:

Sheet 2, Side A DP-155-02 1st printing ed through latch 08, results in a low BLANK to the 2 axis out ut

‘The microcomputer outputs an address that resulis in a D¥AGO signal that causes HALT to go high, and clears the vector generator data latches. This makes TIMERO thru TIMERS signals all low. The state machine now begins executing instructions, starting at vector memory location 0 ‘When the state machine receives the operation code for a ALT instruction, it outputs a low setting the HALT flip-flop A8, 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 FALT input to GO tlip-tlop Ad sets the outputs fo ensure that the vecter timer and position counters are not active when the state machine is halted. When atow Is clocked through A9, the vec: tor timer and X and ¥ position counters begin to operate from the GO, GO and GO" signals. When STOP is clocked through ‘AG, the vector timer has reached its maximum count, end {9085 high. This means the vector has been drawn, The VGCK input to the clock circuitry isa bulfered 1.6 MHz. Clock signal from the microcomputer. This is the same fre {uency used to clock the MPU of the microcomputer. The signal clocks latch DB unless the microcomputer is addressing the vector RAM or ROM memories (when VMEM goes low) Then the clock input to latch 08 goes high and stays high until ‘VMIEM goes high. the MPU of the generator memor

‘generator memory, i. ‘generator what it'should do next. The address ‘generator program counter and state machine to access this same area of RAM also, and Tead what instructions were sent to it by the game MPU. FROM MICROCOMPUTER ‘SHEET 1, SIDE B

+

rocomputer In this state,

2B and 38 inputs of multiplexer K3.

ROMs of the vector generator memory.

» write data into t

[- 7 Lceecoiama

‘The address selector consists of multiplexers F3, H3, J9 and K3. When VHEM is low, ing access 19 the address inputs of the vector {s from #2 and VW (vector generator writ) is “The program counter may also be preset to “return to {ow winen 9 and FIWB are both iow, When VHEM Is high, the adarese input othe vector previous addrese unin had stored ints stack" The (generator memory Is from the vector generator program counter and site machine. In Stack consists of register fles F4, 4,844, and downlup this state, land VW are both hela high by the pullup resistors connected to the

‘Address decoder L3 decodes address bits A11 and A12, and selects the RAM or one of

This address-selecting arrangement allows the game MPU to access the vector tor generator RAM to instruct the vector lector can then allow the vector

VECTOR TIMER VECTOR GENERATOR RAM

VECTOR GENERATOR ow MEMORY ADDRESS SELECTOR | VECTOR GENERATOR DATA BUFFER TOIFROM MPU DATA BUS SHEET 1, SIDE B, VECTOR GENERATOR MEMORY DATA LATCHES

X AND Y POSITION COUNTERS The vector generator memory consists of 2K of RAM and 4K of ROM. It may be directly accessed by the MPU of the microcomputer through the direct memory access process (OMA), Data is written in from the microcomputer thr data butler 2 when ‘and ‘The data latches consist of latch 0 (H7), latch 1 (F7), latch 2 (J7), and latch 3 (K7). Inputs DDMAG thry DDMAT are the data outputs from the vector generator memory. ‘The 2kx8 vector generator program memory chip NIP3 may be substituted with {two equivalent 1K x8 chips in location Ké and La Latches 0 thru 2 are directly clocked by the rising edge of the LATCH, 7 and outputs from the vector generatg's state machine. Latch 3 Is clocked by or by ATCHO, i igfow. Lach 018 ‘cleared when RESET, DMAGO, or ALPHANUM goes low. Latch 1 is cleared by ALPHANUM.

[HEI ores cnange by incicatad revision

nner f

wet

‘The purpose of the vector timer's to 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 t vec is high. This prevents the vector generator state machine from advancing to its next state until the vector currently being crawn is completed AS soon as the vector has been drawn, ‘g0es low, allowing the state machine to advance to the next State in its intended sequence.

‘The vector timer consists of multiplexer F, decoder E7, LATCH M7, ADDER Mé, and counters 87, C7, and O7. M7 contains a scale factor whichis added in MB to th four timer signals. TIMERO tra TIMERG inputs are ary state but all high, decoder E7 directly decodes the sum and loads the decoded’ low into one of the counters. When GO goes tow, the counters count from the loaded Count unl the counters all each thelr maximum count. This count {Samaximum length of 1024. this time STOP goes low and clears {he GO flipop of the state machine

Ifthe TIMER signals are all high, ACPHANUM goes low and data signals DVX11 and DVY11 are decoded by decoder £7. This is added to the scale factor and loaded into the counters. ‘The X and Y position counters are two identical circuits. ‘Tneretor, the folowing description discusses only the X position counters, ‘The X position counters conten rate multipliers (48 and KE), ‘downiup counters (69, D9 ané E9) multiplexers (010, €10, and F10), ‘and associated gates (88 and HI0). The output of the downlup ‘counters is a 1221 binary number that represents the horizontal Tocation ofthe beam on the monitor screen (or X ax) wi {the ariel side ofthe eoreen and 1023 being the far right Seinen Increasing oF dnereasing thi binary numer ‘Cause the beam to move to the right or lot, respectively. ‘donerator state machine dacodes instructions trom lis memory, ‘and then is capable of using that data fo aller the binary count of these counters in one of two ways, “The state machine can preset these counters to an entirely dt: ferent number trom thelr previous contents. This wil cause the fam 10 "jump" to a new location on the monitor screen insta taneously, 1, for drawing anew vector from a different stating postion than where the previous vector ended. While the beam is “jumping” to this new position, the beam itself is turned off to provent unwanted lines from appearing on the screen. To proset thie hew position into. the ‘donerator caus “TBSTROBE to go tow. At thi tim imber (OVAOe 1) is "Tho state machine can also instruct thes ‘count up ‘or down any specific number of counts. Ths will cause the beam to ‘ave to the eft orto the right a specific distance relative to where IRwas. During this beam movement, the beam Is turned on with th ‘desired intansity. This isthe procedure used to raw avector on the ‘monitor screen. The dicection (fo the lett or right) and length ( to 4023) ofthe vector to be drawn relative to the Bear's current post tion Is determined by DVXO-T! (trom the vector generator memory ‘ata latches). This data contains information that determines how many clock pulses the counters will receive and whether the ‘Counters will count up or down, ‘DVXO8 memory data is loaded into rate multipliers JB and K8, ‘The function of these devices Is to space the desired number of counter clock pulses at equal intervals over the time period that it ‘il take to draw the desired vector. This insure thal vectors of di ferent lengths wil still be displayed withthe same relative beam intensity. DVX10 and 11 are loaded directly into the counters. OVX10 <termines whether the counters count up or down. DVX11 is used {0 control the select input of mutiple ‘The UNMDAGX' they U 2490 of the 6 MHz clock (rom tha microcomputer cloc ‘The DACK'” thru DAGXT0" signals are sent tothe digit ‘convertors (OAC) inthe X video autput. "The DACXI- thru DAGK10" outputs represent the physical place ‘ment of the Beam on the monitor. The fa let of the monitor sereen [5.0, the center le 512, and tne far right is 1028. Therefore, if the DAGXI” thru DAGX10* signal wes greater than 1023, the monitor ‘beam would go off the right sido of the screen and start again on {ho [ol side of the sereen, a “wraparound condition. To prevent a ‘wraparound the multiplexers" select input trom UNMOAGX'1 goes high who the count is greater than 1023 or less than. This selects UNMDAGX12 to.be output from the multiplexers to the DACS, fore: Ing all zeros or al ones, and thus keeping the beam on the appropriate side on the screen, instead of allowing it to wraparoune ‘The XVLD and YVLO (kand ¥ valid) outputs from tne Xand Y pos tion counter multiplexers are latened and gated together to enable the Z axis output, BVLD (eam vali) Sheet 2, Side A

ASTEROIDS/CABARET

Video Generator

Section of 034986-XX a G

© 1979 Ata tne.