CATHODE RAY TOMES

Asteroids Deluxe DP-165-3rd-02A

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

Page 1
Scan of page 1

PROGRAM COUNTER

Counters F4, H4 and J4 contain the address of thenext The program counter may also be preset to “return” to data byte (instruction) to be fetched from the Vector a previous address which it had stored in its “stack”. The ‘counters point to the stack consists of register files F3, H3, & J3, and downlup next instruction in memory to be retrieved and performed, counter K4, The stack is a 4:word 12.it memory, used to

Generator memory. Because t

they are called the program counter. This program count: save fr is Inoremented one count (to the next sequential ad- reference. itis loaded when ‘ress) each time the information at its current address is diately after information is wr 4 increments one count. Immediately before loading the program counter from the stack, counter KS decrements, ‘one count, loaded into data latch 0 or data latch 2.

‘The program counter may also be preset to Gata latches FB and HE and buffers H5 and JS

new address. This new address can be loaded into the program counter from the vector generator memory via Gata latches FB and HE and buffers H5 and JS.

‘STATE MACHINE the contents of the program counter for future ‘BMAPUSH is tow. imme-

Into the stack, counter

‘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 tons by accessing the appropriate sections of the vector-gen- ‘erator ROM memory, using the vector-generator program

‘counter to do so. The state machine reads the vector-generator

ROM data via Timer 03) and decodes this information to det

