Jump to content

Donkey Kong source code


51 replies to this topic

#26  

    Space Invader

  • 29 posts
  • Joined: 14-April 07

Posted Sat Aug 30, 2008 10:50 PM

View PostCurt Vendel, on Sat Aug 30, 2008 11:30 PM, said:

Landon,

Okay just pulled up the Master backup from 9/4/1984 and I found a directory called UTIL which has about 53MB's of utils in it, I see AMAC, CAMAC, LINK65, CRASS65, and tons more... so I'll work on this tomorrow, post it up onto atarimuseum.com and post a link, should be a good start for everyone.


BTW... do you remember what the VGER database was for? Its on the backup and right now, it and CEO_MAIL are two apps which I've been unable to clear text access the contents. I've spoken with a few DG guys and there was never any kind of conversion or modern day app ever written, so it may be necessary to try and access them through a DG emulator.


Curt

I have no idea what VGER was.

I do remember that the MV/8000 was used for both engineering and office work (one of the things that made turnarounds so bad -- like 45 minutes -- during "working hours" were the number of people logged in and doing email on the crappy script-driven office management system). So you should find plenty of toothy political gold in the email databases from the DG machines.

The Data General minis were indeed sweet machines; I would have preferred a Unix system, but the DG had a very capable screen-based programmer's editor and a pretty nice file system. Atari could have done worse.

#27 ONLINE  

    The Mad Moderator

  • 19,589 posts
  • Joined: 24-April 01
  • Screaming at Fate
  • Location:Elysium

Posted Sat Aug 30, 2008 11:36 PM

View PostCurt Vendel, on Sun Aug 31, 2008 12:30 AM, said:

BTW... do you remember what the VGER database was for?
VGER?

http://en.wikipedia.org/wiki/V%27ger

:ponder:

Probably just a coincidence in the naming... :D


View Postlandondyer, on Sun Aug 31, 2008 12:45 AM, said:

I never wrote any code for it. The original programmer was fired before it was finished, but I don't remember who wound up completing it. Probably Jeff Milhorn (who was the "junior" programmer on it) and Kevin Sacher (who was managing the group by then).
I always thought it was a good port of the coin-op. The controls don't seem as tight as they should be sometimes (especially on he first level), but everything from the coin-op was there and the gameplay was top notch (love that spark level). I think the only thing missing was that little animation of DK Jr on the umbrella going to Mario's hideout.

View Postlandondyer, on Sun Aug 31, 2008 12:45 AM, said:

I do remember that Dk Jr. was started in FORTH, and was an ego-driven disaster until that nonsense stopped.
You know, that has to be the third or fourth (or should I say FORTH) time that I've heard someone mention games being attempted in FORTH with disastrous results (a few 7800 games come to mind). Was it common to program games in FORTH at the time, or was it just something certain programmers did? I wouldn't think FORTH would be fast enough for games.

Tempest

#28  

    Space Invader

  • 29 posts
  • Joined: 14-April 07

Posted Sun Aug 31, 2008 12:08 AM

View PostTempest, on Sun Aug 31, 2008 12:36 AM, said:

You know, that has to be the third or fourth (or should I say FORTH) time that I've heard someone mention games being attempted in FORTH with disastrous results (a few 7800 games come to mind). Was it common to program games in FORTH at the time, or was it just something certain programmers did? I wouldn't think FORTH would be fast enough for games.

Tempest

The programmer in question was adamant at the start that using FORTH was superior in terms of speed of delivery, space occupied by the code, and quality. In other words, much better than programming in assembler. He'd deliver DK Jr in record time. Management believed him.

So he got Atari to spring for this $800 FORTH package that came with a thick binder of documentation printed on funny-colored paper (to prevent photocopying) and wouldn't let anyone near his code. Nobody else got a copy of this package. He mucked around in FORTH getting stuff prototyped and "ready to write code" for months. And after like five months he had one or two screens working, and no sound, and the thing sucked. And all the time he was bragging about how FORTH was going to let him whip through the rest of the game like snot through a greased pig (or something like that), but it was already late, it was clear he was at sea and wasn't going to come through.

There had been a bunch of layoffs, but none that had affected engineers (just sales, marketing, manufacturing, and some research folks). So in the first round of layoffs where they had to jettison actual engineers, he was gone. Pretty bitter about it, too. I remember a sense of relief that they'd finally bagged him.

So Jeff Milhorn and maybe someone else took over, and delivered a pretty good game in a few months. I was impressed with the recovery.

Later, I heard from a Coin-op veteran something along the lines of, "Yeah, every couple of years someone discovers this FORTH thing and thinks they can do games in it, and it never works out." Turns out that Atari *did* ship a game written in FORTH: It was the pinball machine "Four by Four."

