Asteroids Deluxe DP-165-1st-02A
Asteroids Deluxe (rev 3) (Atari, 1980) · Drawing Package · 1 pages · original scan

PROGRAM COUNTER
‘Counters F, H4 and J4 contain the address of the next
data byte (instruction) to be fetched from the Vector Generator memory. Because these counters point to the ‘next instruction in memory to be retrieved and performed, they are called the program counter. This program count: er Is incremented one count (to the next sequential ad-
‘ress) each time the information at its current address is
loaded into data latch 0 or data latch 2
save
‘The program counter may also be preset to “jump” toa
new address. This new address can be loaded into the ‘rogram counter from the vector generator memory via ata latches F6 and H6 and buffers HS and JS.
‘STATE MACHINE ‘The program counter may also be preset to “return” to
a previous address which it had stored in its “stack”. The
Slack consists of register files F3, H3, & J3, and downlup ‘counter Ké. The stack is a 4-word 12-bit memory, used to
reference. It Is loaded when diately after information is written into the stack, count 4 increments one count. Immediately before loading the ‘program counter from the stack, counter KS decrements ‘one count, the. contents of the. program, counter for future BMAPUSH is iow. Immo:
‘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 ROM data via Timer 0-3) 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 toa [previous vector memory address; or 6) to tell the game MPU that it has completed its current instructions, and is waiting for It next command.
The state machine consists of input gates B8 and E5, ROM 8, latch DB, clock circuitry A6, and decoder E8. Fourbit input TIMERO thru TIMERG is the operation-code input to the state machine. The Aé thru AB address input to ROM C8 tells the FIOM 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 ALT input to A7 tells the ROM that the vector generator has completed its ‘operations. During initial power-up of the game, the FAT signal is presset low. The microcomputer reads the high HALT signal through its switch input port (selmux L10) on data line OB7. This tells the microcomputer that the vector generator is halted and waiting for an instruction. To ensure that the beam L Is off when the state machine is halted, the high HALT, clocked through latch 08, results in a low BLANK to the Z-axis output. ‘The microcomputer outputs an address that results. in a DMAGO signal that causes HALT to go high, and clears the veclor-generator data latches. This makes TIMERO. thru TIMERS signals all low. The state machine now begins exe: outing instructions, starting at vector memory location 0,
‘When the state machine receives the operation code for a FIALT instruction, it outputs a low setting the HALT flipflop A8, and suspending state machine operation.
The GO signals load and enable the vector timer and the X ‘and ¥ position counters and tell the ROM that the vector ‘Generator is now actively drawing a vector. The RALT input to GO flip-top A9 sets the outputs to ensure that the vector timer ‘and position counters are not active when the state machine is halted. When alow is clocked through A9, the vec: tor timer and X- and Y-position counters begin to operate from the GO, GO and GO" Signals. When STOP is cocked through ‘AG, the vector timer has reached its maximum count, and {9005 high. This means the vector has been drawn. ‘The VGCK input to the clock circuitry is a buttered 1.5MHz ‘lock signal from the microcomputer. This Is the same fre- ‘quency used to clock the MPU of the microcomputer. The ‘signal locks latch D8 unless the microcomputers addressing the vector RAM or ROM memories (when ‘900s low) ‘Then the clock input to latch D8 goes high and stays high unt ‘9088 high.
‘Sheet 2, Side A DP-165-02 tt printing ‘The address selector consists of multiplexers F2, H2, J2 and K2. When VMEM is low, the MPU of the microcomputer gains access to the address inputs of the vector ‘generator memory. In this st ow when 82 and RWB are both iow. When VMEM Is high, the address input tot generator memanys rom the vector generator program counter and state machine this state, 2B and 38 inputs of multiplexer K2.
‘Address decoder L2 decodes address bits A11 and A12, and selects the RAM or one of three ROMS of the vactorgenerator memory. ‘This address-selecting arrangement allows the game MPU to access the vector: er Generator what it should do next. The address selector can then allow the vectorrator program counter and state machine to access this same area of RAM also, and what instructions were sent to it by the game MPU. er ator memory, FROM MICROCOMPUTER SHEET 1, SIDE B VECTOR GENERATOR MEMORY ADDRESS SELECTOR
's from 2 and WW (vector generator write) is vector ‘and VW are both held high by the pullup resistors connected to the
1 write data into the vectorgenerator RAM to instruct the vector VECTOR GENERATOR RAM
DATA BUFFER VECTOR GENERATOR TO/FROM MPU DATA BUS SHEET 1, SIDE B
‘The data latches consist of latch 0 (H8), latch 1 (F8), latch 2 (6), and latch 3 (K@). Inputs DDMAO thru DDMA7 are the data outputs from the vector-generator memory.
Latches Othru 2 are directly clocked by the rising edge of the , CATCHY, and LATCH outputs from the ¥oqergonantors sale machine Latch 3 i clocked by ‘oF ty LATGHO, if ALPHANUM is iow. Latch 01 ‘cleared when RESET, DMAGO, or ALPHANUM ‘908s low. Latah 1 is cleared by ALPHANUM, VECTOR GENERATOR MEMORY DATA LATCHES
a
VECTOR TIMER
‘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 ‘being drawn is completed. As soon as the vector has been drawn, 028 low, allowing the state machine to advance to the next State in Its intended sequence. ‘The vector timer consists of multiplexer F5, decoder E6, latch M6, ‘adder M5, and counters B6, C8, and D6. M6 contains a scale facto which ig added in MB to the Your 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: fers. 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 fipiop of the state machine. It the TIMER signals are all high, ACPHANUM goes low and data signals DVX11 and DVY11 are decoded by decoder E6. This is added tothe scale factor and loaded into the counters. X- AND Y-POSITION COUNTERS,
‘The X-anc ¥-position counters ae two identical circults. Therefore, the following description discusses only the Xposition counters. ‘The Xpoition counters contain rate multipliers (J8_ and KB), “downlup counters (69, 09.and E9, muliplexers (C10, OIE 10, E10 atch (10), and aecoctated ates (88 and M10). The output of the downlup Counters ies 12 inary number that represents the horzontal loca: tion ofthe beam on the monitor screen (or X axl) with O being the far lot side of the sorean and 1023 being tho far right sie ofthe sroon, Inraasing c decreasing this binary number Output will cause the ‘beam to mare tothe right or lat, respectively. The vector generator fate machine decodes instructions from te memory, and ten Is 2+ pablo of using that data to alter the Binary count of these counters in ne of two ways. "The state machine can preset these counters to an entirely itferent number trom thelr previous contents, This will eause the beam Slump" to anew location on the monitor screen instantaneous, for drawing a now vector om a ferent stating position than where the previous vector ended. Wile the beam is “lumping” to this new position, the Beam tells turned of to prvent unwanted lines trom Eppearing orth screen To presel his naw position into the counters, the state gonrator causes 10.90 low. Athi timo, ane {12.5 number (OVX0-1) i loaded into the counters from the vector ‘generator memory data latches. "The state machina can also instruct these counters to count up or ‘down any specific numberof count, This wl ease the boar to move to tno let orto the ight a specific distance relative to where it was. During this beam movement, the beam 'stumned on with he esl ntensity. Ths i the procedure used to craw a vector on the monitor Soreen. The direction tothe lit or ight) and length (010 1025) of the ‘ecto to be drawn relative to the beams curent postion is deter: Imined by OVXO-1T rom the vector gonerator memory data latches). Tis" data contains information that determines how many clock pulses the counters wil receive and whether the counters wil count {p oF down, 'DVX09 momory data is loaded into rate multipior J8 and KB. The function of these devices is to space the desired numberof counter clock pues at equal intovals over the tim period that it wil ake “raw the desired vector. This ineures tha vectors of siferet lengths ‘wil st be eisplayed wih the samo relative beam intensity, DVXTO and 41 are loaded directly Into the counters. DVXTO determines whether the counters count up or down, OVX determines the quadrant of he vector boing drawn. ‘Tye UNMDACX! thru UNMDAGX10 (Xaxis unmultplxed digital. analog converter signals) are anstorred and stored atthe outbut of {he mutipiexer on each sing edge of the @MHe clock (rom the ‘micrcomputer cock eeuty). The DAGXT tu DACXTO signals are {ont tothe digtaloanalog converters (DACs) inthe X video output “The DAGX' and DAOK10 output represent the physical placement ‘ofthe beam onthe monitor. The fa eto the monitor seen Is, the {enter i512 andthe far ight is 1023. Tereforg, the DACX! thy ‘DACXIG signal was greater than 1023, the monitor Beam would go oft the right aide of the Sefoen and stat again on the ltt side f the ‘eo’ aparcend conden To pean a warns, the fe" golec Input fom UNMDAGXT goos high when he ‘reatr tan 1029 ores than. Ti selects UNMDRCXTS to be output from the multiplexes tothe DACS, forcing all 2070 ofa ‘nes, and thus Keeping the beam on the appropriate side on the Scraén, instead of allowing it to wraparound ‘The XVLD and YLD (and "valid outputs from the X- and ‘ypasition counter muliploxers are latehos (10 and gated together to ‘cnabe the Z axis output, BVLD (beam vali. ATARI
Sheet 2, Side A ASTEROIDS DELUXE™ Video Generator Section of 03647102 A
(©1961 Aan, ne