From: geirh@solan.unit.no (Geir Haugen)
Subject: '040 specs + DEMOS on A4000
Reply-To: geirh@solan.unit.no (Geir Haugen)
Organization: University of Trondheim
Date: Tue, 17 Nov 92 18:49:51 GMT

Here are some specs to water all demo coders' mouths!

First off, a comparison of common effective-address instructions in the
68020 and 68040:
                                        C Y C L E S:
                                           25 MHz
 Instruction         Adressing mode     68020  68040      Operation
----------------------------------------------------------------------------
 Move                Rn,Rn                 2      1      Reg-to-reg move
 Move                <OEA>, Rn             6      1      Mem-to-reg move
 Move                Rn,<OEA>              6      1      Reg-to-mem move
 Move                <OEA>,<OEA>           8      2      Mem-to-mem move
 Move                <An,Rn,d8>,Rn        10      3      Mem-indexed source
 Move                Rn,<An,Rn,d8>         6      3      Mem-indexed dest.
 Move Multiple       RL,<OEA>           4+2n    2+n      Move mult.reg.to.mem
 Move Multiple       <OEA>,RL           8+4n    2+n      Move mem.to.mult.reg.
 Simple arithmetic   Rn,Rn                 2      1      Reg-to-reg. arithm.
 Simple arithmetic   Rn,<OEA>              6      1      Reg-to-mem. arithm.
 Simple arithmetic   <OEA>,Rn              8      1      Mem-to-reg. arithm.
 Shifts              -                     4      2      Shift 1 to 31 bits
 Branch Taken        -                     6      2      -
 Branch Not Taken    -                     4      3      -
 Branch To Subrout.  -                     6      2      -
 Return from Subr.   -                    10      5      -



Now let's compare the built-in FPU in the 68040 with a 68882:


                                        Fully pipelined
Instruction                                  25 MHz
 mnemonic      Source   Destination      68882    68040
------------------------------------------------------------
 FMOVE        Register  Register           21        2
 FMOVE.D      Memory    Register           40        3
 FMOVE.D      Register  Memory             44        3
 FADD         Register  Register           21        3
 FSUB         Register  Register           21        3
 FMUL         Register  Register           76        5 (!!)
 FDIV         Register  Register          108       38
 FSQRT        Register  Register          110      103
 FADD.D       Memory    Register           75        3
 FSUB.D       Memory    Register           75        3
 FMUL.D       Memory    Register           95        5 :)
 FDIV.D       Memory    Register          127       38
 FSQRT.D      Memory    Register          129      103

(.D indicates double precision)

Source: IEEE Micro Feb 1990

Note: The 68040 only implements a fundamental subset of all 68882
      instructions in hardware. All other 68882 instructions (i.e.
      sin, cos, exp) are emulated in software.



Enough of that...

About a month ago I tested all my old demos on the A4000, and only a couple
of slideshows worked. Now I've redone the test, with Copyback and AGA dis-
abled:

Crashing demos:
---------------
Habitual Experience / Razor
The Hunt for Xth October / CRB
Demo / Panoramic Design
Hardwired / Crionics ("Dont like axel...")
Megademo / Budbrain
Megademo / Dragons
Mental Hangover / Scoopex
Materialized / CRB
Tilt / TFF
3D Demo / Anarchy

WORKING demos:
---------------
100%:
DOS / Andromeda
Demo / Axend
Demo / New Wave
Global Trash / Silents DK
Pizza Place / Absolute
Wayfarer / Spaceballs
Sunstone / HalfBrains (fast fractals, detects 040!!)
Cube'o'Matic (new version)

Some gfx/music/timing errors:
Universital Intensity / Complex
Light Side of the Dark Side / Dope
Mona Lisa Overdrive / Motion
It's Getting Harder / New Wave
Demo / Miranda
Watch This / Network
Enigma / Phenomena (crashes at Starwars-scroller, just like on A2000A)
Highway 1930 / Fraxion
Ice / Silents Fr
Himalaya / Avalanche
Feel the Powe / Culture
Maximum Velocity / Silents
Placings Demo / Alchemy
Static Chaos / Silents Ger


Surprised this many worked? I am, for sure! The major problem seems to be
a) sprites (even with AGA disabled, weird...)
b) music timing (the old NoiseTracker replay routine...)
I couldn't see any problems with blitter routines, but then the blitter
hasn't changed either.

Buy a A1200 (or better: a A4000) and start coding for AGA!!


Geir


----------------------------------------------------------------------------
      //COMMODORE                   Geir Haugen, Trondheim, Norway
  \\ // AMIGA 4000/040              Norwegian Institue of Technology (NTH)
   \X/  SERIAL #187                 Internet: geirh@solan.unit.no
----------------------------------------------------------------------------

Newsgroups: alt.sys.amiga.demos