#29  

    Quadrunner

  • 7,947 posts
  • Joined: 30-September 01
  • Location:Baden-Württemberg, Germany

Posted Sun Aug 31, 2008 1:49 AM

Your guys rock!

I love those ancient stories... esp. when founding those old sources... but good to have Landon on board as well. :)

DK jr in Forth? ;)

#30  

    Stargunner

  • 1,361 posts
  • Joined: 14-September 07
  • RLA
  • Location:The Netherlands

Posted Sun Aug 31, 2008 5:17 AM

Wow these are real treasures. It explains what was really going on when I was six and played DK :cool: Well documented too.
It would be nice if someone could compile those sources.

Are there also sources from Pacman?

#31  

    Sheik Yerbouti

  • 20,365 posts
  • Joined: 24-June 01
  • Location:The land of Gorch

Posted Sun Aug 31, 2008 6:23 AM

View PostTempest, on Fri Aug 29, 2008 8:24 AM, said:

Hammer sound (?what???) - I know there's music for the hammer, but is there a sound?
Yes, when a hammer strikes an object.

#32  

    River Patroller

  • 4,225 posts
  • Joined: 23-April 01
  • Location:Carmel, New York

Posted Sun Aug 31, 2008 9:01 AM

Corp research had BSD Unix running on one of its Vax and was connected to Arpanet (Pre-Internet) at the time, infact if you do a refined search of google groups, you'll find emails from the atari.uucp dating back to early 1982...

Forth for game writing... hey why not just do it in Cobol ! ;-)



Curt



View Postlandondyer, on Sat Aug 30, 2008 11:50 PM, said:

View PostCurt Vendel, on Sat Aug 30, 2008 11:30 PM, said:

Landon,

Okay just pulled up the Master backup from 9/4/1984 and I found a directory called UTIL which has about 53MB's of utils in it, I see AMAC, CAMAC, LINK65, CRASS65, and tons more... so I'll work on this tomorrow, post it up onto atarimuseum.com and post a link, should be a good start for everyone.


BTW... do you remember what the VGER database was for? Its on the backup and right now, it and CEO_MAIL are two apps which I've been unable to clear text access the contents. I've spoken with a few DG guys and there was never any kind of conversion or modern day app ever written, so it may be necessary to try and access them through a DG emulator.


Curt

I have no idea what VGER was.

I do remember that the MV/8000 was used for both engineering and office work (one of the things that made turnarounds so bad -- like 45 minutes -- during "working hours" were the number of people logged in and doing email on the crappy script-driven office management system). So you should find plenty of toothy political gold in the email databases from the DG machines.

The Data General minis were indeed sweet machines; I would have preferred a Unix system, but the DG had a very capable screen-based programmer's editor and a pretty nice file system. Atari could have done worse.


#33  

    River Patroller

  • 4,225 posts
  • Joined: 23-April 01
  • Location:Carmel, New York

Posted Sun Aug 31, 2008 9:05 AM

I remember back in college, we had an 11/750 upstairs in the computer center. I used to Proctor down in the computer room so I was living there all the time practically, there used to be this game called Conquest which was a Star Trek game that ran on the old VT100's with ASCII animation... it was a phenomenal game.

Well we'd get about 8-10 people on playing that in real time against one another and you'd have people trying to compile code for classes as well... we would bring that Vax to its knee's...

One afternoon I came in and was all set for a good round of Conquest... the Sysop's pulled it off of the system :-( Too bad too, it gave everyone something to look forward to each day.



Curt

View Postlandondyer, on Sat Aug 30, 2008 11:50 PM, said:

View PostCurt Vendel, on Sat Aug 30, 2008 11:30 PM, said:

Landon,

Okay just pulled up the Master backup from 9/4/1984 and I found a directory called UTIL which has about 53MB's of utils in it, I see AMAC, CAMAC, LINK65, CRASS65, and tons more... so I'll work on this tomorrow, post it up onto atarimuseum.com and post a link, should be a good start for everyone.


BTW... do you remember what the VGER database was for? Its on the backup and right now, it and CEO_MAIL are two apps which I've been unable to clear text access the contents. I've spoken with a few DG guys and there was never any kind of conversion or modern day app ever written, so it may be necessary to try and access them through a DG emulator.


Curt

I have no idea what VGER was.

I do remember that the MV/8000 was used for both engineering and office work (one of the things that made turnarounds so bad -- like 45 minutes -- during "working hours" were the number of people logged in and doing email on the crappy script-driven office management system). So you should find plenty of toothy political gold in the email databases from the DG machines.

The Data General minis were indeed sweet machines; I would have preferred a Unix system, but the DG had a very capable screen-based programmer's editor and a pretty nice file system. Atari could have done worse.


