Newsgroups: comp.sys.transputer
From: jcomeau@world.std.com (John O Comeau)
Subject: jump destination anomalies?
Organization: The World Public Access UNIX, Brookline, MA
Date: Tue, 18 Jan 1994 09:53:58 GMT
Message-ID: <CJtKtz.E79@world.std.com>

Trying to understand some embedded code I'm stuck with, I hacked together 
a cross-disassembler for Transputer code (425, to be precise) on a PC. In 
attempting to understand the code, I keep finding the destinations for J 
and CJ come out "wrong" if they are prefixed, that is, the jump is to an 
unlikely instruction (another jump) or in the "middle" of another 
prefixed instruction. Is there something about the jump mechanism I'm 
overlooking? Shouldn't adding the operand word to the instruction pointer 
(of the following instruction) yield the jump destination? The code is 
compiled OCCAM, I'm told. Thanks for any enlightenment on the subject.
- John Comeau

