Article View: comp.sys.amiga.tech
Article #6025Re: Eval and 2.0
From: Joe Smith
Date: Tue, 23 Oct 1990 07:50
Date: Tue, 23 Oct 1990 07:50
27 lines
1611 bytes
1611 bytes
In article <2383@trlluna.trl.oz> aduncan@rhea.trl.oz (Allan Duncan) writes:
>"eval 4 mod 3" returns an answer of 0, rather than the 1 it should.
>
>This did not occur on the 1.3 W/B, but does with the 1.3.2 (which
>included a new eval), and 2.0 Beta 5.
The new EVAL gives the right results when I use "%" instead of "mod". It
looks like Commodore needs to update the documentation. Other observations:
eval ~ 0xf0 = -1 should be 0xffffff0f = -241
eval ~ -1 = -1 should be 0
eval 17 % 5 = 2 correct
eval 4 mod 3 = 0 should be 1
eval 4 foobar 3 = 4 should say "invalid OP"
eval 4 modx 3 = 3 " " "
eval 4 garbage 3 = -8 " " "
eval 12 xor 5 = 12 should be 9 (1100 xor 0101 = 1001)
eval 12 eqv 5 = -13 should be 6 (1100 eqv 0101 = 0110)
eval 12 & 5 = 4 correct
eval 12 | 5 = 13 correct
This is on an A3000. C:EVAL $VER: 36.5 (18.4.90)
--
Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C41 | BIX: smithjoe | 12 PDP-10s still running! "POPJ P,"
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."
Technical Details
Message-ID:
<1301@tardis.Tymnet.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!olivea!tymix!tardis!jmsReferences:
<2383@trlluna.trl.oz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!olivea!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.sys.amiga.tech Subject: Re: Eval and 2.0 Summary: "%" works instead of "mod". Message-ID: <1301@tardis.Tymnet.COM> Date: 23 Oct 90 07:50:54 GMT References: <2383@trlluna.trl.oz> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 27