(bad?) DMK/PDI dump of Gize!/XIX - need advice...

Page 8/8
1 | 2 | 3 | 4 | 5 | 6 | 7 |

By max_iwamoto

Champion (488)

max_iwamoto's picture

19-08-2019, 03:12

The patch for Sailor Fuku Senshi Feris is here!

I also added trainer (unlimited energy) for all 3 disks, version without trainer also available:

https://drive.google.com/file/d/1zZDzGl1y8EseNxQ4G_pdQ5OTW7T...

232 also helped me to translate message to hold CTRL while booting to properly start the game...

---

The protection is similar to the COSMIC PSYCHO, but 3 code overlapping decryptions instad of 2. And encrypted game code located at 8000h instead of B400h. Decoder located @ A234h. Here is the new clean version that decode the main code/gfx and starts the game:

	PHASE	A110h

_A110:
	POP	HL
	LD	L,00h
	PUSH	HL		; HL = 8000h

	LD	HL,8003h
	LD	DE,529Bh
	LD	BC,2110h	; default = 217E

.loop_1:
	CALL	_A234
	XOR	(HL)
	RLCA
	LD	(HL),A
	INC	HL
	DEC	BC
	LD	A,B
	OR	C
	JR	NZ,.loop_1
;
	LD	A,CDh
	LD	(8000h),A
;
	LD	HL,8003h
	LD	DE,688Ch
	LD	BC,2110h	; default = 21E4h

.loop_2:
	CALL	_A234
	XOR	(HL)
	RLCA
	LD	(HL),A
	INC	HL
	DEC	BC
	LD	A,B
	OR	C
	JR	NZ,.loop_2
;
	LD	HL,8066h
	LD	(8001h),HL
;
	LD	HL,8003h
	LD	DE,53E9h
	LD	BC,2110h	; default = 2214h

.loop_3:
	CALL	_A234
	XOR	(HL)
	RLCA
	LD	(HL),A
	INC	HL
	DEC	BC
	LD	A,B
	OR	C
	JR	NZ,.loop_3
;
	RET

_A234:
	PUSH	HL
	PUSH	DE
	POP	HL
	ADD	HL,HL
	ADD	HL,DE
	ADD	HL,HL
	ADD	HL,DE
	LD	E,H
	LD	D,L
	RLC	H
	RLC	H
	RRC	L
	ADD	HL,DE
	LD	DE,1119h
	ADD	HL,DE
	EX	DE,HL
	LD	A,D
	POP	HL
	RET

_A110_LEN:	EQU	$ - _A110

By PAC

Guardian (5821)

PAC's picture

19-08-2019, 09:40

max_iwamoto wrote:
PAC wrote:

There seems to be a graphic corruption in disk A of Cosmic Psycho just when main presentation finishes. Similar than Gize! / XIX. BTW thank you for your work max_iwamoto. Wink

I didn't see any graphic corruptions... Could you let me know what config did you use?

Max

I'm just testing it in openMSX with different configurations MSX2, turbo R, etc. A friend confirms the same problem. You can see this at the end of main introduction.

By sdsnatcher73

Paragon (1098)

sdsnatcher73's picture

19-08-2019, 13:51

Also happens on real hardware (Yamaha CX7/128). The DMK on openMSX however does not have this issue:

By ImATrackMan

Expert (88)

ImATrackMan's picture

06-06-2020, 10:11

Was the data corruption on the .dsk conversion ever fixed?

By max_iwamoto

Champion (488)

max_iwamoto's picture

14-06-2020, 22:50

ImATrackMan wrote:

Was the data corruption on the .dsk conversion ever fixed?

Yes, I found the problem and fixed it. I am not sure what caused it. I need to see DMK analyzer, maybe there is a sector with wrong number or something similar. Basically what happens is that all games with this protection are converted from file based disk to sector based with file names 6+3 instead of 8+3 (BTW, another game with this protection has been discovered, I will upload patch when I get it). And it keeps directory in the 1st few sectors. If you look at the file 1.PRS, it should start from offset 2600h but it starts from 2400h. If you fix 13h (2600h) offset to 12h (2400h), the game will hang. But if you look in the image, from offset 3400h (1Ah), you will see dummy sector filled with E5. If you move this sector from offset 3400h to 2400h, the "file" 1.PRS will start from 2600h and inside file will not be disconnected from address 3400h to 35FFh. I will make a patch to patch DSK of disk A with removed protection and post here shortly.

Here is Cosmic Psycho running in BlueMSX:

EDIT: here is the link to IPS to fix GFX issue for DSK file of DISK A:

https://drive.google.com/file/d/1s2wxRIIA-Nx9ytibf37Y-4-FveB...

By sdsnatcher73

Paragon (1098)

sdsnatcher73's picture

15-06-2020, 07:33

Great job and well explained! Thanks for the patch.

Page 8/8
1 | 2 | 3 | 4 | 5 | 6 | 7 |