#34  

    Space Invader

  • 29 posts
  • Joined: 14-April 07

Posted Sun Aug 31, 2008 10:42 PM

View PostCurt Vendel, on Fri Aug 29, 2008 10:21 AM, said:

Here it is, have fun...


Curt

What's the story on redistribution of this? A few people have seen the pointer to the code in my blog, registered on AtariAge, and are unable to download it [I don't know the reason].

Any objection if I re-host somewhere? Or would you prefer it to remain accessible only via AtariAge (or via the Atari Museum site)?

Completely up to you.


-landon

#35  

    Quadrunner

  • 5,695 posts
  • Joined: 22-April 01
  • 7800 Guy
  • Location:Southern California, USA

Posted Sun Aug 31, 2008 11:22 PM

View Postlandondyer, on Sun Aug 31, 2008 9:42 PM, said:

What's the story on redistribution of this? A few people have seen the pointer to the code in my blog, registered on AtariAge, and are unable to download it [I don't know the reason].

-landon

To download stuff from the forums you have to have to be logged in with an account. I'll let Curt answer the other part of your question.

Mitch

#36  

    Combat Commando

  • 1 posts
  • Joined: 31-August 08

Posted Mon Sep 1, 2008 12:21 AM

View PostMitch, on Mon Sep 1, 2008 1:22 PM, said:

View Postlandondyer, on Sun Aug 31, 2008 9:42 PM, said:

What's the story on redistribution of this? A few people have seen the pointer to the code in my blog, registered on AtariAge, and are unable to download it [I don't know the reason].

-landon

To download stuff from the forums you have to have to be logged in with an account. I'll let Curt answer the other part of your question.

Mitch

The account needs to be validated by an admin too I think. I got an email that it had, tried again and it worked.

Thanks for posting this, it reminds me of trying to program Ataris to do playfield animation in 6502 assembler a long time ago. Though my playfield animation was a lot worse than Landon's.

#37  

    Preppie!

  • 5,899 posts
  • Joined: 17-December 06
  • It's easy living in a bubble

Posted Mon Sep 1, 2008 2:24 AM

Wow, I love this old "Atari gold", even though I dont understand a lot of it, the stories are a real joy to read
Thanks

#38 ONLINE  

    River Patroller

  • 2,231 posts
  • Joined: 26-February 07
  • New Orleans Saints Super Bowl XLIV Champions
  • Location:Switzerland

Posted Mon Sep 1, 2008 2:28 AM

View Postmimo, on Mon Sep 1, 2008 10:24 AM, said:

Wow, I love this old "Atari gold", even though I dont understand a lot of it, the stories are a real joy to read
Thanks


#39  

    River Patroller

  • 4,225 posts
  • Joined: 23-April 01
  • Location:Carmel, New York

Posted Mon Sep 1, 2008 7:52 AM

Hi Landon,

If it goes on your site, sure that is not a problem.


Curt

View Postlandondyer, on Mon Sep 1, 2008 12:42 AM, said:

View PostCurt Vendel, on Fri Aug 29, 2008 10:21 AM, said:

Here it is, have fun...


Curt

What's the story on redistribution of this? A few people have seen the pointer to the code in my blog, registered on AtariAge, and are unable to download it [I don't know the reason].

Any objection if I re-host somewhere? Or would you prefer it to remain accessible only via AtariAge (or via the Atari Museum site)?

Completely up to you.


-landon


#40 ONLINE  

    River Patroller

  • 2,231 posts
  • Joined: 26-February 07
  • New Orleans Saints Super Bowl XLIV Champions
  • Location:Switzerland

Posted Mon Sep 1, 2008 8:18 AM

In this moment, 135 downloads!
Simple members or Atari programmers?

#41 ONLINE  

    The Mad Moderator

  • 19,589 posts
  • Joined: 24-April 01
  • Screaming at Fate
  • Location:Elysium

Posted Mon Sep 1, 2008 8:25 AM

View Postlandondyer, on Sun Aug 31, 2008 2:08 AM, said:

Turns out that Atari *did* ship a game written in FORTH: It was the pinball machine "Four by Four."
Actually 4x4 never shipped. There were only two built IIRC.

Ahh here are some pics: http://www.atarigame...e14/page14.html

Tempest

#42  

    Space Invader

  • 29 posts
  • Joined: 14-April 07

Posted Mon Sep 1, 2008 11:48 AM

View PostCurt Vendel, on Fri Aug 29, 2008 10:21 AM, said:

Here it is, have fun...

Curt

I had a bit more time to look at this, and I'm certain that it's not the final version of DK. Some things that I know are missing:

- A formatted comment near the gravity control stuff (label 'PtSVel') that explains the equations of motion.

