!Basic Test Program for Galaxian INCLUDE "Z80.POD" SETUP POD Z80 TRAP ACTIVE FORCE LINE NO TRAP ACTIVE INTERRUPT NO ADDRESS SPACE INFORMATION RAM @ 4000-47FF ! PROGRAM RAM -2114 SRAM RAM @ 5000-53FF ! VIDEO RAM -2114 SRAM PROGRAM TITLE DPY-GALAXIAN TEST PROGRAM Aux GALAXIAN TEST PROGRAM REG8 = 60 EXECUTE PAUSE EXECUTE MENU PROGRAM MENU RUN UUT RUN UUT 0: LABEL 0 DPY-1=RAM 2=ROM 3=SCREEN 4=SOUND /1 Aux 1=RAM 2=ROM 3=SCREEN 4=SOUND DPY-GROUND PIN 10 of 8L - PRESS CONT # Aux GROUND PIN 10 of 8L - PRESS CONT STOP IF REG1 = 1 GOTO 1 IF REG1 = 2 GOTO 2 IF REG1 = 3 GOTO 3 IF REG1 = 4 GOTO 4 GOTO 0 1: LABEL 1 EXECUTE PROGRAM RAMTEST GOTO 0 2: LABEL 2 EXECUTE PROGRAM ROMTEST GOTO 0 3: LABEL 3 EXECUTE PROGRAM SCREENTEST GOTO 0 4: LABEL 4 EXECUTE PROGRAM SOUNDTEST GOTO 0 PROGRAM RAMTEST DPY-GROUND PIN 9 of 8D - PRESS CONT # Aux GROUND PIN 9 of 8D - PRESS CONT STOP DPY-TESTING PROGRAM RAM @ 7N 7P # Aux TESTING PROGRAM RAM @ 7N 7P RAM SHORT @ 4000-43FF DPY-TESTING VIDEO RAM @ 3F 3H # Aux TESTING VIDEO RAM @ 3F 3H LEARN @ 5000-57FF DPY-RAM TESTING COMPLETE # Aux RAM TESTING COMPLETE PROGRAM ROMTEST 0: LABEL 0 DPY-ROM VERSION 1 or 2 /1 Aux ROM VERSION 1 or 2 IF REG1 = 1 GOTO 1 IF REG1 = 2 GOTO 2 GOTO 0 1: LABEL 1 DPY-TESTING PROGRAM ROM 4M20 @ 7U # Aux TESTING PROGRAM ROM 4M20 @ 7U ROM TEST @ 0000-07FF SIG 9224 DPY-TESTING PROGRAM ROM 4M21 @ 7V # Aux TESTING PROGRAM ROM 4M21 @ 7V ROM TEST @ 0800-0FFF SIG 643A DPY-TESTING PROGRAM ROM 4M22 @ 7W # Aux TESTING PROGRAM ROM 4M22 @ 7W ROM TEST @ 1000-17FF SIG 3243 DPY-TESTING PROGRAM ROM 4M23 @ 7Y # Aux TESTING PROGRAM ROM 4M23 @ 7Y ROM TEST @ 1800-1FFF SIG 7CFB DPY-TESTING PROGRAM ROM 4M24 @ 7Z # Aux TESTING PROGRAM ROM 4M24 @ 7Z ROM TEST @ 2000-27FF SIG 547E DPY-TESTING GRAPHIC ROM M866J # Aux TESTING GRAPHIC ROM M866J ROM TEST @ 2800-2FFF SIG 19B7 DPY-TESTING GRAPHIC ROM M866L # Aux TESTING GRAPHIC ROM M866L ROM TEST @ 3000-37FF SIG E088 DPY-ROM TEST COMPLETE # Aux ROM TEST COMPLETE 2: LABEL 2 DPY-TESTING PROGRAM ROM M866U @ 7U # Aux TESTING PROGRAM ROM M866U @ 7U ROM TEST @ 0000-07FF SIG FFDE DPY-TESTING PROGRAM ROM M866V @ 7V # Aux TESTING PROGRAM ROM M866V @ 7V ROM TEST @ 0800-0FFF SIG 4055 DPY-TESTING PROGRAM ROM M866W @ 7W # Aux TESTING PROGRAM ROM M866W @ 7W ROM TEST @ 1000-17FF SIG FCD2 DPY-TESTING PROGRAM ROM M866Y @ 7Y # Aux TESTING PROGRAM ROM M866Y @ 7Y ROM TEST @ 1800-1FFF SIG 317B DPY-TESTING PROGRAM ROM M866Z @ 7Z # Aux TESTING PROGRAM ROM M866Z @ 7Z ROM TEST @ 2000-27FF SIG EC3A DPY-TESTING GRAPHIC ROM M866J # Aux TESTING GRAPHIC ROM M866J ROM TEST @ 2800-2FFF SIG 19B7 DPY-TESTING GRAPHIC ROM M866L # Aux TESTING GRAPHIC ROM M866L ROM TEST @ 3000-37FF SIG E088 PROGRAM SCREENTEST DPY-SCREEN FLIP AUX SCREEN FLIP WRITE @ 7006 = F5 WRITE @ 7007 = F5 DPY-SCREEN FLIPPED? - PRESS CONT AUX-SCREEN FLIPPED? - PRESS CONT STOP DPY-SCREEN FLIP AUX SCREEN FLIP WRITE @ 7006 = 00 WRITE @ 7007 = 00 DPY-SCREEN FLIPPED BACK? - PRESS CONT AUX-SCREEN FLIPPED BACK? - PRESS CONT STOP WRITE @ 7004 = 00 DPY-STARS OFF? - PRESS CONT AUX-STARS OFF? - PRESS CONT STOP WRITE @ 7004 = F5 DPY-STARS BACK ON? - PRESS CONT AUX-STARS BACK ON? - PRESS CONT STOP PROGRAM SOUNDTEST DPY-BACKGROUND SND1 - PRESS CONT AUX BACKGROUND SND1 - PRESS CONT WRITE @ 6800 = 00 WRITE @ 6800 = FF EXECUTE PAUSE STOP DPY-BACKGROUND SND2 - PRESS CONT AUX BACKGROUND SND2 - PRESS CONT WRITE @ 6800 = 00 WRITE @ 6801 = FF EXECUTE PAUSE STOP DPY-BACKGROUND SND3 - PRESS CONT AUX BACKGROUND SND3 - PRESS CONT WRITE @ 6801 = 00 WRITE @ 6802 = FF EXECUTE PAUSE STOP DPY-BACKGROUND ALL ON- PRESS CONT AUX BACKGROUND ALL ON - PRESS CONT WRITE @ 6800 = FF WRITE @ 6801 = FF EXECUTE PAUSE STOP DPY-BACKGROUND ALL OFF - PRESS CONT AUX BACKGROUND ALL OFF - PRESS CONT WRITE @ 6800 = 00 WRITE @ 6801 = 00 WRITE @ 6802 = 00 STOP DPY-HIT SOUND - PRESS CONT AUX HIT SOUND - PRESS CONT WRITE @ 6803 = FF EXECUTE PAUSE WRITE @ 6803 = 00 STOP DPY-FIRE SOUND - PRESS CONT AUX FIRE SOUND - PRESS CONT WRITE @ 6805 = FF EXECUTE SPAUSE WRITE @ 6805 = 00 STOP !!!!!! Pause Routine !!!!!!!!!!!!!!! PROGRAM PAUSE REG2 = REG8 DLOOP: DEC REG2 IF REG2 > 0 GOTO DLOOP PROGRAM SPAUSE REG3 = 10 SDLOOP: DEC REG3 IF REG3 > 0 GOTO SDLOOP !!!!!!!!MEMORY MAP!!!!!!!!!!!!!! ! ROM INFO ! 0000-3fff ! ! 4000-7fff ! 4000-47ff -> RAM read/write (10 bits = 0x400) ! 4800-4fff -> n/c ! 5000-57ff -> /VRAM RD or /VRAM WR (10 bits = 0x400) ! 5800-5fff -> /OBJRAM RD or /OBJRAM WR (8 bits = 0x100) ! 6000-67ff -> /SW0 or /DRIVER ! 6800-6fff -> /SW1 or /SOUND ! 7000-77ff -> /DIPSW or LATCH ! 7800-7fff -> /WDR or /PITCH ! ! /DRIVER: (write 6000-67ff) ! D0 = data bit ! A0-A2 = decoder ! 6000 -> 1P START ! 6001 -> 2P START ! 6002 -> COIN LOCKOUT ! 6003 -> COIN COUNTER ! 6004 -> 1M resistor (controls 555 timer @ 9R) ! 6005 -> 470k resistor (controls 555 timer @ 9R) ! 6006 -> 220k resistor (controls 555 timer @ 9R) ! 6007 -> 100k resistor (controls 555 timer @ 9R) ! ! /SOUND: (write 6800-6fff) ! D0 = data bit ! A0-A2 = decoder ! 6800 -> FS1 (enables 555 timer at 8R) ! 6801 -> FS2 (enables 555 timer at 8S) ! 6802 -> FS3 (enables 555 timer at 8T) ! 6803 -> HIT ! 6804 -> n/c ! 6805 -> FIRE ! 6806 -> VOL1 ! 6807 -> VOL2 ! ! LATCH: (write 7000-77ff) ! D0 = data bit ! A0-A2 = decoder ! 7000 -> n/c ! 7001 -> NMI ON ! 7002 -> n/c ! 7003 -> n/c ! 7004 -> STARS ON ! 7005 -> n/c ! 7006 -> HFLIP ! 7007 -> VFLIP ! ! /PITCH: (write 7800-7fff) ! loads latch at 9J !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!