Newsgroups: comp.sys.transputer
From: andyr@teal.csn.org (Andy Rabagliati)
Reply-To: andyr@wizzy.com (Andy Rabagliati)
Subject: Re: Need an Occam Disassembler
Organization: W.Z.I.
Date: Sat, 5 Nov 1994 01:18:41 GMT
Message-ID: <Cyrsz6.7L1@csn.org>

In article <94305.201356SAGQC@CUNYVM.CUNY.EDU>,  <SAGQC@CUNYVM.CUNY.EDU> wrote:
>I would be grateful for any information about the existence of a disassembler
>for compiled transputer code.  


I have written a dis-assembler. There follows the docs.

I can send it to anyone interested, or post it. It may even be on Hensa
already.

The contents of the archive are:

   FILE-NAME      SIZE     DATE                   FILE DESCRIPTION
===============  ======  ========  ============================================
dasm.c             5614  09-14-90  Disassembler Source Code
dasm.doc           1142  09-14-90  Disassembler Documentation
dasm.exe          15243  09-14-90  Disassembler Executable File for PC host
inmos.h             733  07-12-90  Inmos header file
opcodes.h          2757  09-26-89  Opcodes header file

This is a Transputer code disassembler. For widest applicability,

1) It operates from a hex dump of the code
2) It is supplied in source form.
3) It includes a PC Executable.

It uses Microsoft C 5.1.

Thus this input :-

22 b0 21 12 dd 24 f2 21 f8 24 f2 21
fc 22 f9 29 fc 25 f8 40 de 4b df 24 f2 7e 24 f2
fa e0 1e 4b 22 f1 40 25 f4 22 46 21 fb d0 24 f2
d1 24 4b 21 fb d2 72 84 21 d0 72 30 21 70 f5 21

Is dis-assembled into :-

00000000: 22B0 2112 DD 24F2 21F8        AJW 32/LDLP 18/STL 13/MINT/STHF
00000009: 24F2 21FC 22F9 29FC 25F8      MINT/STLF/TESTERR/FPTESTERR/SETHALTERR
00000013: 40 DE 4B DF 24F2              LDC 0/STL 14/LDC 11/STL 15/MINT
00000019: 7E 24F2 FA E0 1E              LDL 14/MINT/WSUB/STNL 0/LDLP 14
0000001F: 4B 22F1                       LDC 11/LEND 17
00000022: 40 25F4 2246 21FB             LDC 0/STTIMER/LDC 38/LDPI 4F
00000029: D0 24F2 D1 244B 21FB          STL 0/MINT/STL 1/LDC 75/LDPI 7C
00000031: D2 72 84 21D0 72              STL 2/LDL 2/ADC 4/STL 16/LDL 2
00000037: 30 2170 F5 21                 LDNL 0/LDL 16/ADD/


The l option expects output from ilist /c, which looks like this :-

...     anything

000000AD LOAD_TEXT bytes: 624
000000B4 00000060 BC24F2D3 40D02142 D1787022      ...`.$..@.!B.xp"
000000C4 214421FB FA30F4C0 A370D207 10214422      !D!..0...p...!D"
000000D4 F140D224 4A272F2D 28202022 40E02240      .@.$J'/-(  "@."@
000000E4 272F2D28 20202240 E0234027 2F2D2820      '/-(  "@.#@'/-( 
...

Cheers,      Andy!

--
I have lived on the lip of insanity, wanting to               Andy Rabagliati
know reasons, knocking on a door. It opens.                   andyr@wizzy.com
I've been knocking from the inside ! -- Rumi (1207-1273)      +1.719.635.6099


