| [hatari-devel] 68030 instruction time calculation formulae | 
[ Thread Index | 
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
] 
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] 68030 instruction time calculation formulae
- From: Douglas Little <doug694@xxxxxxxxxxxxxx>
- Date: Mon, 29 Dec 2014 11:29:45 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=googlemail.com; s=20120113;        h=mime-version:date:message-id:subject:from:to:content-type;        bh=2Nk3m5NocQnJtK/ndXyRbEYkqE/7E1+ecoEftaBiYGk=;        b=Az46MVZc0+Iif2nBBCKDd0jzV1nh2EW5x/mI/rOEIc8w4erwysPzMspscYd50AwTqE         1qpcLTUbN6irinkX3snn8HnZPzkxk1rmnOjp8c2aFkxn32zE9rKh+WFMtzp5qfZMn8FY         vw96tB2/CnnV1XwRZ1VhA0J9b3WvGc+G/xdWKJlDIjp7l60H3n1+8BEJolwNECNru3/T         tmQQ4bsNQMWkaUxtfi7QK6PalE3VhzEc+bSqL4LT6LsbXJRTTg3oj/kd6d/Tx2kX07U6         PMV72lyEZoYvHzDRUbJbBeJPT9UTth0AtUWJRHLZSIXr/2BBU6blGYwlzwJbndbSF3mG         goJw==
The link below may be useful when looking at emulation timings vs real
world (at least, for cached code - the uncached code case is more complex
to match exactly, albeit perhaps less important to do so for emu purposes)
http://cache.freescale.com/files/32bit/doc/ref_manual/MC68030UM-P2.pdf
See page #187 "Instruction Execution Timing Calculations" and in particular
section 11.3.4 on EA adjustments and instruction overlaps, and the summing
formula provided.
[Caveat: the text assumes bus events consume 2 cycles always, which is not
true for us, add needs accounted for where it matters]