We just released a prototype of the cancelled SNES port of Puggsy! Take a look!
As always, thank you for supporting The Cutting Room Floor on Patreon!

Galaga (FM-7)

From The Cutting Room Floor
Jump to navigation Jump to search

Title Screen

Galaga

Developer: Dempa
Publisher: Dempa
Platform: FM-7
Released in JP: July 1985


SourceIcon.png This game has uncompiled source code.
DevMessageIcon.png This game has a hidden developer message.
CopyrightIcon.png This game has hidden developer credits.


Developer Texts

Loaded at various parts in RAM are bits of source code as well as a message from the developer.

$9246

1:LDD ,X++
 CMPA #$FF
 BEQ BG03
 CMPA #$80
 BEQ BG02
 JSR SOUND
 BRA BG01
BG02:STB <BGMC
 STX <BGMX
 RTS
BG03:CLR <BGMX
 CLR <BGMX+1
 RTS
BG04:DEC <BGMC
BG05:RTS
;
;
;
;
CHECK2:EQU *
 LDA <RSTAL
 CMPA #4
 BGT CC28
 CLRA
 LDX #ALA1F
CC21:ADDA ,X
 LEAX 16,X
 CMPX #ALA1F+64
 BNE CC21
 LDX #ALB1F
CC22:ADDA ,X
 LEAX 13,X
 CMPX #ALB1F+208
 BNE CC22
 LDX #ALC1F
CC23:ADDA ,X
 LEAX 13,X
 CMPX #ALC1F+260
 BNE CC23
 LDX #ALE1F
CC24:ADDA ,X
 LEAX 21,X
 CMPX #ALE1F+126
 BNE CC24
 LDX #ALF1F
CC25:ADDA ,X
 LEAX 17,X
 CMPX #ALF1F+238
 BNE CC25
 LDX #ALG1F
CC26:ADDA ,X
 LEAX 17,X
 CMPX #ALG1F+238
 BNE CC26
 LDX #ALH1F
CC27:ADDA ,X
 LEAX 18,X
 CMPX #ALH1F+54
 BNE CC27
 TSTA
 RTS
CC28:LDA #1
 RTS
;
;
;
;
MAIN:EQU *
;   **********
;   JSR PRTCT
;   **********
 JSR INIT1
MA01:JSR DEMO
 JSR INIT2
MA02:JSR INIT3
MA03:JSR INIT5
MA04:JSR MASUB1
 LDA <CHALF
 LBNE MA30
 JSR MSCHCK
 LDA <DIE
 BNE 3
 JSR CHECK
 LDA <ENTC
 CMPA #7
 BEQ MA06
 JSR MOVEC
 LDA <ENTC
 CMPA #6
 BEQ MA05
 LDX #MADT1-2
 LDA <ENTPT
 ASLA
 JSR [A,X]
 JSR MOVEN
 JSR FRMIS
 JSR MOVALM
 BRA MA10
MA05:LDA $1F93
 CMPA #14
 BNE MA10
 INC <ENTC
 CLR <ATKN
 BRA MA10
MA06:LDA <WAIT
 BEQ MA07
 DEC <WAIT
 BRA MA08
MA07:JSR CHAT3
 JSR CHAT1
 JSR CHAT2
MA08:JSR ATCK3
 JSR ATCK2
 JSR ATCK1
 JSR TRKT
 JSR APPBAL
 JSR ATCKB
 JSR MOVCB
 LDA <TRKC
 BMI 3
 JSR FRMIS
 JSR MOVALM
;
MA10:JSR MSCHCK
 LDA <DIE
 BNE 3
 JSR CHECK
 JSR MOVMIS
 JSR MSCHCK
 JSR FCMES
 LDA <TRKC
 BPL MA11
 JSR TRKCP
 LDA <TRKC
 LBNE MA04
 DEC <

$9A00

 MA20
 JSR INIT4
 LBRA MA03
;
MA20:JSR OVER
 LBRA MA01
;
MA30:LDA <CHFF
 BNE MA31
 JSR MSCHK2
 JSR CHALST
 JSR CHALMV
 JSR MSCHK2
 JSR MOVMIS
 JSR MSCHK2
 JSR MOVMY
 JSR FIRE
 LBRA MA04
MA31:CMPA #1
 BNE MA32
 JSR CHADTS
 LBRA MA04
MA32:JSR CHALMS
 JSR CHALM2
 LDD <CHLW
 LBNE MA04
 LDA #100
MA33:PSHS A
 JSR INTSB1
 JSR MOVMY
 PULS A
 DECA
 BNE MA33
 JSR CHLMC
 LBRA MA02
;
;
MADT1:EQU *
 FDB $3780,$38FE,$39BF
;
;
;
;
;
END:EQU *
;
;
;
;
ALCT:EQU $1D00
ALCCT:EQU $1D01
TTTT:EQ

$9D96

QU $1D5B
REDD:EQU $1D5C
ENTPT:EQU $1D5D
ROUND:EQU $1D5E
CHALF:EQU $1D5F
ATKMN:EQU $1D60
ESF1:EQU $1D80
ESF2:EQU $1D81
ESF3:EQU $1D82
ESF4:EQU $1D83
ESF5:EQU $1D84
ESF11:EQU $1D8A
ESF12:EQU $1D8B
ESF13:EQU $1D8C
ESF14:EQU $1D8D
ALCTT:EQU $1DA0
CCA:EQU $1DC6
MYBF:EQU $1DD0
MYBX:EQU $1DD1
ESXA:EQU $1DD2
ESCA:EQU $1DD4
ESXB:EQU $1DD5
ESCB:EQU $1DD7
ESXC:EQU $1DD8
ESCC:EQU $1DDA
BGMX:EQU $1DDB
BGMC:EQU $1DDD
II:EQU $1DC3
I0:EQU $1DC4
ENT1:EQU $1DEA
;
;
ALA1F:EQU $1E00
ALB1F:EQU $1E40
ALC1F:EQU $1F10
ALE1F:EQU $2020
ALF1F:EQU $20A0
ALG1F:EQU $2190
ALH1F:EQU $2280
MS1X:EQU $22C0
;
;
CH3216:EQU $2400
CH168:EQU $2455
TI

$68A6

Lovely Mhoohm ♥♥♥   Momo,Nina,Lum ♥♥♥  GALAGA     by Toshihiko Kurebayashi.....