Do nothing. Do nothing. Do nothing. Stop.

by david 13. February 2011 22:31

So if I wanted to best describe the first program that ran on my DEC PDP-11/53 ... then it would have to be:

"Do nothing.  Do nothing.  Do nothing.  Stop."

But at least it worked.  I entered those commands as machine instructions in ODT (Octal Debugging Technique) and it ran.  Not much of a "Hello World" program though is it?

Here are the details of the instructions:

001000/240<lf>  ; NOP
001002/240<lf>  ; NOP
001004/240<lf>  ; NOP
001006/0<lf>
R6/1000<cr>  ; set to start code at 1000
R7/1000<cr>  ; set PC to start address so we can use P and not clr PS
RS/340<cr>  ; set PS to disable interrupts
P<cr>  ; start program

That program was a hacked version of something I found here.  Now I need to make it do something better.

About the author

David

I'm a C# developer having worked with .Net since it was in beta.  Before that I mainly worked in C and C++.  I have been developing commercial software for more than 20 years.  I also mess around with microprocesors, but that's just for fun.  I live near Cambridge, England and at the moment I'm contracted to one of the departments at Cambridge University.

Tag cloud