Re: a port of mullender.c to OpenBSD/vax/i386

2009-03-03 Thread x
  'h','e','l','l','o',' ','v','a','x','\n',

That wasn't quite right.  Amazingly, mullender.c works unmodified
on 4.3/vax.  Using simh-pdp11 and
www.tuhs.org/Archive/PDP-11/Boot_Images/{2.9BSD_rl02_1145.gz,README}
confirms that the output was the same on both machines.

Recipe for running 4.4/landisk:
gavare.se/gxemul/gxemul-stable/doc/guestoses.html

- - -

/*
 * A remake of www.ioccc.org/1984/mullender.c for
 * OpenBSD/i386/landisk/vax.  Public domain.
 */

char blob[] = {
  0,200,49,200,0,200,235,32,
  1,228,18,199,3,101,9,230,4,224,128,195,13,199,3,100,0,229,120,224,
  0,64,128,195,242,175,9,0,0,0,0,0,
  144,144,235,27,91,106,9,141,75,8,81,106,1,83,106,4,88,205,128,49,
  192,80,83,83,176,240,205,128,131,196,28,232,224,255,255,255,
  0,0,0,0, 0,225,245,5, 32,32,58,45,41,8,8,8,8,
  221,9,159,175,242,221,1,251,3,175,11,221,0,159,175,223,251,2,175,7,
  17,234,0,0,188,4,4,0,0,188,143,240,0,4,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,17,142
};

#include sys/types.h
#include sys/mman.h
int main(void) {
  mprotect(blob, sizeof blob, PROT_READ|PROT_EXEC);
  ((void (*)(void))blob)();
  return 1;
}



Re: a port of mullender.c to OpenBSD/vax/i386

2009-02-27 Thread ropers
Holy fucking shit, this SIMH thing emulates a PDP-7?
Would it be possible to run Space Travel and the first ever Unix (then
called Unics) on that?

Is someone here doing this? And is the code available?

http://en.wikipedia.org/wiki/Space_Travel_(video_game)
http://en.wikipedia.org/wiki/UNICS#History

regards,
--ropers

2009/2/27 x where.can.that.fish...@googlemail.com:
 See openbsd.org/vax-simh.html on how to play with this.
 (The suggested 4.3 worked for me, and 4.4 didn't install.)

 - - -

 #include sys/types.h
 #include sys/mman.h

 char blob[] = {
  0x04,0x00,0xeb,0x28,0x00,0x5e,0x50,
  0xdd,0x0a,0x9f,0xaf,0x16,0xdd,0x01,0xfb,0x03,0xaf,
  0x06,0xdd,0x00,0xfb,0x01,0xaf,0x05,0x00,0x00,0xbc,
  0x04,0x04,0x00,0x00,0xbc,0x01,0x04,
  'h','e','l','l','o',' ','v','a','x','\n',
  0xeb,0x14,0x58,0x6a,0x0b,0x50,0x6a,0x01,0x6a,0x00,
  0x58,0x50,0xb0,0x04,0xcd,0x80,0x58,0x50,0x50,0x40,
  0xcd,0x80,0xe8,0xe7,0xff,0xff,0xff,
  'h','e','l','l','o',' ','i','3','8','6','\n'
 };

 int main(void) {
  mprotect(blob, sizeof(blob), PROT_READ|PROT_EXEC);
  ((void (*)(void))blob)();
  return 1;
 }



Re: a port of mullender.c to OpenBSD/vax/i386

2009-02-27 Thread J.C. Roberts
On Fri, 27 Feb 2009 16:48:31 +0100 ropers rop...@gmail.com wrote:

 Holy fucking shit, this SIMH thing emulates a PDP-7?
 Would it be possible to run Space Travel and the first ever Unix (then
 called Unics) on that?
 
 Is someone here doing this? And is the code available?
 
 http://en.wikipedia.org/wiki/Space_Travel_(video_game)
 http://en.wikipedia.org/wiki/UNICS#History
 
 regards,
 --ropers
 

I was reading the following this morning:

http://openbsd.org/vax-simh.html

It looks like a lot of fun. When I get out of intel(4) driver hell, I'm
going to give it a try.


-- 
J.C. Roberts