If you appreciate the work done within the wiki, please consider supporting The Cutting Room Floor on Patreon. Thanks for all your support!

Dragon Quest (MSX2)

From The Cutting Room Floor
Jump to navigation Jump to search

Title Screen

Dragon Quest

Developer: Enix
Publisher: Enix
Platform: MSX2
Released in JP: November 1986


SourceIcon.png This game has uncompiled source code.


An upgraded version of the MSX port.

Uncompiled Source Code

What seems to be music data, this time present from 0x16000-0x18000:

QV
	M0	LAHM,QV
	M0	SOH,CT
	M0	FAH,QV
	M0	SOH,QV
	M0	SIHM,QV
	M0	LAHM,QV
	M0	SOH,QV
	M0	FAH,QV
	M0	MIH,CT
	M0	REH,QV
	M0	MIH,QV
	M0	SOH,CT
	M0	DOH,CT
;	DW	CQV
;	DB	JUMP
	M5	SUSPCS
;	DB	JUMP
	M5	SUSPCS
	M0	FAHP,HF-CT-QV
  	M2	0,CT+QV
;	DB	JUMP
	M5	SUSPCT
;	DB	JUMP
	M5	SUSPCT
	M0	FAH,HF-CT-QV
  	M2	0,CT+QV
;	DB	JUMP
	M5	SUSPCQ
;	M14	0
SUSPCS:
;	DB	NTCONT,3
	M1 	FAHP,QQ,MV1
	M0	MIH,QQ
	M0	FAHP,QQ
	M0	MIH,QQ
	M0	FAHP,QQ
	M0	MIH,QQ
	M0	FAHP,QQ
	M0	MIH,QQ
;	DB	NTCOED
 	M6	RETS
;	M14	0
SUSPCT:
;	DB	NTCONT,3
	M0 	FAH,QQ
	M0	MIHM,QQ

	M0	FAH,QQ
	M0	MIHM,QQ
	M0	FAH,QQ
	M0	MIHM,QQ
	M0	FAH,QQ
	M0	MIHM,QQ
;	DB	NTCOED
	M6	RETS
;	M14	0
FIGHA:
;	DB	TEMPO,80
  	M8	0
	M13	ENV5,1
  	M0  DO,1
	;	DB	JUMP
	M5	FIGHAH
  	M0	DO,1
;	DB	JUMP
	M5	FIGHAH
;	DB	TEMPO,120
	M0 	DO,CT1
	M0	DO,SQ
	M0	DOP,SQ
	M0	RE,SQ
	M0	MI,SQ
; 	M14	0
FIGHA1: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B	JUMP
  	M5	KINGBS
;	DB	JUMP
  	M5	KINGBS
;	DB	JUMP
  	M5	KINGBT
  	M5	KINGBL
;*************************************************
;	DB	JUMP
  	M5	KINGBN
;	DB	JUMP
  	M5	KINGM
;	DB	JUMP
  	M5	KINGBL
KINGBN:
;	DW	DT50+ENV2
; 	M13  DT12+ENV6,1
  	M1	MIL,KQV-KSQ,MV1
  	M2	0,KSQ
  	M0	REL,KQV-KSQ
  	M2	0,KSQ
;	DW	DT12+ENV2
  	M0	LALL,KQV-KSQ
  	M2	0,KSQ
  	M0	REL,KQV-KSQ
  	M2	0,KSQ


;	DW	DT50+ENV2
  	M0	MIL,KQV-KSQ
  	M2	0,KSQ
  	M0	REL,KQV-KSQ
  	M2	0,KSQ

;	DW	DT12+ENV2
  	M0	LALL,KQV-KSQ
  	M2	0,KSQ
  	M0	REL,KQV-KSQ
  	M2	0,KSQ

  	M6	RETS
KINGBS:
  	M0	FALP,KQV-KSQ
  	M2	0,KSQ
  	M0	RELP,KQV-KSQ
  	M2	0,KSQ
  	M0	FALP,KQV-KSQ
  	M2	0,KSQ
  	M0	RELP,KQV-KSQ
  	M2	0,KSQ
KINGBT:
  	M0		FALP,KQV-KSQ
  	M2	0,KSQ
  	M0	RELP,KQV-KSQ
  	M2	0,KSQ
  	M0	FALP,KQV-KSQ
  	M2	0,KSQ
  	M0	RELP,KQV-KSQ
  	M2	0,KSQ
	M6  	RETS
KINGC:
;  	M2	0,KQV
  	M8	4+4+2
;  	M5	KINGAL

;	DB	NTCONT,QV
KINGCA:
  	M2	0,KWL
  	M2	0,KWL
  	M2	0,KWL
  	M2	0,KWL
  	M2	0,KHF
  	M5	KINGAS
  	M5	KINGM
  	M5	KINGCA
;*********


KINGCL:
;  	M13  DT12+ENV6,1
  	M0	DOP,KQV
  	M0	REP,KQV

  	M0	DOP,KQV
  	M0	REP,KQV
  	M0	DOP,KQV
  	M0	REP,KQV
  	M0	DOP,KQV
  	M0	REP,KQV
;	DB	JUMP
  	M5	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