home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / ASM / AS09_107 / TESTCASE.A09 < prev    next >
Text File  |  1994-11-02  |  58KB  |  1,486 lines

  1. ; <:t17,25,41,45:>
  2. ; ╔═════════════════════════════════════════════════════════════════════╗
  3. ; ║                                                                     ║
  4. ; ║   TESTCASE.A09                                                      ║
  5. ; ║                                                                     ║
  6. ; ║   Test case for 6809/6309 assembler.                                ║
  7. ; ║                                                                     ║
  8. ; ║   Copyright 1993, Frank A. Vorstenbosch                             ║
  9. ; ║                                                                     ║
  10. ; ╚═════════════════════════════════════════════════════════════════════╝
  11. ;
  12. ; File created 13-oct-93
  13.  
  14.                 title   "Test case for 6809/6309 assembler"
  15.  
  16.                 list
  17.  
  18. ; ┌─────────────────────────────────────────────────────────────────────┐
  19. ; │                                                                     │
  20. ; │   Options.                                                          │
  21. ; │                                                                     │
  22. ; └─────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;   -dERRORS   check error handling
  25. ;   -n         disable optimizations
  26.  
  27.  
  28. ; ┌─────────────────────────────────────────────────────────────────────┐
  29. ; │                                                                     │
  30. ; │   Assembler pseudo instructions.                                    │
  31. ; │                                                                     │
  32. ; └─────────────────────────────────────────────────────────────────────┘
  33.  
  34. ; ───── expressions ─────────────────────────────────────────────────────
  35.  
  36.                 data
  37.                 org     4
  38.                 bss
  39.                 org     1634
  40.  
  41. TEST            equ     2+*/2
  42.                 if ERRORS
  43. TEST            equ     TEST+1
  44.                 endif
  45.  
  46. Constant8       equ     -43
  47. Constant16      equ     16383
  48. Constant32      equ     96285725
  49. Address         equ     $bb5a
  50.  
  51. ANOTHER         set     3|24&8
  52. ANOTHER         set     (3|24)&8
  53. ANOTHER         set     4*(3>5)
  54. ANOTHER         set     4*!3<5
  55. ANOTHER         set     15<<4
  56. ANOTHER         set     ANOTHER+1
  57. ANOTHER         =       ANOTHER+1       ; shorthand for SET
  58.  
  59. CHAR            equ     "a"
  60. DOUBLECHAR      equ     "xy"
  61. QUADCHAR        equ     "quad"
  62.  
  63.                 if ERRORS
  64. TRIPLE          equ     "abc"
  65. TOOMUCH         equ     "abcde"
  66.                 endif
  67.  
  68.                 data
  69. AddressFour     dw      TEST
  70.                 dw      **5
  71.  
  72.                 org     $800
  73.  
  74.                 direct  $8
  75.                 direct  $0800
  76.  
  77.                 ds      14
  78. DirectByte      db      123
  79.                 align   32
  80. DirectWord      dw      12345
  81.                 align   48
  82. DirectLong      dd      123456789
  83.                 align   79
  84. DirectCode      rts
  85.  
  86.                 dw      1234%12
  87.                 dw      %1010100101
  88.                 dw      (1+2)%8
  89.                 dw      1010101%%1010101
  90.  
  91.                 bss
  92. Unin_1          db      0
  93. Unin_2          dw      4256
  94. Unin_3          dd      34568957
  95.  
  96.                 code
  97.                 org     $200
  98.  
  99.                 page
  100.  
  101.                 if ERRORS
  102. 1
  103.                 equ     123
  104.                 psscht
  105.                 !
  106.                 endif
  107.  
  108. ; ───── range checking on immediate values ──────────────────────────────
  109.  
  110.                 lda     #10
  111.                 lda     #100
  112.                 if ERRORS
  113.                 lda     #1000
  114.                 lda     #10000
  115.                 lda     #100000
  116.                 lda     #1000000
  117.                 lda     #10000000
  118.                 lda     #100000000
  119.                 lda     #1000000000
  120.                 endif
  121.  
  122.                 ldx     #10
  123.                 ldx     #100
  124.                 ldx     #1000
  125.                 ldx     #10000
  126.                 if ERRORS
  127.                 ldx     #100000
  128.                 ldx     #1000000
  129.                 ldx     #10000000
  130.                 ldx     #100000000
  131.                 ldx     #1000000000
  132.                 endif
  133.  
  134.                 if __6309__
  135.                 ldq     #10
  136.                 ldq     #100
  137.                 ldq     #1000
  138.                 ldq     #10000
  139.                 ldq     #100000
  140.                 ldq     #1000000
  141.                 ldq     #10000000
  142.                 ldq     #100000000
  143.                 ldq     #1000000000
  144.                 endif
  145.  
  146.                 page    10              ; keep 10 lines togethre
  147.  
  148. ; ───── align ───────────────────────────────────────────────────────────
  149.  
  150.                 align   16
  151.                 align   32
  152.  
  153.  
  154. ; ───── code, data, org ─────────────────────────────────────────────────
  155.  
  156.                 code
  157.                 org     $1300
  158.                 data
  159.                 org     $1180
  160.  
  161.                 code
  162.                 lda     #1
  163.  
  164.                 data
  165. Table           db      1,2,3
  166.  
  167.                 code
  168.                 ldx     #Table
  169.  
  170.  
  171. ; ───── db, fcb, fcc ────────────────────────────────────────────────────
  172.  
  173. Message1        db      7,"Error",13,10,0
  174.  
  175. Message2        fcb     7
  176.                 fcc     "Error"
  177.                 fcb     13,10,0
  178.  
  179.  
  180. ; ───── ds, rmb ─────────────────────────────────────────────────────────
  181.  
  182.                 ds      10
  183.                 rmb     10
  184.  
  185.  
  186. ; ───── dw, fcw, fdb ────────────────────────────────────────────────────
  187.  
  188.                 dw      23457
  189.                 fcw     13462
  190.                 fdb     6235
  191.  
  192.  
  193. ; ───── if ... else ... endif ───────────────────────────────────────────
  194.  
  195.                 if      5=6
  196.                 db      0
  197.                 if      0
  198.                 db      1
  199.                 else
  200.                 db      2
  201.                 endif
  202.                 db      3
  203.                 else
  204.                 db      4
  205.                 if      1
  206.                 db      5
  207.                 else
  208.                 db      6
  209.                 endif
  210.                 db      7
  211.                 endif
  212.  
  213.  
  214. ; ───── list, nolist ────────────────────────────────────────────────────
  215.  
  216.                 nolist
  217.                 ; comment not listed
  218.                 db      10
  219.  
  220.                 list
  221.                 ; comment is listed
  222.                 db      10
  223.  
  224.  
  225. ; ───── opt, noopt ──────────────────────────────────────────────────────
  226.  
  227.                 noopt
  228.  
  229.                 opt
  230.  
  231.  
  232. ; ───── nop ─────────────────────────────────────────────────────────────
  233.  
  234.                 nop
  235.                 nop     3
  236.                 
  237.  
  238. ; ───── struct ──────────────────────────────────────────────────────────
  239.  
  240.                 struct  ListNode
  241.                 dw      LN_Next
  242.                 dw      LN_Previous
  243.                 db      LN_Type
  244.                 end struct
  245.  
  246.  
  247. ; ───── number bases ────────────────────────────────────────────────────
  248.  
  249.                 dd      1
  250.                 dd      10
  251.                 dd      100
  252.                 dd      1000
  253.  
  254.                 dd      $1
  255.                 dd      $10
  256.                 dd      $100
  257.                 dd      $1000
  258.  
  259.                 dd      %1
  260.                 dd      %10
  261.                 dd      %100
  262.                 dd      %1000
  263.  
  264.                 dd      @1
  265.                 dd      @10
  266.                 dd      @100
  267.                 dd      @1000
  268.  
  269.                 dd      2#1
  270.                 dd      2#10
  271.                 dd      2#100
  272.                 dd      2#1000
  273.  
  274.                 dd      3#1
  275.                 dd      3#10
  276.                 dd      3#100
  277.                 dd      3#1000
  278.                 dd      3#12
  279.  
  280.                 dd      4#1
  281.                 dd      4#10
  282.                 dd      4#100
  283.                 dd      4#1000
  284.                 dd      4#123
  285.  
  286.                 dd      5#1
  287.                 dd      5#10
  288.                 dd      5#100
  289.                 dd      5#1000
  290.                 dd      5#1234
  291.  
  292.                 dd      6#1
  293.                 dd      6#10
  294.                 dd      6#100
  295.                 dd      6#1000
  296.                 dd      6#2345
  297.  
  298.                 dd      7#1
  299.                 dd      7#10
  300.                 dd      7#100
  301.                 dd      7#1000
  302.                 dd      7#3456
  303.  
  304.                 dd      8#1
  305.                 dd      8#10
  306.                 dd      8#100
  307.                 dd      8#1000
  308.                 dd      8#4567
  309.  
  310.                 dd      9#1
  311.                 dd      9#10
  312.                 dd      9#100
  313.                 dd      9#1000
  314.                 dd      9#5678
  315.  
  316.                 dd      10#1
  317.                 dd      10#10
  318.                 dd      10#100
  319.                 dd      10#1000
  320.                 dd      10#6789
  321.  
  322.                 dd      11#1
  323.                 dd      11#10
  324.                 dd      11#100
  325.                 dd      11#1000
  326.                 dd      11#789a
  327.  
  328.                 dd      12#1
  329.                 dd      12#10
  330.                 dd      12#100
  331.                 dd      12#1000
  332.                 dd      12#89ab
  333.  
  334.                 dd      13#1
  335.                 dd      13#10
  336.                 dd      13#100
  337.                 dd      13#1000
  338.                 dd      13#9abc
  339.  
  340.                 dd      14#1
  341.                 dd      14#10
  342.                 dd      14#100
  343.                 dd      14#1000
  344.                 dd      14#abcd
  345.  
  346.                 dd      15#1
  347.                 dd      15#10
  348.                 dd      15#100
  349.                 dd      15#1000
  350.                 dd      15#bcde
  351.  
  352.                 dd      16#1
  353.                 dd      16#10
  354.                 dd      16#100
  355.                 dd      16#1000
  356.                 dd      16#cdef
  357.  
  358.                 dd      17#1
  359.                 dd      17#10
  360.                 dd      17#100
  361.                 dd      17#1000
  362.                 dd      17#defg
  363.  
  364.                 dd      18#1
  365.                 dd      18#10
  366.                 dd      18#100
  367.                 dd      18#1000
  368.                 dd      18#efgh
  369.  
  370.                 dd      19#1
  371.                 dd      19#10
  372.                 dd      19#100
  373.                 dd      19#1000
  374.                 dd      19#fghi
  375.  
  376.                 dd      20#1
  377.                 dd      20#10
  378.                 dd      20#100
  379.                 dd      20#1000
  380.                 dd      20#ghij
  381.  
  382.                 dd      21#1
  383.                 dd      21#10
  384.                 dd      21#100
  385.                 dd      21#1000
  386.                 dd      21#hijk
  387.  
  388.                 dd      22#1
  389.                 dd      22#10
  390.                 dd      22#100
  391.                 dd      22#1000
  392.                 dd      22#ijkl
  393.  
  394.                 dd      23#1
  395.                 dd      23#10
  396.                 dd      23#100
  397.                 dd      23#1000
  398.                 dd      23#jklm
  399.  
  400.                 dd      24#1
  401.                 dd      24#10
  402.                 dd      24#100
  403.                 dd      24#1000
  404.                 dd      24#klmn
  405.  
  406.                 dd      25#1
  407.                 dd      25#10
  408.                 dd      25#100
  409.                 dd      25#1000
  410.                 dd      25#lmno
  411.  
  412.                 dd      26#1
  413.                 dd      26#10
  414.                 dd      26#100
  415.                 dd      26#1000
  416.                 dd      26#mnop
  417.  
  418.                 dd      27#1
  419.                 dd      27#10
  420.                 dd      27#100
  421.                 dd      27#1000
  422.                 dd      27#nopq
  423.  
  424.                 dd      28#1
  425.                 dd      28#10
  426.                 dd      28#100
  427.                 dd      28#1000
  428.                 dd      28#opqr
  429.  
  430.                 dd      29#1
  431.                 dd      29#10
  432.                 dd      29#100
  433.                 dd      29#1000
  434.                 dd      29#pqrs
  435.  
  436.                 dd      30#1
  437.                 dd      30#10
  438.                 dd      30#100
  439.                 dd      30#1000
  440.                 dd      30#qrst
  441.  
  442.                 dd      31#1
  443.                 dd      31#10
  444.                 dd      31#100
  445.                 dd      31#1000
  446.                 dd      31#rstu
  447.  
  448.                 dd      32#1
  449.                 dd      32#10
  450.                 dd      32#100
  451.                 dd      32#1000
  452.                 dd      32#stuv
  453.  
  454.                 dd      33#1
  455.                 dd      33#10
  456.                 dd      33#100
  457.                 dd      33#1000
  458.                 dd      33#tuvw
  459.  
  460.                 dd      34#1
  461.                 dd      34#10
  462.                 dd      34#100
  463.                 dd      34#1000
  464.                 dd      34#uvwx
  465.  
  466.                 dd      35#1
  467.                 dd      35#10
  468.                 dd      35#100
  469.                 dd      35#1000
  470.                 dd      35#vwxy
  471.  
  472.                 dd      36#1
  473.                 dd      36#10
  474.                 dd      36#100
  475.                 dd      36#1000
  476.                 dd      36#wxyz
  477.  
  478.                 if ERRORS
  479.                 dd      37#1
  480.                 dd      37#10
  481.                 dd      37#100
  482.                 dd      37#1000
  483.  
  484.                 dd      1#1
  485.                 dd      1#10
  486.                 dd      1#100
  487.                 dd      1#1000
  488.  
  489.                 dd      0#1
  490.                 dd      0#10
  491.                 dd      0#100
  492.                 dd      0#1000
  493.                 endif
  494.  
  495.  
  496. ; ───── garbage in inactive if-clause ───────────────────────────────────
  497.                 
  498.                 if 0
  499.  !"#$%&'()*+,-./
  500. 0123456789:;<=>?
  501. @ABCDEFGHIJKLMNO
  502. PQRSTUVWXYZ[\]^_
  503. `abcdefghijklmno
  504. pqrstuvwxyz{|}~
  505. ÇüéâäàåçêëèïîìÄÅ
  506. ÉæÆôöòûùÿÖÜ¢£¥₧ƒ
  507. áíóúñѪº¿⌐¬½¼¡«»
  508. ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐
  509. └┴┬├─┼╞╟╚╔╩╦╠═╬╧
  510. ╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀
  511. αßΓπΣσµτΦΘΩδ∞φε∩
  512. ≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ 
  513.                 endif
  514.  
  515.  
  516. ; ╔═════════════════════════════════════════════════════════════════════╗
  517. ; ║                                                                     ║
  518. ; ║   Instructions.                                                     ║
  519. ; ║                                                                     ║
  520. ; ╚═════════════════════════════════════════════════════════════════════╝
  521.  
  522. ; ┌─────────────────────────────────────────────────────────────────────┐
  523. ; │                                                                     │
  524. ; │   Register to register operations.                                  │
  525. ; │                                                                     │
  526. ; └─────────────────────────────────────────────────────────────────────┘
  527.  
  528. Start           tfr     a,a             ; NOP
  529.                 tfr     a,b
  530.                 tfr     a,cc
  531.                 tfr     a,ccr
  532.                 tfr     a,dp
  533.                 tfr     a,dpr
  534.  
  535.                 tfr     b,a
  536.                 tfr     b,b             ; NOP
  537.                 tfr     b,cc
  538.                 tfr     b,ccr
  539.                 tfr     b,dp
  540.                 tfr     b,dpr
  541.  
  542.                 tfr     d,d             ; NOP
  543.                 tfr     d,x
  544.                 tfr     d,y
  545.                 tfr     d,u
  546.                 tfr     d,s
  547.                 tfr     d,sp
  548.  
  549.                 tfr     x,d
  550.                 tfr     x,x             ; NOP
  551.                 tfr     x,y
  552.                 tfr     x,u
  553.                 tfr     x,s
  554.                 tfr     x,sp
  555.  
  556.                 tfr     y,d
  557.                 tfr     y,x
  558.                 tfr     y,y             ; NOP
  559.                 tfr     y,u
  560.                 tfr     y,s
  561.                 tfr     y,sp
  562.  
  563.                 tfr     u,d
  564.                 tfr     u,x
  565.                 tfr     u,y
  566.                 tfr     u,u             ; NOP
  567.                 tfr     u,s
  568.                 tfr     u,sp
  569.  
  570.                 tfr     s,d
  571.                 tfr     s,x
  572.                 tfr     s,y
  573.                 tfr     s,u
  574.                 tfr     s,s             ; NOP
  575.                 tfr     s,sp            ; NOP
  576.  
  577.                 tfr     sp,d
  578.                 tfr     sp,x
  579.                 tfr     sp,y
  580.                 tfr     sp,u
  581.                 tfr     sp,s            ; NOP
  582.                 tfr     sp,sp           ; NOP
  583.  
  584.                 tfr     pc,d
  585.                 tfr     pc,x
  586.                 tfr     pc,y
  587.                 tfr     pc,u
  588.                 tfr     pc,s
  589.                 tfr     pc,sp
  590.  
  591.                 if __6309__
  592.                 tfr     a,e
  593.                 tfr     a,f
  594.                 tfr     b,e
  595.                 tfr     b,f
  596.  
  597.                 tfr     e,a
  598.                 tfr     e,b
  599.                 tfr     e,cc
  600.                 tfr     e,ccr
  601.                 tfr     e,dp
  602.                 tfr     e,dpr
  603.                 tfr     e,e             ; NOP
  604.                 tfr     e,f
  605.  
  606.                 tfr     f,a
  607.                 tfr     f,b
  608.                 tfr     f,cc
  609.                 tfr     f,ccr
  610.                 tfr     f,dp
  611.                 tfr     f,dpr
  612.                 tfr     f,e
  613.                 tfr     f,f             ; NOP
  614.  
  615.                 tfr     d,v
  616.                 tfr     d,w
  617.  
  618.                 tfr     v,d
  619.                 tfr     v,v             ; NOP
  620.                 tfr     v,w
  621.                 tfr     v,x
  622.                 tfr     v,y
  623.                 tfr     v,u
  624.                 tfr     v,s
  625.                 tfr     v,sp
  626.  
  627.                 tfr     w,d
  628.                 tfr     w,v
  629.                 tfr     w,w             ; NOP
  630.                 tfr     w,x
  631.                 tfr     w,y
  632.                 tfr     w,u
  633.                 tfr     w,s
  634.                 tfr     w,sp
  635.  
  636.                 tfr     x,v
  637.                 tfr     x,w
  638.                 tfr     y,v
  639.                 tfr     y,w
  640.                 tfr     u,v
  641.                 tfr     u,w
  642.                 tfr     s,v
  643.                 tfr     s,w
  644.                 tfr     pc,v
  645.                 tfr     pc,w
  646.  
  647.                 tfr     z,a
  648.                 tfr     z,b
  649.                 tfr     z,cc
  650.                 tfr     z,ccr
  651.                 tfr     z,dp
  652.                 tfr     z,dpr
  653.                 tfr     z,e
  654.                 tfr     z,f
  655.                 tfr     z,d
  656.                 tfr     z,v
  657.                 tfr     z,w
  658.                 tfr     z,x
  659.                 tfr     z,y
  660.                 tfr     z,u
  661.                 tfr     z,s
  662.                 tfr     z,sp
  663.                 
  664.                 tfr     a,z
  665.                 tfr     b,z
  666.                 tfr     cc,z
  667.                 tfr     ccr,z
  668.                 tfr     dp,z
  669.                 tfr     dpr,z
  670.                 tfr     e,z
  671.                 tfr     f,z
  672.                 tfr     d,z
  673.                 tfr     v,z
  674.                 tfr     w,z
  675.                 tfr     x,z
  676.                 tfr     y,z
  677.                 tfr     u,z
  678.                 tfr     s,z
  679.                 tfr     sp,z
  680.                 tfr     pc,z
  681.                 endif
  682.  
  683.                 if ERRORS
  684.                 tfm     a,b
  685.                 tfr     a,d
  686.                 tfr     a,v
  687.                 tfr     a,w
  688.                 tfr     a,x
  689.                 tfr     a,y
  690.                 tfr     a,u
  691.                 tfr     a,s
  692.                 tfr     a,sp
  693.  
  694.                 tfr     b,d
  695.                 tfr     b,v
  696.                 tfr     b,w
  697.                 tfr     b,x
  698.                 tfr     b,y
  699.                 tfr     b,u
  700.                 tfr     b,s
  701.                 tfr     b,sp
  702.                 endif
  703.  
  704.  
  705. ; ┌─────────────────────────────────────────────────────────────────────┐
  706. ; │                                                                     │
  707. ; │   Addressing modes.                                                 │
  708. ; │                                                                     │
  709. ; └─────────────────────────────────────────────────────────────────────┘
  710.  
  711.                 lda     #0
  712.                 lda     DirectByte
  713.                 lda     >DirectByte
  714.                 lda     AddressFour
  715.                 if ERRORS
  716.                 lda     <AddressFour
  717.                 endif
  718.                 lda     12+5*17/3
  719.                 lda     ,x
  720.                 noopt
  721.                 lda     0,x
  722.                 opt
  723.                 lda     0,x
  724.                 lda     <0,x
  725.                 lda     <<0,x
  726.                 noopt
  727.                 lda     <<0,x
  728.                 opt
  729.                 lda     >0,x
  730.                 lda     1,x
  731.                 lda     <1,x
  732.                 lda     <<1,x
  733.                 lda     >1,x
  734.                 lda     15,x
  735.                 lda     -16,x
  736.                 lda     16,x
  737.                 lda     -17,x
  738.                 lda     127,x
  739.                 lda     -128,x
  740.                 lda     128,x
  741.                 lda     -129,x
  742.                 lda     FORWARD5,x
  743.                 lda     <FORWARD5,x
  744.                 lda     <<FORWARD5,x
  745.                 lda     FORWARD99,x
  746.                 lda     <FORWARD99,x
  747.                 if ERRORS
  748.                 lda     <<FORWARD99,x
  749.                 endif
  750.                 lda     a,x
  751.                 lda     b,x
  752.                 lda     d,x
  753.                 lda     ,x+
  754.                 lda     ,x++
  755.                 lda     ,-x
  756.                 lda     ,--x
  757.                 lda     NearData,pc
  758.                 lda     <NearData,pc
  759.                 lda     AddressFour,pc
  760.                 lda     [,x]
  761.                 lda     [0,x]
  762.                 lda     [1,x]
  763.                 lda     [15,x]
  764.                 lda     [-16,x]
  765.                 lda     [17,x]
  766.                 lda     [-17,x]
  767.                 lda     [127,x]
  768.                 lda     [-128,x]
  769.                 lda     [128,x]
  770.                 lda     [-129,x]
  771.                 lda     [a,x]
  772.                 lda     [b,x]
  773. NearData        lda     [d,x]
  774.                 lda     [,x++]
  775.                 lda     [,--x]
  776.                 lda     [NearData,pc]
  777.                 lda     [>NearData,pc]
  778.                 lda     [AddressFour,pc]
  779.                 if ERRORS
  780.                 lda     [<AddressFour,pc]
  781.                 endif
  782.  
  783. FORWARD5        equ     5
  784. FORWARD99       equ     99
  785.  
  786.                 if __6309__
  787.                 lda     e,x
  788.                 lda     f,x
  789.                 lda     w,x
  790.                 lda     ,w
  791.                 lda     0,w
  792.                 lda     1,w
  793.                 lda     ,w++
  794.                 lda     ,--w
  795.                 lda     [e,x]
  796.                 lda     [f,x]
  797.                 lda     [w,x]
  798.                 lda     [,w]
  799.                 lda     [0,w]
  800.                 lda     [1000,w]
  801.                 lda     [,w++]
  802.                 lda     [,--w]
  803.                 endif
  804.  
  805.  
  806. ; ┌─────────────────────────────────────────────────────────────────────┐
  807. ; │                                                                     │
  808. ; │   Instructions in numerical order.                                  │
  809. ; │                                                                     │
  810. ; └─────────────────────────────────────────────────────────────────────┘
  811.  
  812.                 neg     DirectByte                  ; $00,2
  813.                 if __6309__
  814.                 oim     #123,DirectByte             ; $01,3
  815.                 aim     #123,DirectByte             ; $02,3
  816.                 endif
  817.                 com     DirectByte                  ; $03,2
  818.                 lsr     DirectByte                  ; $04,2
  819.                 if __6309__
  820.                 eim     #123,DirectByte             ; $05,3
  821.                 endif
  822.                 ror     DirectByte                  ; $06,2
  823.                 asr     DirectByte                  ; $07,2
  824.                 asl     DirectByte                  ; $08,2
  825.                 lsl     DirectByte                  ; alternate
  826.                 rol     DirectByte                  ; $09,2
  827.                 dec     DirectByte                  ; $0A,2
  828.                 if __6309__
  829.                 tim     #1,DirectByte               ; $0B,3
  830.                 endif
  831.                 inc     DirectByte                  ; $0C,2
  832.                 tst     DirectByte                  ; $0D,2
  833.                 jmp     DirectByte                  ; $0E,2
  834.                 clr     DirectByte                  ; $0F,2
  835.  
  836. ; ───────────────────────────────────────────────────────────────────────
  837.  
  838.                 nop                                 ; $12,1
  839.                 nop     4                           ; repeat count specified
  840.                 sync                                ; $13,1
  841.                 if __6309__
  842.                 sexw                                ; $14,1
  843.                 endif
  844.                 noopt
  845.                 lbra    AddressFour                 ; $16,3
  846.                 lbsr    AddressFour                 ; $17,3
  847.                 opt
  848.                 daa                                 ; $19,1
  849.                 orcc    #1                          ; $1A,2
  850.                 orcc    c                           ; alternate, specifying flags
  851.                 andcc   #~6                         ; $1C,2
  852.                 andcc   z,v                         ; alternate
  853.                 sex                                 ; $1D,1
  854.                 exg     a,b                         ; $1E,2
  855.                 tfr     a,b                         ; $1F,2
  856.                 if __6309__
  857.                 clrs                                ; using TFR to clear registers
  858.                 clrv
  859.                 clrx
  860.                 clry
  861.                 endif
  862.  
  863. ; ───────────────────────────────────────────────────────────────────────
  864.  
  865. BranchTarget    bra     BranchTarget                ; $20,2
  866.                 brn     BranchTarget                ; $21,2
  867.                 bhi     BranchTarget                ; $22,2
  868.                 bls     BranchTarget                ; $23,2
  869.                 bhs     BranchTarget                ; $24,2
  870.                 bcc     BranchTarget                ; alternate
  871.                 blo     BranchTarget                ; $25,2
  872.                 bcs     BranchTarget                ; alternate
  873.                 bne     BranchTarget                ; $26,2
  874.                 beq     BranchTarget                ; $27,2
  875.                 bvc     BranchTarget                ; $28,2
  876.                 bvs     BranchTarget                ; $29,2
  877.                 bpl     BranchTarget                ; $2A,2
  878.                 bmi     BranchTarget                ; $2B,2
  879.                 bge     BranchTarget                ; $2C,2
  880.                 blt     BranchTarget                ; $2D,2
  881.                 bgt     BranchTarget                ; $2E,2
  882.                 ble     BranchTarget                ; $2F,2
  883.  
  884. ; ───────────────────────────────────────────────────────────────────────
  885.  
  886.                 leax    a,x                         ; 30,2+
  887.                 leay    b,y                         ; 31,2+
  888.                 leas    d,s                         ; 32,2+
  889.                 leau    1,u                         ; 33,2+
  890.                 pshs    a,b                         ; $34,2
  891.                 pshs    all                         ; alternate
  892.                 pshs    #123                        ; alternate
  893.                 puls    x                           ; $35,2
  894.                 puls    all                         ; alternate
  895.                 puls    #$ff                        ; alternate
  896.                 pshu    ccr                         ; $36,2
  897.                 pulu    dpr                         ; $37,2
  898.                 rts                                 ; $39,1
  899.                 abx                                 ; $3A,1
  900.                 rti                                 ; $3B,1
  901.                 cwai    #127                        ; $3C,2
  902.                 cwai    e                           ; alternate
  903.                 mul                                 ; $3D,1
  904.                 swi                                 ; $3F,1
  905.  
  906. ; ───────────────────────────────────────────────────────────────────────
  907.  
  908.                 nega                                ; $40,1
  909.                 coma                                ; $43,1
  910.                 lsra                                ; $44,1
  911.                 rora                                ; $46,1
  912.                 asra                                ; $47,1
  913.                 asla                                ; $48,1
  914.                 lsla                                ; alternate
  915.                 rola                                ; $49,1
  916.                 deca                                ; $4A,1
  917.                 inca                                ; $4C,1
  918.                 tsta                                ; $4D,1
  919.                 clra                                ; $4F,1
  920.  
  921. ; ───────────────────────────────────────────────────────────────────────
  922.  
  923.                 negb                                ; $50,1
  924.                 comb                                ; $53,1
  925.                 lsrb                                ; $54,1
  926.                 rorb                                ; $56,1
  927.                 asrb                                ; $57,1
  928.                 aslb                                ; $58,1
  929.                 lslb                                ; alternate
  930.                 rolb                                ; $59,1
  931.                 decb                                ; $5A,1
  932.                 incb                                ; $5C,1
  933.                 tstb                                ; $5D,1
  934.                 clrb                                ; $5F,1
  935.  
  936. ; ───────────────────────────────────────────────────────────────────────
  937.  
  938.                 neg     ,x                          ; $60,2+
  939.                 if __6309__
  940.                 oim     #4,,x                       ; $61,3+
  941.                 aim     #8,,x                       ; $62,3+
  942.                 endif
  943.                 com     ,x                          ; $63,2+
  944.                 lsr     ,x                          ; $64,2+
  945.                 if __6309__
  946.                 eim     #9,,x                       ; $65,3+
  947.                 endif
  948.                 ror     ,x                          ; $66,2+
  949.                 asr     ,x                          ; $67,2+
  950.                 asl     ,x                          ; $68,2+
  951.                 lsl     ,x                          ; alternate
  952.                 rol     ,x                          ; $69,2+
  953.                 dec     ,x                          ; $6A,2+
  954.                 if __6309__
  955.                 tim     #123,,x                     ; $6B,3+
  956.                 endif
  957.                 inc     ,x                          ; $6C,2+
  958.                 tst     ,x                          ; $6D,2+
  959.                 jmp     ,x                          ; $6E,2+
  960.                 clr     ,x                          ; $6F,2+
  961.  
  962. ; ───────────────────────────────────────────────────────────────────────
  963.  
  964.                 neg     AddressFour                 ; $70,3
  965.                 if __6309__
  966.                 oim     #99,AddressFour             ; $71,4
  967.                 aim     #99,AddressFour             ; $72,4
  968.                 endif
  969.                 com     AddressFour                 ; $73,3
  970.                 lsr     AddressFour                 ; $74,3
  971.                 if __6309__
  972.                 eim     #-1,AddressFour             ; $75,4
  973.                 endif
  974.                 ror     AddressFour                 ; $76,3
  975.                 asr     AddressFour                 ; $77,3
  976.                 asl     AddressFour                 ; $78,3
  977.                 lsl     AddressFour                 ; alternate
  978.                 rol     AddressFour                 ; $79,3
  979.                 dec     AddressFour                 ; $7A,3
  980.                 if __6309__
  981.                 tim     #-128,AddressFour           ; $7B,4
  982.                 endif
  983.                 inc     AddressFour                 ; $7C,3
  984.                 tst     AddressFour                 ; $7D,3
  985.                 jmp     AddressFour                 ; $7E,3
  986.                 clr     AddressFour                 ; $7F,3
  987.  
  988. ; ───────────────────────────────────────────────────────────────────────
  989.  
  990. CallAddress     suba    #123                        ; $80,2
  991.                 cmpa    #123                        ; $81,2
  992.                 sbca    #123                        ; $82,2
  993.                 subd    #12345                      ; $83,3
  994.                 anda    #123                        ; $84,2
  995.                 bita    #123                        ; $85,2
  996.                 lda     #123                        ; $86,2
  997.                 eora    #123                        ; $88,2
  998.                 adca    #123                        ; $89,2
  999.                 ora     #123                        ; $8A,2
  1000.                 adda    #123                        ; $8B,2
  1001.                 cmpx    #12345                      ; $8C,3
  1002.                 bsr     CallAddress                 ; $8D,2
  1003.                 ldx     #12345                      ; $8E,3
  1004.  
  1005. ; ───────────────────────────────────────────────────────────────────────
  1006.  
  1007.                 suba    DirectByte                  ; $90,2
  1008.                 cmpa    DirectByte                  ; $91,2
  1009.                 sbca    DirectByte                  ; $92,2
  1010.                 subd    DirectWord                  ; $93,3
  1011.                 anda    DirectByte                  ; $94,2
  1012.                 bita    DirectByte                  ; $95,2
  1013.                 lda     DirectByte                  ; $96,2
  1014.                 sta     DirectByte                  ; $97,2
  1015.                 eora    DirectByte                  ; $98,2
  1016.                 adca    DirectByte                  ; $99,2
  1017.                 ora     DirectByte                  ; $9A,2
  1018.                 adda    DirectByte                  ; $9B,2
  1019.                 cmpx    DirectWord                  ; $9C,2
  1020.                 jsr     DirectCode                  ; $9D,2
  1021.                 ldx     DirectWord                  ; $9E,2
  1022.                 stx     DirectWord                  ; $9F,2
  1023.  
  1024. ; ───────────────────────────────────────────────────────────────────────
  1025.  
  1026.                 suba    [3,s]                       ; $A0,2+
  1027.                 cmpa    [3,s]                       ; $A1,2+
  1028.                 sbca    [3,s]                       ; $A2,2+
  1029.                 subd    [3,s]                       ; $A3,2+
  1030.                 anda    [3,s]                       ; $A4,2+
  1031.                 bita    [3,s]                       ; $A5,2+
  1032.                 lda     [3,s]                       ; $A6,2+
  1033.                 sta     [3,s]                       ; $A7,2+
  1034.                 eora    [3,s]                       ; $A8,2+
  1035.                 adca    [3,s]                       ; $A9,2+
  1036.                 ora     [3,s]                       ; $AA,2+
  1037.                 adda    [3,s]                       ; $AB,2+
  1038.                 cmpx    [3,s]                       ; $AC,2+
  1039.                 jsr     [3,s]                       ; $AD,2+
  1040.                 ldx     [3,s]                       ; $AE,2+
  1041.                 stx     [3,s]                       ; $AF,2+
  1042.  
  1043. ; ───────────────────────────────────────────────────────────────────────
  1044.  
  1045.                 suba    $ff00                       ; $B0,3
  1046.                 cmpa    $ff00                       ; $B1,3
  1047.                 sbca    $ff00                       ; $B2,3
  1048.                 subd    $ff00                       ; $B3,3
  1049.                 anda    $ff00                       ; $B4,3
  1050.                 bita    $ff00                       ; $B5,3
  1051.                 lda     $ff00                       ; $B6,3
  1052.                 sta     $ff00                       ; $B7,3
  1053.                 eora    $ff00                       ; $B8,3
  1054.                 adca    $ff00                       ; $B9,3
  1055.                 ora     $ff00                       ; $BA,3
  1056.                 adda    $ff00                       ; $BB,3
  1057.                 cmpx    $ff00                       ; $BC,3
  1058.                 jsr     $ff00                       ; $BD,3
  1059.                 ldx     $ff00                       ; $BE,3
  1060.                 stx     $ff00                       ; $BF,3
  1061.  
  1062. ; ───────────────────────────────────────────────────────────────────────
  1063.  
  1064.                 subb    #123                        ; $C0,2
  1065.                 cmpb    #123                        ; $C1,2
  1066.                 sbcb    #123                        ; $C2,2
  1067.                 addd    #12345                      ; $C3,3
  1068.                 andb    #123                        ; $C4,2
  1069.                 bitb    #123                        ; $C5,2
  1070.                 ldb     #123                        ; $C6,2
  1071.                 eorb    #123                        ; $C8,2
  1072.                 adcb    #123                        ; $C9,2
  1073.                 orb     #123                        ; $CA,2
  1074.                 addb    #123                        ; $CB,2
  1075.                 ldd     #12345                      ; $CC,3
  1076.                 if __6309__
  1077.                 ldq     #123456789                  ; $CD,5
  1078.                 endif
  1079.                 ldu     #12345                      ; $CE,3
  1080.  
  1081. ; ───────────────────────────────────────────────────────────────────────
  1082.  
  1083.                 subb    DirectByte                  ; $D0,2
  1084.                 cmpb    DirectByte                  ; $D1,2
  1085.                 sbcb    DirectByte                  ; $D2,2
  1086.                 addd    DirectWord                  ; $D3,3
  1087.                 andb    DirectByte                  ; $D4,2
  1088.                 bitb    DirectByte                  ; $D5,2
  1089.                 ldb     DirectByte                  ; $D6,2
  1090.                 stb     DirectByte                  ; $D7,2
  1091.                 eorb    DirectByte                  ; $D8,2
  1092.                 adcb    DirectByte                  ; $D9,2
  1093.                 orb     DirectByte                  ; $DA,2
  1094.                 addb    DirectByte                  ; $DB,2
  1095.                 ldd     DirectWord                  ; $DC,2
  1096.                 std     DirectWord                  ; $DD,2
  1097.                 ldu     DirectWord                  ; $DE,2
  1098.                 stu     DirectWord                  ; $DF,2
  1099.  
  1100. ; ───────────────────────────────────────────────────────────────────────
  1101.  
  1102. ; note effect of quasi-forward reference in the next line
  1103. LocalData       subb    LocalData,pc                ; $E0,2+
  1104. AnotherLocal    cmpb    <AnotherLocal,pc            ; $E1,2+
  1105.                 sbcb    LocalData,pc                ; $E2,2+
  1106.                 addd    LocalData,pc                ; $E3,2+
  1107.                 andb    LocalData,pc                ; $E4,2+
  1108.                 bitb    LocalData,pc                ; $E5,2+
  1109.                 ldb     LocalData,pc                ; $E6,2+
  1110.                 stb     LocalData,pc                ; $E7,2+
  1111.                 eorb    LocalData,pc                ; $E8,2+
  1112.                 adcb    LocalData,pc                ; $E9,2+
  1113.                 orb     LocalData,pc                ; $EA,2+
  1114.                 addb    LocalData,pc                ; $EB,2+
  1115.                 ldd     LocalData,pc                ; $EC,2+
  1116.                 std     LocalData,pc                ; $ED,2+
  1117.                 ldu     LocalData,pc                ; $EE,2+
  1118.                 stu     LocalData,pc                ; $EF,2+
  1119.  
  1120. ; ───────────────────────────────────────────────────────────────────────
  1121.  
  1122.                 subb    LocalData                   ; $F0,3
  1123.                 cmpb    LocalData                   ; $F1,3
  1124.                 sbcb    LocalData                   ; $F2,3
  1125.                 addd    LocalData                   ; $F3,3
  1126.                 andb    LocalData                   ; $F4,3
  1127.                 bitb    LocalData                   ; $F5,3
  1128.                 ldb     LocalData                   ; $F6,3
  1129.                 stb     LocalData                   ; $F7,3
  1130.                 eorb    LocalData                   ; $F8,3
  1131.                 adcb    LocalData                   ; $F9,3
  1132.                 orb     LocalData                   ; $FA,3
  1133.                 addb    LocalData                   ; $FB,3
  1134.                 ldd     LocalData                   ; $FC,3
  1135.                 std     LocalData                   ; $FD,3
  1136.                 ldu     LocalData                   ; $FE,3
  1137.                 stu     LocalData                   ; $FF,3
  1138.  
  1139. ; ┌─────────────────────────────────────────────────────────────────────┐
  1140. ; │                                                                     │
  1141. ; │   Instructions with prefix byte $10.                                │
  1142. ; │                                                                     │
  1143. ; └─────────────────────────────────────────────────────────────────────┘
  1144.  
  1145.                 lbrn    BranchTarget                ; $1021,4
  1146.                 lbhi    BranchTarget                ; $1022,4
  1147.                 lbls    BranchTarget                ; $1023,4
  1148.                 lbhs    BranchTarget                ; $1024,4
  1149.                 lbcc    BranchTarget                ; alternate
  1150.                 lblo    BranchTarget                ; $1025,4
  1151.                 lbcs    BranchTarget                ; alternate
  1152.                 lbne    BranchTarget                ; $1026,4
  1153.                 lbeq    BranchTarget                ; $1027,4
  1154.                 lbvc    BranchTarget                ; $1028,4
  1155.                 lbvs    BranchTarget                ; $1029,4
  1156.                 lbpl    BranchTarget                ; $102A,4
  1157.                 lbmi    BranchTarget                ; $102B,4
  1158.                 lbge    BranchTarget                ; $102C,4
  1159.                 lblt    BranchTarget                ; $102D,4
  1160.                 lbgt    BranchTarget                ; $102E,4
  1161.                 lble    BranchTarget                ; $102F,4
  1162.  
  1163. ; ───────────────────────────────────────────────────────────────────────
  1164.  
  1165.                 if __6309__
  1166.                 addr    a,b                         ; $1030,3
  1167.                 add     a,b                         ; alternate
  1168.                 adcr    w,d                         ; $1031,3
  1169.                 adc     w,d                         ; alternate
  1170.                 subr    d,x                         ; $1032,3
  1171.                 sub     d,x                         ; alternate
  1172.                 sbcr    b,a                         ; $1033,3
  1173.                 sbc     b,a                         ; alternate
  1174.                 andr    a,ccr                       ; $1034,3
  1175.                 and     a,ccr                       ; alternate
  1176.                 orr     b,dpr                       ; $1035,3
  1177.                 or      b,dpr                       ; alternate
  1178.                 eorr    w,d                         ; $1036,3
  1179.                 eor     w,d                         ; alternate
  1180.                 cmpr    d,u                         ; $1037,3
  1181.                 cmp     d,u                         ; alternate
  1182.                 pshsw                               ; $1038,2
  1183.                 pshs    w                           ; alternate
  1184.                 pulsw                               ; $1039,2
  1185.                 puls    w                           ; alternate
  1186.                 pshuw                               ; $103A,2
  1187.                 pshu    w                           ; alternate
  1188.                 puluw                               ; $103B,2
  1189.                 pulu    w                           ; alternate
  1190.                 endif
  1191.                 swi2                                ; $103F,2
  1192.                 swi     2                           ; alternate
  1193.  
  1194. ; ───────────────────────────────────────────────────────────────────────
  1195.  
  1196.                 if __6309__
  1197.                 negd                                ; $1040,2
  1198.                 comd                                ; $1043,2
  1199.                 lsrd                                ; $1044,2
  1200.                 rord                                ; $1046,2
  1201.                 asrd                                ; $1047,2
  1202.                 asld                                ; $1048,2
  1203.                 rold                                ; $1049,2
  1204.                 decd                                ; $104A,2
  1205.                 incd                                ; $104C,2
  1206.                 tstd                                ; $104D,2
  1207.                 clrd                                ; $104F,2
  1208.  
  1209. ; ───────────────────────────────────────────────────────────────────────
  1210.  
  1211.                 comw                                ; $1053,2
  1212.                 lsrw                                ; $1054,2
  1213.                 rorw                                ; $1056,2
  1214.                 rolw                                ; $1059,2
  1215.                 decw                                ; $105A,2
  1216.                 incw                                ; $105C,2
  1217.                 tstw                                ; $105D,2
  1218.                 clrw                                ; $105F,2
  1219.  
  1220. ; ───────────────────────────────────────────────────────────────────────
  1221.  
  1222.                 subw    #12345                      ; $1080,4
  1223.                 cmpw    #12345                      ; $1081,4
  1224.                 sbcd    #12345                      ; $1082,4
  1225.                 endif
  1226.                 cmpd    #12345                      ; $1083,4
  1227.                 if __6309__
  1228.                 andd    #12345                      ; $1084,4
  1229.                 bitd    #12345                      ; $1085,4
  1230.                 ldw     #12345                      ; $1086,4
  1231.                 eord    #12345                      ; $1088,4
  1232.                 adcd    #12345                      ; $1089,4
  1233.                 ord     #12345                      ; $108A,4
  1234.                 addw    #12345                      ; $108B,4
  1235.                 endif
  1236.                 cmpy    #12345                      ; $108C,4
  1237.                 ldy     #12345                      ; $108E,4
  1238.  
  1239. ; ───────────────────────────────────────────────────────────────────────
  1240.  
  1241.                 if __6309__
  1242.                 subw    DirectWord                  ; $1090,3
  1243.                 cmpw    DirectWord                  ; $1091,3
  1244.                 sbcd    DirectWord                  ; $1092,3
  1245.                 endif
  1246.                 cmpd    DirectWord                  ; $1093,3
  1247.                 if __6309__
  1248.                 andd    DirectWord                  ; $1094,3
  1249.                 bitd    DirectWord                  ; $1095,3
  1250.                 ldw     DirectWord                  ; $1096,3
  1251.                 stw     DirectWord                  ; $1097,3
  1252.                 eord    DirectWord                  ; $1098,3
  1253.                 adcd    DirectWord                  ; $1099,3
  1254.                 ord     DirectWord                  ; $109A,3
  1255.                 addw    DirectWord                  ; $109B,3
  1256.                 endif
  1257.                 cmpy    DirectWord                  ; $109C,3
  1258.                 ldy     DirectWord                  ; $109E,3
  1259.                 sty     DirectWord                  ; $109F,3
  1260.  
  1261. ; ───────────────────────────────────────────────────────────────────────
  1262.  
  1263.                 if __6309__
  1264.                 subw    ,w++                        ; $10A0,3+
  1265.                 cmpw    ,w++                        ; $10A1,3+
  1266.                 sbcd    ,w++                        ; $10A2,3+
  1267.                 endif
  1268.                 cmpd    ,--x                        ; $10A3,3+
  1269.                 if __6309__
  1270.                 andd    ,w++                        ; $10A4,3+
  1271.                 bitd    ,w++                        ; $10A5,3+
  1272.                 ldw     ,w++                        ; $10A6,3+
  1273.                 stw     ,w++                        ; $10A7,3+
  1274.                 eord    ,w++                        ; $10A8,3+
  1275.                 adcd    ,w++                        ; $10A9,3+
  1276.                 ord     ,w++                        ; $10AA,3+
  1277.                 addw    ,w++                        ; $10AB,3+
  1278.                 endif
  1279.                 cmpy    ,--x                        ; $10AC,3+
  1280.                 ldy     ,--x                        ; $10AE,3+
  1281.                 sty     ,--x                        ; $10AF,3+
  1282.  
  1283. ; ───────────────────────────────────────────────────────────────────────
  1284.  
  1285.                 if __6309__
  1286.                 subw    $7000                       ; $10B0,4
  1287.                 cmpw    $7000                       ; $10B1,4
  1288.                 sbcd    $7000                       ; $10B2,4
  1289.                 endif
  1290.                 cmpd    $7000                       ; $10B3,4
  1291.                 if __6309__
  1292.                 andd    $7000                       ; $10B4,4
  1293.                 bitd    $7000                       ; $10B5,4
  1294.                 ldw     $7000                       ; $10B6,4
  1295.                 stw     $7000                       ; $10B7,4
  1296.                 eord    $7000                       ; $10B8,4
  1297.                 adcd    $7000                       ; $10B9,4
  1298.                 ord     $7000                       ; $10BA,4
  1299.                 addw    $7000                       ; $10BB,4
  1300.                 endif
  1301.                 cmpy    $7000                       ; $10BC,4
  1302.                 ldy     $7000                       ; $10BE,4
  1303.                 sty     $7000                       ; $10BF,4
  1304.  
  1305. ; ───────────────────────────────────────────────────────────────────────
  1306.  
  1307.                 lds     #12345                      ; $10CE,4
  1308.  
  1309.                 if __6309__
  1310.                 ldq     DirectLong                  ; $10DC,3
  1311.                 stq     DirectLong                  ; $10DD,3
  1312.                 endif
  1313.                 lds     DirectWord                  ; $10DE,3
  1314.                 sts     DirectWord                  ; $10DF,3
  1315.  
  1316.                 if __6309__
  1317.                 ldq     ,x                          ; $10EC,3+
  1318.                 stq     ,x                          ; $10ED,3+
  1319.                 endif
  1320.                 lds     ,x                          ; $10EE,3+
  1321.                 sts     ,x                          ; $10EF,3+
  1322.  
  1323.                 if __6309__
  1324.                 ldq     AddressFour                 ; $10FC,4
  1325.                 stq     AddressFour                 ; $10FD,4
  1326.                 endif
  1327.                 lds     AddressFour                 ; $10FE,4
  1328.                 sts     AddressFour                 ; $10FF,4
  1329.  
  1330. ; ┌─────────────────────────────────────────────────────────────────────┐
  1331. ; │                                                                     │
  1332. ; │   Instructions with prefix byte $11.                                │
  1333. ; │                                                                     │
  1334. ; └─────────────────────────────────────────────────────────────────────┘
  1335.  
  1336.                 if __6309__
  1337.                 band    a.7,DirectByte.0            ; $1130,4
  1338.                 biand   b.6,DirectByte.1            ; $1131,4  
  1339.                 bor     cc.5,DirectByte.2           ; $1132,4  
  1340.                 bior    a.4,DirectByte.3            ; $1133,4  
  1341.                 beor    b.3,DirectByte.4            ; $1134,4  
  1342.                 bieor   cc.2,DirectByte.5           ; $1135,4  
  1343.                 ldbt    ccr.1,DirectByte.6          ; $1136,4  
  1344.                 stbt    ccr.0,DirectByte.7          ; $1137,4  
  1345.  
  1346.                 tfr     x+,y+                       ; $1138,3
  1347.                 tfm     x+,y+                       ; alternate
  1348.                 tfr     u-,x-                       ; $1139,3
  1349.                 tfm     u-,x-                       ; alternate
  1350.                 tfr     s+,x                        ; $113A,3
  1351.                 tfm     s+,x                        ; alternate
  1352.                 tfr     x,y+                        ; $113B,3
  1353.                 tfm     x,y+                        ; alternate
  1354.                 bitmd    #128                       ; $113C,3  
  1355.                 ldmd     #1                         ; $113D,3  
  1356.                 endif
  1357.                 swi3                                ; $113F,2
  1358.                 swi     3                           ; alternate
  1359.  
  1360. ; ───────────────────────────────────────────────────────────────────────
  1361.  
  1362.                 if __6309__
  1363.                 come                                ; $1143,2  
  1364.                 dece                                ; $114A,2  
  1365.                 ince                                ; $114C,2  
  1366.                 tste                                ; $114D,2  
  1367.                 clre                                ; $114F,2  
  1368.  
  1369.                 comf                                ; $1153,2  
  1370.                 decf                                ; $115A,2  
  1371.                 incf                                ; $115C,2  
  1372.                 tstf                                ; $115D,2  
  1373.                 clrf                                ; $115F,2  
  1374.                 endif
  1375.  
  1376. ; ───────────────────────────────────────────────────────────────────────
  1377.  
  1378.                 if __6309__
  1379.                 sube    #123                        ; $1180,3  
  1380.                 cmpe    #123                        ; $1181,3  
  1381.                 endif
  1382.                 cmpu    #12345                      ; $1183,4
  1383.                 if __6309__
  1384.                 lde     #123                        ; $1186,3  
  1385.                 adde    #123                        ; $118B,3  
  1386.                 endif
  1387.                 cmps    #12345                      ; $118C,4
  1388.                 if __6309__
  1389.                 divd    #123                        ; $118D,3  
  1390.                 divq    #12345                      ; $118E,4  
  1391.                 muld    #12345                      ; $118F,4  
  1392.                 endif
  1393.  
  1394. ; ───────────────────────────────────────────────────────────────────────
  1395.  
  1396.                 if __6309__
  1397.                 sube    DirectByte                  ; $1190,3 
  1398.                 cmpe    DirectByte                  ; $1191,3 
  1399.                 endif
  1400.                 cmpu    DirectWord                  ; $1193,3
  1401.                 if __6309__
  1402.                 lde     DirectByte                  ; $1196,3 
  1403.                 ste     DirectByte                  ; $1197,3 
  1404.                 adde    DirectByte                  ; $119B,3 
  1405.                 endif
  1406.                 cmps    DirectWord                  ; $119C,3
  1407.                 if __6309__
  1408.                 divd    DirectWord                  ; $119D,3 
  1409.                 divq    DirectWord                  ; $119E,3 
  1410.                 muld    DirectWord                  ; $119F,3 
  1411.                 endif
  1412.  
  1413. ; ───────────────────────────────────────────────────────────────────────
  1414.  
  1415.                 if __6309__
  1416.                 sube    ,s+                         ; $11A0,3+ 
  1417.                 cmpe    ,s+                         ; $11A1,3+ 
  1418.                 endif
  1419.                 cmpu    ,s++                        ; $11A3,3+
  1420.                 if __6309__
  1421.                 lde     ,s+                         ; $11A6,3+ 
  1422.                 ste     ,s+                         ; $11A7,3+ 
  1423.                 adde    ,s+                         ; $11AB,3+ 
  1424.                 endif
  1425.                 cmps    ,s++                        ; $11AC,3+
  1426.                 if __6309__
  1427.                 divd    ,s+                         ; $11AD,3+ 
  1428.                 divq    ,s++                        ; $11AE,3+ 
  1429.                 muld    ,s++                        ; $11AF,3+ 
  1430.                 endif
  1431.  
  1432. ; ───────────────────────────────────────────────────────────────────────
  1433.  
  1434.                 if __6309__
  1435.                 sube    $9000                       ; $11B0,4
  1436.                 cmpe    $9000                       ; $11B1,4
  1437.                 endif
  1438.                 cmpu    $9000                       ; $11B3,4
  1439.                 if __6309__
  1440.                 lde     $9000                       ; $11B6,4
  1441.                 ste     $9000                       ; $11B7,4
  1442.                 adde    $9000                       ; $11BB,4
  1443.                 endif
  1444.                 cmps    $9000                       ; $11BC,4
  1445.                 if __6309__
  1446.                 divd    $9000                       ; $11BD,4
  1447.                 divq    $9000                       ; $11BE,4
  1448.                 muld    $9000                       ; $11BF,4
  1449.                 endif
  1450.  
  1451. ; ───────────────────────────────────────────────────────────────────────
  1452.  
  1453.                 if __6309__
  1454.                 subf    #123                        ; $11C0,3
  1455.                 cmpf    #123                        ; $11C1,3
  1456.                 ldf     #123                        ; $11C6,3
  1457.                 addf    #123                        ; $11CB,3
  1458.                 endif
  1459.  
  1460. ; ───────────────────────────────────────────────────────────────────────
  1461.  
  1462.                 if __6309__
  1463.                 subf    DirectByte                  ; $11D0,3 
  1464.                 cmpf    DirectByte                  ; $11D1,3 
  1465.                 ldf     DirectByte                  ; $11D6,3 
  1466.                 stf     DirectByte                  ; $11D7,3 
  1467.                 addf    DirectByte                  ; $11DB,3 
  1468.  
  1469.                 subf    ,s+                         ; $11E0,3+
  1470.                 cmpf    ,s+                         ; $11E1,3+
  1471.                 ldf     ,s+                         ; $11E6,3+
  1472.                 stf     ,s+                         ; $11E7,3+
  1473.                 addf    ,s+                         ; $11EB,3+
  1474.  
  1475.                 subf    $9000                       ; $11F0,4 
  1476.                 cmpf    $9000                       ; $11F1,4 
  1477.                 ldf     $9000                       ; $11F6,4 
  1478.                 stf     $9000                       ; $11F7,4 
  1479.                 addf    $9000                       ; $11FB,4 
  1480.                 endif
  1481.  
  1482.  
  1483.                 end     Start
  1484. ; ───── EOF ─────────────────────────────────────────────────────────────
  1485.  
  1486.