News for hackers. Stuff that matters.
Re:JavaScript PDP-1 emulator running the original code of “S... by user24 on Tuesday December 11, 2012 @05:15AM (#4903901)
It's not just a JS Spacewar - it's a JS PDP-1 running spacewar.
Re:JavaScript PDP-1 emulator running the original code of “S... by sgt on Tuesday December 11, 2012 @07:29AM (#4904264)
Yes thanks for pointing this out - I should have been more clear in the title!

If you look at spacewar.js you'll see the actual machine code in hexadecimal, I'd love to see this translated to PDP-1 assembly instructions, mnemonics and operands.

Edited: JonnieCache pointed out what I'm actually looking for: https://gist.github.com/4258114 This is really a lot of fun, I'm seeing a lot of exotic emulators in JS coming out recently.

Re:JavaScript PDP-1 emulator running the original code of “S... by lisper on Tuesday December 11, 2012 @12:20PM (#4905471)
More interesting-looking stuff here:

http://spacewar.oversigma.com/sources/

Re:JavaScript PDP-1 emulator running the original code of “S... by WalterGR on Tuesday December 11, 2012 @01:32PM (#4905913)
I wrote this comment for the IBM 362 submission (http://news.ycombinator.com/item?id=4902345). Seems appropriate here.

The Computer History Museum in Mountain View spent 2 years fully restoring a DEC PDP-1. You can go see it - I don't even think you need to pay for admission to the museum.

During the presentation, they load Spacewar! from paper tape, and two members of the audience can battle it out.

It's pretty amazing to play one of the first graphical computer games ever, on a computer first released 50 years ago. http://en.wikipedia.org/wiki/Spacewar!#Spacewar.21_today

Re:JavaScript PDP-1 emulator running the original code of “S... by pan69 on Tuesday December 11, 2012 @05:45AM (#4903999)
I'd interested to see the original source code somewhere.
Re:JavaScript PDP-1 emulator running the original code of “S... by JonnieCache on Tuesday December 11, 2012 @07:10AM (#4904219)
Re:JavaScript PDP-1 emulator running the original code of “S... by ajross on Tuesday December 11, 2012 @12:57PM (#4905714)
Mostly likely your PDP-1 assembly is a little rusty, so that may be hard to read in isolation. Refresh your memory with the original manual: http://bitsavers.informatik.uni-stuttgart.de/pdf/dec/pdp1/F1...

(Actually that just documents the hardware. Honestly I don't know if the assembler that built Spacewar still survives.)

Re:JavaScript PDP-1 emulator running the original code of “S... by sgt on Tuesday December 11, 2012 @01:19PM (#4905833)
"Refresh your memory". I liked that one.

Seriously though, check the following out for the PDP-1 Macro Assembler manual: http://bitsavers.trailing-edge.com/pdf/dec/pdp1/PDP-1_Macro....

Re:JavaScript PDP-1 emulator running the original code of “S... by ajross on Tuesday December 11, 2012 @01:37PM (#4905956)
Right, but is the DEC assembler the one in use at MIT? My memory (mostly from reading Hackers) is that their toolchain was a homebrew thing.
Re:JavaScript PDP-1 emulator running the original code of “S... by edstock on Tuesday December 11, 2012 @12:13PM (#4905439)
Just spent 15min playing it with a colleague, it's still a fun game 50 years later.