ZPU-1000 Memory Map adr size bits function 0000 - 07ff 2k 0-7 Program PROM (1C) 0800 - 09ff 1/2 k 4-7 CMOS RAM BBKUP 0800 - 0bff 1k 0-3 scratch pad RAM 0a00 - 0bff 1/2 k 4-7 Optional CMOS RAM 1000 - 17ff 2k 0-7 Program PROM (1D) 1800 - 1fff 2k 0-7 Program PROM (3D) 2000 - 27ff 2k 0-7 Program PROM (4D) 2800 - 2fff 2k 0-7 Program PROM (6D) 3000 - 37ff 2k 0-7 Program PROM (4C) 3800 - 3fff 2k 0-7 Program PROM (3C) 4000 - 43ff 1k 0-7 scratch pad RAM 4400 - 5fff 7k 0-7 screen image RAM (256 * 223) 6000 - 63ff 1k 0-7 Magic scratchpad RAM 6400 - 7fff 7k 0-7 Magic image RAM 8000 - 87ff 2k 0-7 Color look-up (RGBI,RGBI) 0-3ff top half of screen (first 128 lines) 400-fff bottom half of screen Maps 4x4 color boxes into one of 16 colors Magic ALU modes ALU functions: (M line tied to LOGIC?) (inverted inputs) 0x0 NOP F = A 0x1 OR B F = A+B 0x2 CPL AND B CPL F = A+/B 0x3 XOR A CPL F = 1 0x4 AND B F = AB 0x5 A = B F = B 0x6 XOR B CPL F = /(A^B) 0x7 CPL OR B F = /A + B 0x8 CPL OR B CPL F = A&/B 0x9 XOR B F = A^B 0xA A = B CPL F = /B 0xB AND B CPL F = /(A&B) 0xC XOR A F = 0 0xD CPL AND B F = /A&B 0xE OR B CPL F = /(A+B) 0xF CPL F = /A I/O Ports ZPU-1000 60 sw9 - sw16 in_60 = 0x00 // default = 0x01 // switch test = 0x02 // white crosshatch (press fire / red screen) // requires: // memory[0] = 0xC3; // JP 1602 (game start) // memory[1] = 0x02; // memory[2] = 0x16; 61 sw1 - sw8 62 sw17 - sw24 63 sw25 - sw32 in_61 = 0x03 // press TEST button until playfield appears 64 sw33 - sw40 65 d0 = sw2 d7 = test sw 66 LED off 67 LED on VFB-1000 48 switch port 1 (chip 4d, 2y0 output) 49 switch port 2 (chip 4d, 2y1 output) 4a switch port 3 (chip 4d, 2y2 output) 4b to 8 bit latch 6c (shifter/ALU control) d0 = shifter/flopper A d1 = shifter A d2 = shifter B d3 = shifter/flopper B d4 = ls181 S0 input d5 = ls181 S1 input d6 = ls181 S2 input d7 = ls181 S3 input 4c 480 hz nmi on 4d 480 hz nmi off 4e interrupt input (midscreen/endscreen) on bit 0, interrupt reset intercept input on bit 7 4f interrupt enable (output to bit 0) SB-1000 W1 W2 40 50 Control register #3 if control register #2 bit 0 = 0 Control register #1 if control register #2 bit 0 = 1 41 51 Activates control register #2 42 52 Most significant-byte-buffer-register is enabled. 43 53 Timer No. 1 latches 44 55 Timer No. 2 latches 46 56 Noise Register, 2 bits if D7=0 and D6=0 46 56 Volume Register, No. 1, 3 bits if D7=0 and D6=1 46 56 Volume Register, No. 2, 3 bits if D7=1 and D6=0 46 56 Volume Register, No. 3, 3 bits if D7=1 and D6=1 47 57 Timer No. 3 latches Ports 40 - 43, 45, and 47 address registers within the 6840 PTM. VSU-1000 W1 W2 BIT7 BIT6 Function 44 54 0 0 Word control output 44 54 0 1 Frequency and volume control out 44 54 Feedback (input) Volume is controlled by bits 3-5 of the frequency and volume control register. The frequency of the clock input to the voice chip is controlled by bits 0,1 and 2 of the register. bit 2 1 0 frequency 0 0 0 19.5 0 0 1 20.8 0 1 0 22.32 0 1 1 24 1 0 0 26 1 0 1 28.4 1 1 0 31.25 1 1 1 34.7 1 2 3 4 5 6 7 8 Bank F2 +-------+--------+--------+--------+--------+--------+--------+--------+ Normally Normally on for on for off off extra extra on for on for man at man at SA Tests SA Tests 5,000 10000 9 10 11 12 13 14 15 16 Bank F3 +-------+--------+--------+--------+--------+--------+--------+--------+ On For On see |-Language -------| this note for Display Crosshatch + Reset 17 18 19 20 21 22 23 24 Bank F4 +-------+--------+--------+--------+--------+--------+--------+--------+ ----Coin Chute #1 ----------------| Credit/Coin Setup 25 26 27 28 29 30 31 32 Bank F5 +-------+--------+--------+--------+--------+--------+--------+--------+ ----Coin Chute #2 ----------------| Credit/Coin Setup 33 34 35 36 37 38 39 40 Bank F6 +-------+--------+--------+--------+--------+--------+--------+--------+ ----Coin Chute #3 ----------------| Credit/Coin Setup credits coins ------- ----- off off off off 1 1 off off off on 2 1 off off on off 3 1 off off on on 4 1 off on off off 5 1 off on off on 6 1 off on on off 7 1 off on on on 10 1 on off off off 14 1 sequence of credits / coin -------------------------- on off off on 1 2 0 1 on off on off 3 2 1 2 on off on on 5 2 0 5 on on off off 7 2 0 7 on on off on 3 4 0 1 0 2 on on on off 5 4 1 1 1 2 on on on on 7 4 1 2 1 3 sw 1,2 - signature analysis mode sw 7 - extra man at 5,000 sw 8 - extra man at 10,000 sw 9 - switch test sw 15,16 - language off off english off on french on off german on on spanish VFB switches +-------+--------+--------+--------+--------+--------+--------+--------+ joystick joystick joystick joystick fire left right up down +-------+--------+--------+--------+--------+--------+--------+--------+ P1 P2 coin coin coin start start #3 #2 #1 +-------+--------+--------+--------+--------+--------+--------+--------+