News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

New application to find files

Started by Devilmarkus, 18:11, 19 May 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Yesterday arnoldemu and me had a crazy idea:
Why not search a folder full of files for every file which contains a special binary code (or string)
So I coded a little tool which does this.
You can use it for example to find all cpc+ games in a folder or in it's subfolders.
Just search for the ASIC unlock code:
ff 77 b3 51 a8 d4 62 39 9c 46 2b 15 8a

It will list all DSK, CPR or other files (BIN etc...) which contain this code sequence.

You can of course also search for a string. Just select "As String" and enter your search string (case sensitive here!)

You at least need the first search field filled.
When you also fill out the 2nd search field, all files are listed, which contain data from searchfield A and from B
When you fill the 3rd search field, too, all results are shown which contain data from A, B and C.

The tool also crawls through ZIP files and lists the sip entries, too...

When you click then on "Export" a txt file is stored in the FileCrawler's directory containing the result list.

Screenshot and download:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

Funny result:
I tested the CPCGamesCD for all games which contain the ASIC unlock mechanism.

Then I found this one: "Bumpy's Arcade Fantasy"

Well, it dont use any visible + effect, but it unlocks ASIC... Crazy.
Perhaps someone could find out, why and if it does use + features?

You find the game here: http://www.cpc-power.com/index.php?page=detail&onglet=dsk&num=500
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

fano

Quote from: Devilmarkus on 18:29, 19 May 11Well, it dont use any visible + effect, but it unlocks ASIC... Crazy.
Perhaps someone could find out, why and if it does use + features?
Maybe because it was planned on + first and some code has not been removed (we can find sometimes some unexpected things in binaries like parts of source code for example)

BTW nice app  ;)
"NOP" is the perfect program : short , fast and (known) bug free

Follow Easter Egg products on Facebook !

arnoldemu

Quote from: Devilmarkus on 18:29, 19 May 11
Funny result:
I tested the CPCGamesCD for all games which contain the ASIC unlock mechanism.

Then I found this one: "Bumpy's Arcade Fantasy"

Well, it dont use any visible + effect, but it unlocks ASIC... Crazy.
Perhaps someone could find out, why and if it does use + features?

You find the game here: http://www.cpc-power.com/index.php?page=detail&onglet=dsk&num=500
Nice find.

Yes it does unlock the features, but it doesn't seem to use anything.
I haven't looked at the code in detail just looked at the values in the debugger.
Nice find though.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

There is code in there to write to the plus palette, I don't see where it's used yet.
Is there an original version out there?
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Kris

Nice tool !! Very easy to use and funny results as you mention above  :-\

Devilmarkus

Quote from: Kris on 22:20, 21 May 11
Nice tool !! Very easy to use and funny results as you mention above  :-\

Thankyou. Yes the results are funny sometimes.

Our idea was to find in all CPC games the code to control the Amstrad SSA-1 speech synthesizer.
We wanted to find all games which use hardware speech.
But we did not find the proper code signature we should search for.
01 EE FB 49 exist in MANY games!!!  ???
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

arnoldemu

Quote from: Devilmarkus on 22:38, 21 May 11
Thankyou. Yes the results are funny sometimes.

Our idea was to find in all CPC games the code to control the Amstrad SSA-1 speech synthesizer.
We wanted to find all games which use hardware speech.
But we did not find the proper code signature we should search for.
01 EE FB 49 exist in MANY games!!!  ???
We discovered the problem. The port is also shared by the PDS system, and it seems it's this code it finds mostly.
But also interesting to know the games developed with such a system.

However, i think the tool is still useful.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

I looked at Bumpy's Arcade Fantasy.
I found the unlock sequence.
there seems to be some code for checking if it's plus, and then it sets location 0037 to 1, but it has been removed it seems :(
But if you run the game, poke 0037, then you'll get plus colours. You may have to stop it just after it does the unlock sequence.
@273a should do it.
I don't know if it's a bad crack, or it was deliberately modified.
I see other parts of code which have lots of nops like some code has been removed after the game was built.
the check comes before the unlock sequence, so it must be doing something else to detect plus... (there are other ways without unlocking the features)



My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

arnoldemu

Ok I think I found the patch:

271b should be: cd d4 bc
or also known as "KL FIND COMMAND".
Well I am sure this is what was in original.

before this is a LD HL,&2ABE which points to the text "GAM","E"+&80
so the code searches for the |GAME RSX (to be found in system rom), then if it's found, it then sets the flag and + mode will work.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Devilmarkus

Thanks to Kevin I tested the game with CPC+ palettes.
Sadly JavaCPC cannot show the hall of fame, but I used WinApe here for the last screenshot.

Well, a possibility is, that CHANY disabled the Plus-Features of this nice game, because his CRAPPY intro does not work on CRTC type 3.
We cannot approve this until we don't find a original dump of the game... :(

But here are my screenshots:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

The titlescreen looks almost like the DOS version:
http://retropower.eu/dos.php?file=bumpy&boot=b
Cool...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

CPCLER


Devilmarkus

#13
Indeed!
Chany fucked up the game!
We managed to get a working dump of the original disk! (GAP protection)
This disk also has the + features!!!  ???

The original game uses 2 sides.

Edit: Attachments removed. The original dump is bad...
Dlfrsilver is working on it...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

redbox

That's a seriously cool discovery, well done Devilmarkus and arnoldemu.


So I take it you have all the software images available on your HDD?  And that there are no further hidden Plus finds...?

Devilmarkus

Well I just checked all games on the CPCGamesCD.
Perhaps there exist more games and maybe 1 or 2 of them use + code...
Don't know...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Kukulcan

Sadly for  Bumpy's Arcade Fantasy don't work fine.
Title screen, menu, hi-score is perfect, but only start game = black screen.
I hope than other original dumped and run correctly  :D  is funny to see CPC+ version.

Kukulcan


Bumpy's - Arcade Fantasy [CPC CPC+]


With the original dump, the memory is bad after choice of Platform Number


Need to poke this value for playing :


poke &8000, &C3
poke &8001, &03
poke &8002, &81
poke &8015, &42
poke &8016, &4A
poke &8018, &2F
poke &8029, &2F


but surely a problem of read protection ?

RockRiver

Do you think that this application could help us to find and extract z80 code for AY to make (and later play) *.AY files easer way than CPCSNIP or AYMakeR ?Sadly I'm a "traditional" score musician (only MIDI user) not coder... I want to compose on MIDI and then go to YM and AY to 8bit computers. I have to learn Z80 assembler?????





AMSDOS

Sounds useful for looking up which games use firmware (not that very many would  :-[ ). Does this application support wildcards or will there be any plans to incorporate wildcards?
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Devilmarkus

Quote from: Devilmarkus on 21:35, 23 May 11
Edit: Attachments removed. The original dump is bad...
Dlfrsilver is working on it...

Any news here?
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod