Article View: comp.lang.modula2
Article #4771RE: WriteInt(-32768,n)
From: Larry Rosenman
Date: Sat, 15 Apr 1989 23:24
Date: Sat, 15 Apr 1989 23:24
66 lines
2074 bytes
2074 bytes
In article <1007@psueea.UUCP> Robert Barton (bartonr@psu-cs.cs.pdx.edu)
says:
> Consider the following simple program:
>
>(* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- *)
>
>MODULE Test;
>
>FROM InOut IMPORT WriteHex, WriteInt, WriteLn;
>
>VAR
> int : INTEGER;
>
>BEGIN
> int := -32768;
> WriteHex(CARDINAL(int), 12);
> WriteInt(int, 12); WriteLn
>END Test.
>
>(* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- *)
>
> With my system (Modula-2/Amiga by TDI) I get the following output:
>
> 8000H -4294934528
>
I just tried this on the NEW M2Sprint Compiler from M2S, and got the
following results:
8000H -32768
I think the TDI compiler has a few bugs, but it doesn't matter now that the
company is gone.
Commercial message follows, Hit n if you are not interested.
The M2Sprint Compiler is available for $225 (Until May 1, 1989 in the US,
and Until May 15, 1989 for International customers. After that it's $385)
From
M2S, Inc
P.O. Box 550279
Dallas, Texas 75355
USA
I was one of the beta testers for this package, but also own the other 2
viable compilers (M2Amiga and Benchmark Modula2).
The M2Sprint package is unique in that it includes ALL the library sources
AT NO ADDITIONAL CHARGE.
If you have more questions, feel free to write me.
Larry Rosenman
(Not affliated with M2S except as a Beta Tester and Therefore customer)
--
---
Larry Rosenman ler@lerami.UUCP ..!{texbell,rpp386,pollux}!lerami!ler
BIX: ler CIS: 73547,3201 PLINK: LER GEnie: LEROSENMAN
ATT: +1 214-401-2705 (Voice) +1 214-401-2706 (Data)
USSnail: 1014 San Jacinto #1211, Irving, TX 75063-8244
Technical Details
Message-ID:
<0287.AA0287@lerami>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!lerami!lerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!lerami!ler From: ler@lerami.UUCP (Larry Rosenman) Newsgroups: comp.lang.modula2 Subject: RE: WriteInt(-32768,n) Message-ID: <0287.AA0287@lerami> Date: 15 Apr 89 23:24:56 GMT Followup-To: comp.lang.modula2 Distribution: na Lines: 66