•  Back 
  •  Assembler 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure Assembler Documentation
Author      : John Kormylo
Version     : PASM.HYP 1.0
Subject     : Documentation/Pure Assembler
Nodes       : 740
Index Size  : 20262
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Optimizing for Speed on the ST ]

Pure Assembler automatically substitutes certain intructions for
others, such as ADDQ for ADD when appropriate.  However, there are
additional ways to improve performance:

PEA 0.W        is faster than    CLR.L -(SP)
LEA d(An),An   is faster than    ADDA.L #data,An   for data > 8

When you are restoring only two registers, it is faster to use two
MOVE.L instructions than one MOVEM.L instruction.

Note: All timing information refers to the 68000 CPU only.
      68030 times are totally different, particularly regarding Long
      addressing.