Game Boy Zelda Comes With Source, Sort Of
Jamie found a fun story about a 90s Zelda Game Boy ROM that shipped with the source code- not so much on purpose, but more because the linker padded out the last meg of ROM with random memory contents, which happened to include game source code.
I guess the only way to really avoid the malloc() calls grabbing your source code would have been to compile, then reboot to link...so the extra data thats padded on the end of the ROM image would just be your emtpy RAM contents.
Obligatory blog plug: http://www.caseybanner.ca/
News Post Comes With Article, Sort Of
Awesome. :) This must be why they always say not to code whilst drunk.
Air Fortress (Famicom version) also included a portion of the source code due to not clearing memory before linking.
Now the site is Wordpressed (like Slashdotting, only the other way around) and you can't get to it, but one of the last posts before it died pointed out that this was from a trainered version. That's where someone adds cheat code to a ROM. As it turns out, the original doesn't have any of the code in question. Dissassembling for the purpose of adding cheats is a completely sensible explanation of the code that was found.
The moral of the story? Start with a known clean dump (look for the "[!]" tag) before assuming that the introns were in the original game.
#naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
This is a non-story. This only applies to a specific Pirate ROM Dump of Zelda DX. The clean dump does not contain any embedded source code.
One of the 'Elite' sequels was shipped with a swap file on the CD-ROM. Opening that swap file with a text editor showed it included much of the C code for the game, which presumably must have been swapped out while they were compiling at some point and then copied to the CD by mistake.
:).
From what I remember the installer copied the swap file to the hard disk, but the first patch either deleted it or zeroed it
"X-Men - Wolverine's Rage" (MD5: b1729716baaea01d4baa795db31800b0), which contains Windows 9x registry keys and INF files, "Mortal Kombat 4 (MD5: 7311f937a542baadf113e9115158cde3), in which you can find some small source fragments, "Gift" (MD5: e6a51088c8fea7980649064bd3a9f9ff), which will tell you that the developers had some Game Boy emulators installed on their system, or the "BIT-MANAGERS" games "Spirou" (MD5:5aa012cf540a5267d6adea6659764441, Turbo C, MAP file, source) and "TinTin in Tibet" (Game Boy Color version, MD5: 8150a3978211939d367f48ffcd49f979), which, amongst other things, contains references to Nintendo's Game Boy Advance (!) SDK ("C:\Cygnus\thumbelf-000512\H-i686-cygwin32\lib\gcc-lib\thumb-elf\2.9-arm-000512, "/tantor/build/nintendo/arm-000512/i686-cygwin32/src/newlib/libc/stdio/stdio.c").
While modern operating systems will always clear all malloc()ed memory, so that you cannot get to other processes' data
What do they mean by clear the memory? Because when I malloc() (and not calloc()) I seem to get whatever was there before..
You just got troll'd!
Golden Axe 2 (the arcade ROM) has a good chunk of it's source code contained in there too, including the source for it's security routine (oh the hilarity...)
And the PAL version of ICO (PS2) had an objdump of the entire ELF on the disc, which is basically a disassembly with full symbol information.
Kayamon
So the GameBoy Advance SDK uses MinGW32 and Newlib? Neat!
I remember looking at a PC-Engine CD-ROM ages ago - I think it was Golden Axe - that contained bits and pieces of the source code as well. Probably for the same reason.
As a kid I had a surplussed computer called the "Interact Model R." All of the game tapes were 8K even, and at the end of many of them I found commented 8080A assembly code for other games and the BASIC interpreter that was supplied with the system (yes, it was on tape for this machine). Starting with 200 lines of source I would eventually reverse assemble the entirety of what I later learned was Tiny BASIC.
Brackets contain world's first nanosig, highly magnified:[.]
Gamepack ROMs were up to 8 Mbits in size (http://en.wikipedia.org/wiki/Game_Boy), while the article says something about padding a 2 MB ROM with random stuff. Hmm.
"Stuff that matters" is sarcastic.
Actually, I've noticed that lately it says something about going outside. Also sarcastic.
what can be seen as a life saver om hardrives (that by default, "deleted" files are still there but not part of the file system) can be a troublesome issue in ram?
oh wait, not zeroing a hardrive can be bad, if one sell of a old one...
comment first, facts later. http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm
find it amusing that this happened because of the Link-er.
I can't be the only one...
Can I?
I'll get me coat.
memset(ptr,0,size)
Engineering is the art of compromise.
Old-time ZX Spectrum guy here. IIRC there was some (assembly) source code embedded in the original release of Manic Miner. I guess that would be around 1982... nothing new here :) I remember seeing that and thinking it was pretty cool. (the source code was removed when Software Projects re-released the title... 1983 I think)
Posted anonymously to hide my shame of working with visual FoxPro.
.exe It just included a runtime and the source code in the .exe file. If you looked at it ina hex editor, there was the full source code, complete with comments. Apparently there was an option to scramble the source code. The guy responsible for building the installation didn't do that.
FoxPro, I discovered after shipping our product for 2 years, didn't really compile anything when you made an
As for the source code in the ROM, check out some of the comments on our site. The slashdotters above commented on it above. This post is from months ago, too - why on Slashdot now?
Anyway, A Japanese PlayStation game named "Beatmania Best Hits" came with the complete source code to "Beatmania 5th Mix", another PlayStation game in the same series. Supposedly, it was complete enough to actually compile and run.
PlayStation games of the era had to have a ~30 meg file of zeros on them at the outer edge due to a problem with the drive. These were known as "DUMMY" files. Some unknown sneaky programmer at Konami put an LZH archive containing 5th Mix's source code as the DUMMY file. (The contents of the file didn't technically matter, it just had to be at the outer edge.)
"Screw Sun, cross-platform will never work. Let's move on and steal the Java language." - Visual J++ Product Manager
Thats when you are under the Mobile section of the site. I'm not sure if that's so sarcastic, but meh
je suis parce que j'aime
Dude, get this...I downloaded this game, I think it was called Quake 3...well, I started poking around on their website and found all the source code! Crazy huh?
Movable Type is extremely resource-intensive while rebuilding pages, but it then serves the pages as static files. OOTB it's much better suited to handling traffic. If an MT site is slashdotted it's because Apache fell down, not MT (unless everyone's visiting, then leaving comments or running searches). MT doesn't enter the picture until content is updated. WP does as soon as someone tries to view a page.
Still, while WP can be a bit server-intense, this is typically due to poorly-written plugins rather than the core. And if you install any of the caching plugins it can perform very well indeed.
I once found a subdirectory called "sparky" on a CD which I got from Oracle which contained the complete unrestricted (no keys required) installation of MS-Office.
"Be grateful for what you have. You may never know when you may lose it."
This reminds me of one of the several oopsies that led to the demise of Weitek. (This one wasn't the last straw. But it was a pretty big bale.)
An administrator decided that, to save money, those darned resource-wasting engineers would be limited to one new floppy disk per week.
So floppies got reused a lot. And of course eventually somebody got sloppy.
The master for one of their graphics driver distributions was built on a recycled floppy disk. Of course the old files were deleted, rather than the disk being reformatted with a surface-analysis (and data wiping) pass. And of course this master was sector-cloned for production.
Turns out the entire source code for the drivers had previously lived on that disk - and many of the algorithms that made the product cutting-edge were either in the driver or had enough info in the driver source about what the chip was up to that it made reverse-engineering a snap.
So just apply any of several "undelete the lost files" tools to any copy of the distribution disks and you could recover pretty much the whole source code, comments and all.
Shortly after this, the best of Weitek's cutting-edge algorithms became industry standards.
That's one of the characteristics of Trade Secrets. Once it's no longer a secret (especially if the owner managed to leak it himself), it's public domain.
Bantam Dominique roosters crow a four-note song. Once you've heard it as "Happy BIRTHday" you can't NOT hear it that way
Mobile obviously means when you walk from the microwave to your chair... those three feet without my /. would be like an eternity in hell... the outside stuff is just a joke to make the so-called 'normal' people think we know what the 'light of day' looks like from more than those cheesy outdoor porn videos!
Me failed English...
FreeBSD over Linux. If my comments seem odd, this may explain...
Yar's Revenge!
Hard to read it, though.
Is there a draft? I feel exposed. (See my username.)
After all the mistakes in today's stories, the editors must have committed ritualistic suicide to end their shame.
You *could*, in theory, just use whatever memory you wanted, but that would run the risk of crapping all over any TSRs or drivers you had loaded. And if any of them had hooked, for instance, the timer interrupt? Well.
I want those 2 minutes of my life back.
The phrase "more better" is acceptable English. suck it grammar Nazis
A long time ago I bought a game with a collection of TSR games like eye of the beholder I-III. On the same disk was a demo of Blood and Magic. Curiously though, there was a SRC directory on the CD which contained C++ source code... including snippets like #ifdef DEMO :)
(I did try to compile it but there were some syntax errors in the source code so it wouldn't work out of the box though.)
In my opinion, one is better off reading the Bible as a collection of stories and descriptions of our past, whether one believes it or not. Looking at it as some kind of source code is ridiculous and misses the point. Whether one believes the Bible or not, or believes it to varying degrees, it can be informative whether spiritually or historically. But looking for answers as though it is some kind of machine misses the point.
(..You lime-laced Teadrinkers can save your "buht IIS is sec0re n0wez!!11!!11!!" -turdmania for going about trolling some other post(s), ktnx..)
A horse can't be sick, you know, even if he wants to.
To think that the Borg are so careful to keep their source code secret, yet it could be downloaded from the Bible, is almost as funny as this Zelda thing having its own source code in random padding in the game's image.
If we assum that the universe is infinite we can also probably read a hard disk image of a fully working Windows Vista Ultimate installation along with all greatest hits of several RIAA-owned artists from the background radiation somewhere. We can even do that today, from locally-available data, if we just apply enough transformation steps. Likewise, we can use Moby Dick as an accurate prediction of future (by the time it was written) events, just by fitting the data in there.
Even if the original Torah did contain all knowledge in some kind of compressed form, it would be indistinguishable from random noise and indeed I think that the exact same amount of knowledge could be found in all similarly-sized works of text.
USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
Subby has a different definition of random from the rest of the universe.
word.
Somewhere around 2000-2001 more people learned about emulation, and pretty much ruined everything by showing up in random places and demanding game images, and not caring about the actual systems and history. I gave up on emulation around that time, because of its increased popularity and the ignorant masses. I understand now that everyone knows what an emulator is, because of things like the xbox classic arcade games or the wii classics or whatever, so it's possible that there was a third wave after 2001, which is what you might be talking about.
No, maybe not. That pretty much describes 1998-9, only I would have said "very faithful".
Yeah Jesus, but you forget one thing: There was a book published called The Bible Code, and they demonstrated through experimentation that codes were found in this Torah text that could not be found in any other text of similar size that was tried in the experiment. Bottom line? Put infinite monkeys at infinite keyboards for an infinite amount of time and let them pound away and one will produce the entire works of Shakespeare. Put one monkey at one keyboard for one day and he'll produce that operating system for you, duplicated bug-for-bug.
Actually, I mentioned Moby Dick as a reference to an experiment that showed how you could read predictions about pretty much everything out of any text. Further information behind this link.
USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
I've seen that before in Commodore 64 binaries, particularly something from Electronic Arts... "Worms" (not the one that came later, the automata game), I think, was one I remember, but it's been twenty years, so I could be mistaken.
Of course, if you look at a copy of it now, that stuff might've been removed to make it load faster. After twenty years, maybe I can deny knowing how that could've happened too.
IAWTP.
http://xkcd.com/323/