| |
Scout
Registered: Dec 2002 Posts: 1570 |
SID ID wanted
Who made the tune you hear in the intro of this demo? -> Welcome
Thanx!
---
Commodore 64 Scenemusic Podcast
http://8bitmayhem.blogspot.com/ |
|
... 8 posts hidden. Click here to view all posts.... |
| |
j0x
Registered: Mar 2004 Posts: 215 |
Quote: @j0x: Amazing zip search tool you seem to have there. Did it scan through the whole HVSC in .5 seconds?
Not quite.
In the example shown, it uses about 0.5 seconds to load (from cache) the zip file and about 1.5 seconds to search through it). It's the gross (as opposed to net) "real" time that's the practical number. In the example, about 2.5 seconds.
On my machine, first run is about 5 seconds (although I've never measured this), subsequent runs are about 2-2.5 seconds on my machine, depending on the length of the pattern to search for.
I've been using it a lot lately, doing HVSC archeology :)
/Stefan |
| |
j0x
Registered: Mar 2004 Posts: 215 |
Quote: How does this zip search pattern thing work?..
It's very simple. I load an uncompressed zip file to memory, then scan through the data of each of the files, looking for the specified pattern.
A pattern may contain wildcard nybbles, so:
a9008d2.d0
matches
a9 00 lda #$00
8d 2. d0 sta $xxxx
where $xxxx is $d020, $d021, $d022, ..., $d02f
Using wildcards it's possible to look for relocated code, etc.
The problem with searching through the HVSC collection using the straight-forward approach is that it takes forever to load each sid-file individually. Since the HVSC is distributed as an uncompressed zipfile inside a compressed zipfile, this method is not too inconvenient, and rather quick.
The pattern itself must be found manually.
/Stefan
|
| |
Laxity
Registered: Aug 2005 Posts: 459 |
Ok, but is it a custom tool you've written yourself? |
| |
j0x
Registered: Mar 2004 Posts: 215 |
Quote: Ok, but is it a custom tool you've written yourself?
Yup |
| |
TNT Account closed
Registered: Oct 2004 Posts: 189 |
A long time ago I wrote Amiga program for Nemesis1 to calculate ID for SIDs. It worked by patching sidplay.library and calculating CRC32 from the emulated output. It managed to ID dozen or so SIDs in second... Those were the times :) |
| |
Laxity
Registered: Aug 2005 Posts: 459 |
Ok cool.. Are you using some library to access the zip-file?
|
| |
Hein
Registered: Apr 2004 Posts: 942 |
Cool. Woopsadaysee... nice tune. Darn, wish I could find the demo from HSP where we used that same tune as well, it gave it a happy mood..
Jeff, what did you do in 1988? Suck on your moms titty? |
| |
Scout
Registered: Dec 2002 Posts: 1570 |
Quote: Cool. Woopsadaysee... nice tune. Darn, wish I could find the demo from HSP where we used that same tune as well, it gave it a happy mood..
Jeff, what did you do in 1988? Suck on your moms titty?
Hein,
It's in the intro of HSP's Mega-Strike
---
Commodore 64 Scenemusic Podcast
http://8bitmayhem.blogspot.com/ |
| |
j0x
Registered: Mar 2004 Posts: 215 |
Quote: Ok cool.. Are you using some library to access the zip-file?
Nope, banging the bytes by hand. That's why it doesn't accept compressed data. I could have used zlib, but it works fine as it is.
/Stefan
|
| |
Soren
Registered: Dec 2001 Posts: 547 |
@Hein: not quite... I'm not that young, so I was actually trying to suck your dick a bit but realised that it also was small back then :-) (j/k)..... (just trying to say that I'm not much younger than you ;-)
|
Previous - 1 | 2 - Next |