LW Tool Chain
Prev | Chapter 3. LWASM | Next

# 3.12. Cycle Counts

The following options for displaying cycle counts in listings are provided. These options are enabled from pragmas on the command line or in the assembly files themselves. For compatibility with other assemblers you can use the "OPT" keyword in addition to "PRAGMA."

    opt c  - enable cycle counts: [8]
    opt cd - enable detailed cycle counts breaking down addressing modes: [5+3]
    opt ct - show a running subtotal of cycles
    opt cc - clear the running subtotal

The assembler supports both 6809 as well as native-mode 6309 cycle counts. In 6309 mode the counts are displayed in parenthesis instead of brackets. In addition, some operations have a variable cycle count. In this case a "+?" is displayed to alert the reader. Sample output is shown below.

    266f 7d25e2     (window.asm):00313 [7]     7       move   tst   putflg
    2672 2602       (window.asm):00314 [5]     12             bne   a@
    2674 1e13       (window.asm):00315 [8]     20             exg   x,u
    2676 0dd6       (window.asm):00316 [6]     26      a@     tst   is6309
    2678 2618       (window.asm):00317 [5]     31             bne   exit@
                    (window.asm):00318                        opt   6309
    267a 10860085   (window.asm):00319 (4)     35      b@     ldw   #133
    267e 113813     (window.asm):00320 (6+?)   41             tfm   x+,u+
    2681 30881b     (window.asm):00321 (4+1)   46             leax  27,x
    2684 33c81b     (window.asm):00322 (4+1)   51             leau  27,u
    2687 4a         (window.asm):00323 (1)     52             deca
    2688 26f0       (window.asm):00324 (5)     57             bne   b@

Prev | Home | Next
Convenience Instructions | Up | LWLINK