Article View: comp.sys.transputer
Article #98Inmos Transputers. Need Help
From: Ch. Baeumer
Date: Fri, 07 Aug 1992 12:36
Date: Fri, 07 Aug 1992 12:36
30 lines
1115 bytes
1115 bytes
Hi outside there,
I need a little help. Perhaps somebody can help me with my problem.
I'm programming a tranport-protocol on a T805 and want to use the
asm directive 'CRCWORD' for error recovery.
The problem is, that I don't know how it works and what kind
of parameters this directive want in the registers or on the stack.
I included following lines in my c-source-code :
ptr = (unsigned int *)&header;
for(i=0;i<sizeof(Header);i++)
sum += ptr[i];
__asm {
ld sum; # the sum where the crc should be calculated
crcword;
st sum; # this should be the crc
}
BUT: it seems. that nothing happens. The Value before 'CRCWORD'
is the same as behind.
Does somebody know how it works?
Regards
Ch. Baeumer
Technical Details
Message-ID:
<1992Aug7.123619.19882@fokus.gmd.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!ceres.fokus.gmd.de!chbShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.transputer Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!zrz.tu-berlin.de!ceres.fokus.gmd.de!chb From: chb@fokus.gmd.de (Ch. Baeumer) Subject: Inmos Transputers. Need Help Message-ID: <1992Aug7.123619.19882@fokus.gmd.de> Sender: news@fokus.gmd.de (News system) Organization: GMD-Fokus (Berlin) Date: Fri, 7 Aug 1992 12:36:19 GMT Lines: 31