- A piece of copy protection code that changes some zero-page values (in order to cause havoc). The JSR instruction is later checked to see if the stomper has been removed.

- The code in the file 'tr' that implements the easter egg isn't integrated anywhere (should be near the code that draws the title screen).

If someone was mucking with the code to (say) do a port, I could seem them removing the latter two, but not the first comment. Maybe this is a mix of files.

The proof is in the pudding, however. If it builds (and I'm not even going to try...) and appears to work, then people will certainly find it useful. The only major bug that was fixed "late" was a situation where Mario could fall and fall forever; it was possible for his velocity to grow so that he wouldn't evern intersect with a girder, so he'd just loop around off the bottom of the screen and back to the top. I think I just noodled the collision rectangles to deal with this.

So I would characterize this as "mostly finished" with me probably just twiddling my thumbs and adding the above stuff during the two weeks at the end of the project while Q/A ran through it. [Yeah, things were kind of fast and loose that way; programmers could add stuff during final testing and get away with it.]

#43  

    Quadrunner

  • 27,072 posts
  • Joined: 23-January 01
  • Location:NGC 224

Posted Sat Sep 13, 2008 10:47 PM

Welcome Reddit users! I've removed the restriction that you have to be logged in in order to download the source in the first post of this thread..

..Al

#44  

    Combat Commando

  • 3 posts
  • Joined: 14-September 08

Posted Sun Sep 14, 2008 11:47 AM

View Postlandondyer, on Sun Aug 31, 2008 8:08 AM, said:

So he got Atari to spring for this $800 FORTH package that came with a thick binder of documentation printed on funny-colored paper (to prevent photocopying)
That would've been ValForth, printed in repro-blue ink on yellow paper. Hard as hell to read. It was a good package if you didn't mind coding for an hour and then sitting there swapping 5 or 6 diskettes as you hoped it would compile. It was the best FORTH package there was for the 800.

View Postlandondyer, on Mon Sep 1, 2008 7:48 PM, said:

- A piece of copy protection code that changes some zero-page values (in order to cause havoc). The JSR instruction is later checked to see if the stomper has been removed.
I don't quite follow. Are you referring to the indirect addressing which was used as a protection scheme (the hardest to bypass -- could take days to trace through), storing index and temp values on Page 0 (often trying to tie them into game-based counters like in Defender)?

#45  

    Dragonstomper

  • 713 posts
  • Joined: 11-July 07
  • Location:Western New York USA

Posted Fri Sep 19, 2008 9:24 PM

Last year, KJMANN12 asked if I was interested in helping him making an update for Donkey Kong. Think he was looking for smoother game play and wanted to replace the music /sound FX with RMT. I am currently tied up with many projects and cannot get involved right now. However if someone does want to undertake this project, you may send him an email on Yahoo.

Tried to look at the source and wonder if it can be ported to MADS or XASM because those are very easy to work with.

#46  

    Bryan G.

  • 2,590 posts
  • Joined: 22-January 02
  • Dreaming... of more NES
  • Location:Merida, Yucatan, Mexico

Posted Fri Sep 19, 2008 10:21 PM

Was it true that DK was just a reprogrammed Radar Scope machine?

#47  

    Combat Commando

  • 3 posts
  • Joined: 14-September 08

Posted Sat Sep 20, 2008 1:42 AM

No. It used the same basic hardware but was designed from the ground up. Using the same main board allowed Nintendo to ship DK conversions for the unpopular Radar Scope (though RS was one of my non-Atari faves from the year) as well as re-purpose a lot of unsold units.

#48  

    Dragonstomper

  • 538 posts
  • Joined: 07-November 02
  • Location:Atlanta, GA

Posted Sat Sep 20, 2008 6:26 PM

View PostM W Grossmann, on Sat Sep 20, 2008 3:42 AM, said:

No. It used the same basic hardware but was designed from the ground up. Using the same main board allowed Nintendo to ship DK conversions for the unpopular Radar Scope (though RS was one of my non-Atari faves from the year) as well as re-purpose a lot of unsold units.

I always hear how Nintendo considered Radar Scope a failure, but in our arcade everybody loved that machine.

#49  

    River Patroller

  • 3,347 posts
  • Joined: 07-January 03
  • Location:Goldsboro NC

Posted Sun Sep 21, 2008 3:57 PM

The LYNX could use this source code to right? I know the CPU's are the same.

#50  

    Dragonstomper

  • 713 posts
  • Joined: 11-July 07
  • Location:Western New York USA

Posted Sun Sep 21, 2008 7:13 PM

Both the 7800 and Lynx probably could use it, but keep in mind the Graphics are processed much differently. You would have to replace all the Antic/GTIA/Pokey stuff with Maria, and what ever the Lynx uses.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users