Received: (from major@localhost)
	by minnie.cs.adfa.oz.au (8.8.5/8.8.5) id MAA18203
	for pups-liszt; Sat, 11 Apr 1998 12:46:23 +1000 (EST)
X-Authentication-Warning: minnie.cs.adfa.oz.au: major set sender to owner-pups@minnie.cs.adfa.oz.au using -f
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
	by minnie.cs.adfa.oz.au (8.8.5/8.8.5) with ESMTP id MAA18197
	for <pups@minnie.cs.adfa.oz.au>; Sat, 11 Apr 1998 12:46:16 +1000 (EST)
Received: from goppelt.op.net (d-phlarc1-01.ppp.op.net [209.152.199.65]) by renoir.op.net (o1/$Revision: 1.16 $) with SMTP id WAA07386; Fri, 10 Apr 1998 22:45:54 -0400 (EDT)
Message-Id: <199804110245.WAA07386@renoir.op.net>
Comments: Authenticated sender is <edgee@cyberpass.net>
From: "Ed G." <edgee@cyberpass.net>
To: John Holden <johnh@psychvax.psych.usyd.edu.au>
Date: Fri, 10 Apr 1998 22:40:35 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: Floating Point-How Important to Unix?
Reply-to: edgee@cyberpass.net
CC: pups@minnie.cs.adfa.oz.au
In-reply-to: <199804080411.OAA06388@psychvax.psych.usyd.edu.au>
X-mailer: Pegasus Mail for Win32 (v2.54)
Sender: owner-pups@minnie.cs.adfa.oz.au
Precedence: bulk

> 	I think that you will find that the compiler and assember always
> generate relative addressing for subroutines and jumps. Any call to an
> earlier address will generate a negative number, hence lots of 017xxxx
> numbers in the text image.

I am not an expert on PDP-11 op codes, so you may well be right about 
this.  

In response to your criticism, I looked up jmp and branch 
instructions in the *Processor Handbook*.  Based only on my quick 
skim of the handbook, I don't think negative relative addresses would 
be a problem because: 

1. branch instructions are followed by a signed byte offset (-128, 
127).  This would not be a problem for my routine which only looks at 
the first four bits of every word and would ignore the offset in the 
odd byte.

2. jump instructions, which seem at first glance to be a problem 
because they are followed by a 16 bit word, are not because they 
always use absolute addressing, never relative and hence would never 
be followed by a negative number.

Ed

