code for really old games

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Shrykull
Jedi Master
Posts: 1270
Joined: 2002-07-05 09:11pm

code for really old games

Post by Shrykull »

Is it possible to get the source code for really old games, I was thinking about games like Asteroids (didn't that come out in the 70's actually? Not the 80's?) Perhaps some companies will actually a donate a game's source code to a university/college so they can see how it works. If games like Asteroids are only a few hundred kilobytes large, would it be possible to somehow crack the source code, trying every combination of 1's and 0's until you get the right one, is this possible at all? Trying to break the program into it's component parts to see what code it's made of?
User avatar
Drooling Iguana
Sith Marauder
Posts: 4975
Joined: 2003-05-13 01:07am
Location: Sector ZZ9 Plural Z Alpha

Post by Drooling Iguana »

Well, as far as I know, the really old games like Asteroids didn't technically have source code, since they were all written in assembler. As for getting the assembly code for it, that's fairly easy to extract from the ROM, although it wouldn't be much use to you since assembly code is very platform-specific.

On the other hand, there's been lots of Asteriods clones written over the years, and many of them are already open source. I'm in the process of writing one myself, as a matter of fact, and I'll be releasing the code when I'm done.
Image
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash

"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
User avatar
Shrykull
Jedi Master
Posts: 1270
Joined: 2002-07-05 09:11pm

Post by Shrykull »

Drooling Iguana wrote:Well, as far as I know, the really old games like Asteroids didn't technically have source code, since they were all written in assembler
.

What exactly is assembly code, is it a step up from binary, the most basic programming, machine code where you just typed 1's and 0's?
As for getting the assembly code for it, that's fairly easy to extract from the ROM, although it wouldn't be much use to you since assembly code is very platform-specific.
I don't know really anything about programming and I was wondering why exactly people need the source code to make changes, is there not a way to crack it like cracking password, trying every possible combination until you get the one that's a match for that particular line, etc.
User avatar
Keevan_Colton
Emperor's Hand
Posts: 10355
Joined: 2002-12-30 08:57pm
Location: In the Land of Logic and Reason, two doors down from Lilliput and across the road from Atlantis...
Contact:

Post by Keevan_Colton »

I think your best bet is looking for open source clones...cracking the code would technically be illegal thanks to certain strange laws recently added in america....dont forget that your marker pen is also illegal thanks to this ;)
"Prodesse Non Nocere."
"It's all about popularity really, if your invisible friend that tells you to invade places is called Napoleon, you're a loony, if he's called Jesus then you're the president."
"I'd drive more people insane, but I'd have to double back and pick them up first..."
"All it takes for bullshit to thrive is for rational men to do nothing." - Kevin Farrell, B.A. Journalism.
BOTM - EBC - Horseman - G&C - Vampire
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Shrykull wrote:
Drooling Iguana wrote:Well, as far as I know, the really old games like Asteroids didn't technically have source code, since they were all written in assembler
What exactly is assembly code, is it a step up from binary, the most basic programming, machine code where you just typed 1's and 0's?
Essentially, assembler has words instead of binary groups. (e.g. ADD rather than 010010 or whatever). It's almost always platform-specific as well.
I don't know really anything about programming and I was wondering why exactly people need the source code to make changes, is there not a way to crack it like cracking password, trying every possible combination until you get the one that's a match for that particular line, etc.
You can try and modify the actual binary itself, but that takes some skill. Many cracks for shareware programs work this way - they search the program for certain commands and then modify them. It is not easy, however, and high-level changes almost always require the source code to change.
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

Back in those days, I used Borland's turbo debugger to see the code from some games. I think it's better than most other debuggers, but chances are you won't get any source code.
Image
Post Reply