Article View: comp.sys.sun
Article #12716Incompatability from OS3 to OS4 ??
From: Paul Sanders
Date: Wed, 10 May 1989 01:12
Date: Wed, 10 May 1989 01:12
43 lines
1472 bytes
1472 bytes
Does anybody know whether there is a difference in the way C programs
interface with assembly code from SUNOS3 and SUNOS4 ??
As part of a program I'm trying to install under SUN OS4 there is the
following assembly code in one of the C files. I don't know anything about
assembly language programming on the SUN but the code looks fairly
reasonable.
The program works under OS3 so I assume something must have changed/been
fixed in the upgrade.
Could anyone tell me whether things have changed and, even better, a fix
for the fragment ??
nat
add(r0, r1)
nat r0, r1;
{
asm ("movl a6@(0x8), d0");
asm ("addl a6@(0xc), d0");
asm ("bvc LADD");
asm ("movel #~0, d0");
asm ("LADD:");
}
nat
mul(r0, r1)
nat r0, r1;
{
asm ("movl a6@(0x8), d0");
asm ("mulul a6@(0xc), d0");
asm ("bvc LMUL");
asm ("movel #~0, d0");
asm ("LMUL:");
}
Thanks
Paul Sanders
----
Replies to psanders@axion.bt.co.uk (...!mcvax!ukc!axion!psanders)
Technical Details
Message-ID:
<1463@zaphod.axion.bt.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!husc6!rice!sun-spots-request From: psanders@axion.british-telecom.co.uk (Paul Sanders) Newsgroups: comp.sys.sun Subject: Incompatability from OS3 to OS4 ?? Keywords: Software Message-ID: <1463@zaphod.axion.bt.co.uk> Date: 10 May 89 01:12:07 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 43 Approved: Sun-Spots@rice.edu Original-Date: 2 May 89 07:38:13 GMT X-Sun-Spots-Digest: Volume 7, Issue 279, message 11 of 23