‘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 a new vector memory address; 4) to return to a Devious veotor memory address; or 5) to tell the game MPU {hat it has completed its current instructions, andis waiting for Its next command.

‘The state machine consists of input gates B8 and E5, ROM (68, latch DB, clock circuitry AB, and decoder €8. Four-bit input TIMERO thru TIMERS is the operation-code input to the state machine. The Aé thru AB address input to ROM C8 tells t FIOM which instructions to perform. Address inputs AO thru AS {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 HALT input to A7 tells the ROM that the vector generator has completed its ‘operations. During initial power-up ofthe game, the FAT signal is pre- ‘set low. The microcomputer reads the high HALT signal {through its switch input port (selimux L10) on data tine OB. ‘This tells the microcomputer that the vector generator is, halted and waiting for an instruction To ensure thatthe beam is off when the state machine is halted, the high HALT, clocked ‘through latch D8, results in alow BLANK to the Z-axis output. ‘Sheet 2, Side A DP-165.02 rd printing ‘The address selector consists of multiplexers F2, H2, J2 and K2. When VHEM is low, the MPU of the microcomy generator memory. In this st

‘The microcomputer outputs. an address that results in a DWAGO signal that causes HALT to go high, and clears the vectorgenerator data latches. This makes TIMERO thru TIMERS signals all low. The state machine now begins execcuting 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 flipflop A@, 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 genera’ pow ately drawing a vector, The RALT ipo 0 fliptiop 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 AS, the vec tor timer and X- and Y-position counters begin to operate from the GO, GO and GO" signals, Whon STOP is clocked through AG, the vector timer has reached its maximum count, and {9088 high. This means the vector has been drawn. | ‘The VGCK input to the clock circuitry Is a butfered 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 microcomputer is addressing the vector RAM or ROM memories (when VMEM goes low). ‘Then the clock input to latch D8 goes high and stays high until \VMEM goes high, FROM MICROCOMPUTER SHEET 1, SIDE B VECTOR GENERATOR MEMORY ADDRESS SELECTOR

ier gaine access to the address inputs of the vector Is from 82 and VW (vector generator write) is ow when 82 and RAVE are both low. When VMEM is high, the address input to the vector generator this state, tor program counter and state machine. In 10 Is from the vector gi BUFFEN and VW are both nelé nigh by the pullup resistors connected tothe 2B and 3B inputs of multiplexer K2. ‘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, Le., write data into the vector-generator RAM to instruct the vector ‘erator what it'should do next. The address selector can then allow the vector rator 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. VECTOR GENERATOR RAM VECTOR GENERATOR DATA BUFFER TO/FROM MPU DATA BUS SHEET 1, SIDE B

VECTOR GENERATOR ROM

(CTOR TIMER

‘The purpose of the vector timer is 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 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, STGP goes 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 M6, and counters 86, C8, and D6. M6 contains a scale factor Which Is added in M5 to the four timer signals. 1 TIMERO thru TIMERS inputs are any state but all high, decoder E8 direct! .cades the sum and loads the decoded low into one of the count ters, When GO goes low, the counters count from the loaded count ‘ntl 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-lop of the state machine.

If the TIMER signals are all high, ACPHANUM 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. ‘The X-and¥position counters are two identical circuits. Therefore, the folowing description scusoes only the Xposition counters “Tne Xposiion counters contain ate multipliers JB and KB), ‘downlup counters (69, 09 and E9, multiplexers (C10, DIET0, E10) latch (0, and associated gates (88 and M10). The output of the downlup ‘counters I @ 125i binary aumber that represents the horizontal loca: tion of the beam on the monitor screen (or X axis), with 0 being the far Tet side of the soroon and 1023 being the far rght side ofthe screen. Increasing or decreasing this binary number Output will cause the beam to mote to tho right oF left, respectively. The vector generator Sate machine decodes instructions ffom its memory, and than is car This data contains Dablo‘of using that data to aller the Binary count of these counters in "The state machine can preset these counters to an ental itferent ume from thelr previous contents. This will eause the beam to function of these devices jump" to anew location on the monitor screen instantaneous, for drawing anew vector tom acifernt stating position than i the previous vector ended. While the beam '8 "jumping" to this new wil sil be displayed wit position, the beam itself fs tumod of to prevent unwanted lines from Eppearing onthe screen. To preset tisnew position nto the counters, the state generator causes X- AND Y-POSITION COUNTERS The data latches consist of latch 0 (HE), latch 1 (F8), latch 2 (J6, and latch 3 (K6). Inputs ODMAO thru DDMA7 are the data outputs from the vector generator memory. Latches Othru2 are directly clocked by the rising edge of the LATHO, LATCHT, and LATCH? outputs from the ‘vector generators state machine. Latch 3 Is clocked by ‘or by LATCHO, if ALPHANUM is low. Latch 0 is ‘cleared when RESET, DMAGO, or ALPHANUM goes low. Lateh 1 Is cleared by’ VECTOR GENERATOR MEMORY DATA LATCHES

‘por down.

Togo low. At this time, a new vector being awn. {225i number (OVXO-11 is loaded into the counters from the vector Generator memory data latches. “The state machine can also Instruct these counters to count up oF ‘down any speciic numberof counts. This wl cause the beam fo move to the let or fo the ight a specific distance relative to where It was, During this beam movement, the Doam is turned on withthe desied in tensity. This i the procedure used to draw a vector on the monitor ‘Sereon, The direction (othe lft or igh) and length 0 to 1023) ofthe Vector to be drawn relative tothe oam’s current postion is detr mined by DVXO-1 (rom the vector anerator memory data formation that etermines how many clock pulses the countore will receive and whether the counters wil count

'DVXD'S memory data is loaded into rate multipliers J8 and KB. The to space the desited nubor of counter lock pulses at equal intovats over the time period that t wil ake to ‘raw the desired vector. This ingures that vectors of different lengths the sare relative beam intensity. VXT0 and 41 ae loaded directly Into the counters. DVXTO determines whether ‘counters count up oF down. DVX11 determines the uadrant ofthe The UNMDAGX! hry UNMDACK10 axl unmutipiexed digtatoanalog converter signa) ae wanatrred and stored atthe output of {he mutiplores on each ring espe of the 64e clock (rom the mierocomputer clock evel, The DAGXT tv DAKO signals ae Sent to in digtsktosnaog converter (ACS) i the X vdeo output “Ihe ORCRY and DAGKIO ouput represent the prysial placement ‘ofthe beam on the monte. The fa ofthe Mitr screen 6, the enters tl, and te ta sight 1023 Merete, the DACKT ta ‘AcII0 signal was grater han 1023, tho montor beam would go oft the nit sige ofthe sefon and start again on the at sido o the Stem a “wrparcond conn To pa wraparnd imuplocers sles input tom UNMDAGXTT goes high when Sun ota’ than 109 ors tan, Tis slots UNWORCXTE be cut! trom the mutipioxere hes, and thus Keeping tho beam on the appropt ‘Croco, intend of lowing to wraparound ‘The XVLD snd YWUD K and ¥ val) outputs fom the X- and ‘ypostion counter muiponers are latched (10 and gated together to tetabie the 2 ani output BYLD (bea valid, ‘the DACS, forcing all zeros oF all ‘side on the Sheet 2, Side A

ASTEROIDS DELUXE™ Video Generator Section of 036471-01 and-02 D