home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / pseudo1.zip / A685 / MNEMTEST.ASM < prev    next >
Assembly Source File  |  1989-11-09  |  13KB  |  577 lines

  1.          .org 0
  2.          mult                  ;available only in special 6805's.
  3.          brset  0,h'00,reltst1
  4.          brset  0,h'ff,reltst1
  5.          brset  1,h'00,reltst1
  6.          brset  1,h'ff,reltst1
  7.          brset  2,h'00,reltst1
  8.          brset  2,h'ff,reltst1
  9.          brset  3,h'00,reltst1
  10.          brset  3,h'ff,reltst1
  11.          brset  4,h'00,reltst1
  12.          brset  4,h'ff,reltst1
  13.          brset  5,h'00,reltst1
  14.          brset  5,h'ff,reltst1
  15.          brset  6,h'00,reltst1
  16.          brset  6,h'ff,reltst1
  17.          brset  7,h'00,reltst1
  18.          brset  7,h'ff,reltst1
  19. reltst1: brclr  0,h'00,reltst1
  20.          brclr  0,h'ff,reltst1
  21.          brclr  1,h'00,reltst1
  22.          brclr  1,h'ff,reltst1
  23.          brclr  2,h'00,reltst1
  24.          brclr  2,h'ff,reltst1
  25.          brclr  3,h'00,reltst1
  26.          brclr  3,h'ff,reltst1
  27.          brclr  4,h'00,reltst1
  28.          brclr  4,h'ff,reltst1
  29.          brclr  5,h'00,reltst1
  30.          brclr  5,h'ff,reltst1
  31.          brclr  6,h'00,reltst1
  32.          brclr  6,h'ff,reltst1
  33.          brclr  7,h'00,reltst1
  34.          brclr  7,h'ff,reltst1
  35.          bset  0,h'00
  36.          bset  0,h'ff
  37.          bset  1,h'00
  38.          bset  1,h'ff
  39.          bset  2,h'00
  40.          bset  2,h'ff
  41.          bset  3,h'00
  42.          bset  3,h'ff
  43.          bset  4,h'00
  44.          bset  4,h'ff
  45.          bset  5,h'00
  46.          bset  5,h'ff
  47.          bset  6,h'00
  48.          bset  6,h'ff
  49.          bset  7,h'00
  50.          bset  7,h'ff
  51.          bclr  0,h'00
  52.          bclr  0,h'ff
  53.          bclr  1,h'00
  54.          bclr  1,h'ff
  55.          bclr  2,h'00
  56.          bclr  2,h'ff
  57.          bclr  3,h'00
  58.          bclr  3,h'ff
  59.          bclr  4,h'00
  60.          bclr  4,h'ff
  61.          bclr  5,h'00
  62.          bclr  5,h'ff
  63.          bclr  6,h'00
  64.          bclr  6,h'ff
  65.          bclr  7,h'00
  66.          bclr  7,h'ff
  67.          add #h'00
  68.          add #h'ff
  69.          add 100
  70.          add h'00,x
  71.          add h'ff,x
  72.          add 1000
  73.          add h'00,x1
  74.          add h'ff,x1
  75.          add 1000,x
  76.          add h'00,x2
  77.          add h'ff,x2
  78.          add 1000,x2
  79.          adc #h'00
  80.          adc #h'ff
  81.          adc 100
  82.          adc h'00,x
  83.          adc h'ff,x
  84.          adc 1000
  85.          and #h'00
  86.          and #h'ff
  87.          and 100
  88.          and h'00,x
  89.          and h'ff,x
  90.          and 1000
  91.          bit #h'00
  92.          bit #h'ff
  93.          bit 100
  94.          bit h'00,x
  95.          bit h'ff,x
  96.          bit 1000
  97.          cmp #h'00
  98.          cmp #h'ff
  99.          cmp 100
  100.          cmp h'00,x
  101.          cmp h'ff,x
  102.          cmp 1000
  103.          eor #h'00
  104.          eor #h'ff
  105.          eor 100
  106.          eor h'00,x
  107.          eor h'ff,x
  108.          eor 1000
  109.          lda #h'00
  110.          lda #h'ff
  111.          lda 100
  112.          lda h'00,x
  113.          lda h'ff,x
  114.          lda 1000
  115.          ora #h'00
  116.          ora #h'ff
  117.          ora 100
  118.          ora h'00,x
  119.          ora h'ff,x
  120.          ora 1000
  121.          sta 100
  122.          sta h'00,x
  123.          sta h'ff,x
  124.          sta 1000
  125.          sub #h'00
  126.          sub #h'ff
  127.          sub 100
  128.          sub h'00,x
  129.          sub h'ff,x
  130.          sub 1000
  131.          sbc #h'00
  132.          sbc #h'ff
  133.          sbc 100
  134.          sbc h'00,x
  135.          sbc h'ff,x
  136.          sbc 1000
  137.          clra
  138.          clrx
  139.          clr 100
  140.          clr h'00,x
  141.          clr h'ff,x
  142.          clr 0,x
  143.          coma
  144.          comx
  145.          com 100
  146.          com h'00,x
  147.          com h'ff,x
  148.          com 0,x
  149.          nega
  150.          negx
  151.          neg 100
  152.          neg h'00,x
  153.          neg h'ff,x
  154.          neg 0,x
  155.          deca
  156.          decx
  157.          dec 100
  158.          dec h'00,x
  159.          dec h'ff,x
  160.          dec 0,x
  161.          inca
  162.          incx
  163.          inc 100
  164.          inc h'00,x
  165.          inc h'ff,x
  166.          inc 0,x
  167.          rola
  168.          rolx
  169.          rol 100
  170.          rol h'00,x
  171.          rol h'ff,x
  172.          rol 0,x
  173.          rora
  174.          rorx
  175.          ror 100
  176.          ror h'00,x
  177.          ror h'ff,x
  178.          ror 0,x
  179.          lsla
  180.          lslx
  181.          lsl 100
  182.          lsl h'00,x
  183.          lsl h'ff,x
  184.          lsl 0,x
  185.          asra
  186.          asrx
  187.          asr 100
  188.          asr h'00,x
  189.          asr h'ff,x
  190.          asr 0,x
  191.          lsra
  192.          lsrx
  193.          lsr 100
  194.          lsr h'00,x
  195.          lsr h'ff,x
  196.          lsr 0,x
  197.          tsta
  198.          tstx
  199.          tst 100
  200.          tst h'00,x
  201.          tst h'ff,x
  202.          tst 0,x
  203.          jmp x
  204.          jmp 0,x
  205.          jmp 100,x
  206.          jmp 1000,x
  207.          jmp 100,x1
  208.          jmp 0,x1
  209.          jmp 100
  210.          jmp 1000
  211.          jsr x
  212.          jsr 0,x
  213.          jsr 100,x
  214.          jsr 1000,x
  215.          jsr 100,x1
  216.          jsr 0,x1
  217.          jsr 100
  218.          jsr 1000
  219.          ldx #h'00
  220.          ldx #h'ff
  221.          ldx x
  222.          ldx 0,x
  223.          ldx 100,x
  224.          ldx 1000,x
  225.          ldx 100,x1
  226.          ldx 0,x1
  227.          ldx 100
  228.          ldx 1000
  229.          cpx #h'00
  230.          cpx #h'ff
  231.          cpx x
  232.          cpx 0,x
  233.          cpx 100,x
  234.          cpx 1000,x
  235.          cpx 100,x1
  236.          cpx 0,x1
  237.          cpx 100
  238.          cpx 1000
  239.          stx x
  240.          stx 0,x
  241.          stx 100,x
  242.          stx 1000,x
  243.          stx 100,x1
  244.          stx 0,x1
  245.          stx 100
  246.          stx 1000
  247.          tax
  248.          txa
  249.          nop
  250.          rti
  251.          rts
  252.          swi
  253.          wait
  254.          clc
  255.          cli
  256.          rsp
  257.          sec
  258.          sei
  259.          stop
  260.          bra reltst
  261.          brn reltst
  262.          bhi reltst
  263.          bls reltst
  264.          bcc reltst
  265.          bhs reltst
  266.          bcs reltst
  267.          blo reltst
  268. reltst:  bne reltst
  269.          beq reltst
  270.          bhcc reltst
  271.          bhcs reltst
  272.          bpl reltst
  273.          bmi reltst
  274.          bmc reltst
  275.          bms reltst
  276.          bil reltst
  277.          bih reltst
  278.          bsr reltst
  279. synctst1:
  280.          brset forbit0,forward1,reltst2
  281.          brset forbit0,forward2,reltst2
  282.          brset forbit1,forward1,reltst2
  283.          brset forbit1,forward2,reltst2
  284.          brset forbit2,forward1,reltst2
  285.          brset forbit2,forward2,reltst2
  286.          brset forbit3,forward1,reltst2
  287.          brset forbit3,forward2,reltst2
  288.          brset forbit4,forward1,reltst2
  289.          brset forbit4,forward2,reltst2
  290.          brset forbit5,forward1,reltst2
  291.          brset forbit5,forward2,reltst2
  292.          brset forbit6,forward1,reltst2
  293.          brset forbit6,forward2,reltst2
  294.          brset forbit7,forward1,reltst2
  295.          brset forbit7,forward2,reltst2
  296. reltst2: brclr forbit0,forward1,reltst2
  297.          brclr forbit0,forward2,reltst2
  298.          brclr forbit1,forward1,reltst2
  299.          brclr forbit1,forward2,reltst2
  300.          brclr forbit2,forward1,reltst2
  301.          brclr forbit2,forward2,reltst2
  302.          brclr forbit3,forward1,reltst2
  303.          brclr forbit3,forward2,reltst2
  304.          brclr forbit4,forward1,reltst2
  305.          brclr forbit4,forward2,reltst2
  306.          brclr forbit5,forward1,reltst2
  307.          brclr forbit5,forward2,reltst2
  308.          brclr forbit6,forward1,reltst2
  309.          brclr forbit6,forward2,reltst2
  310.          brclr forbit7,forward1,reltst2
  311.          brclr forbit7,forward2,reltst2
  312.          bset forbit0,forward1
  313.          bset forbit0,forward2
  314.          bset forbit1,forward1
  315.          bset forbit1,forward2
  316.          bset forbit2,forward1
  317.          bset forbit2,forward2
  318.          bset forbit3,forward1
  319.          bset forbit3,forward2
  320.          bset forbit4,forward1
  321.          bset forbit4,forward2
  322.          bset forbit5,forward1
  323.          bset forbit5,forward2
  324.          bset forbit6,forward1
  325.          bset forbit6,forward2
  326.          bset forbit7,forward1
  327.          bset forbit7,forward2
  328.          bclr forbit0,forward1
  329.          bclr forbit0,forward2
  330.          bclr forbit1,forward1
  331.          bclr forbit1,forward2
  332.          bclr forbit2,forward1
  333.          bclr forbit2,forward2
  334.          bclr forbit3,forward1
  335.          bclr forbit3,forward2
  336.          bclr forbit4,forward1
  337.          bclr forbit4,forward2
  338.          bclr forbit5,forward1
  339.          bclr forbit5,forward2
  340.          bclr forbit6,forward1
  341.          bclr forbit6,forward2
  342.          bclr forbit7,forward1
  343.          bclr forbit7,forward2
  344.          add #forward1
  345.          add #forward2
  346.          add 100
  347.          add forward1
  348.          add forward1,x
  349.          add forward2,x
  350.          add 1000
  351.          add forward1,x1
  352.          add forward2,x1
  353.          add 1000,x
  354.          add forward1,x2
  355.          add forward2,x2
  356.          add 1000,x2
  357.          add forward3,x
  358.          add forward1,x1
  359.          add forward2,x1
  360.          add forward3,x2
  361.          adc #forward1
  362.          adc #forward2
  363.          adc 100
  364.          adc forward1,x
  365.          adc forward2,x
  366.          adc 1000
  367.          and #forward1
  368.          and #forward2
  369.          and 100
  370.          and forward1,x
  371.          and forward2,x
  372.          and 1000
  373.          bit #forward1
  374.          bit #forward2
  375.          bit 100
  376.          bit forward1,x
  377.          bit forward2,x
  378.          bit 1000
  379.          cmp #forward1
  380.          cmp #forward2
  381.          cmp 100
  382.          cmp forward1,x
  383.          cmp forward2,x
  384.          cmp 1000
  385.          eor #forward1
  386.          eor #forward2
  387.          eor 100
  388.          eor forward1,x
  389.          eor forward2,x
  390.          eor 1000
  391.          lda #forward1
  392.          lda #forward2
  393.          lda 100
  394.          lda forward1,x
  395.          lda forward2,x
  396.          lda 1000
  397.          ora #forward1
  398.          ora #forward2
  399.          ora 100
  400.          ora forward1,x
  401.          ora forward2,x
  402.          ora 1000
  403.          sta 100
  404.          sta forward1,x
  405.          sta forward2,x
  406.          sta 1000
  407.          sub #forward1
  408.          sub #forward2
  409.          sub 100
  410.          sub forward1,x
  411.          sub forward2,x
  412.          sub 1000
  413.          sbc #forward1
  414.          sbc #forward2
  415.          sbc 100
  416.          sbc forward1,x
  417.          sbc forward2,x
  418.          sbc 1000
  419.          clra
  420.          clrx
  421.          clr 100
  422.          clr forward1
  423.          clr forward2
  424.          clr forward1,x
  425.          clr forward2,x
  426.          clr 0,x
  427.          coma
  428.          comx
  429.          com 100
  430.          com forward1,x
  431.          com forward2,x
  432.          com 0,x
  433.          nega
  434.          negx
  435.          neg 100
  436.          neg forward1,x
  437.          neg forward2,x
  438.          neg 0,x
  439.          deca
  440.          decx
  441.          dec 100
  442.          dec forward1,x
  443.          dec forward2,x
  444.          dec 0,x
  445.          inca
  446.          incx
  447.          inc 100
  448.          inc forward1,x
  449.          inc forward2,x
  450.          inc 0,x
  451.          rola
  452.          rolx
  453.          rol 100
  454.          rol forward1,x
  455.          rol forward2,x
  456.          rol 0,x
  457.          rora
  458.          rorx
  459.          ror 100
  460.          ror forward1,x
  461.          ror forward2,x
  462.          ror 0,x
  463.          lsla
  464.          lslx
  465.          lsl 100
  466.          lsl forward1,x
  467.          lsl forward2,x
  468.          lsl 0,x
  469.          asra
  470.          asrx
  471.          asr 100
  472.          asr forward1,x
  473.          asr forward2,x
  474.          asr 0,x
  475.          lsra
  476.          lsrx
  477.          lsr 100
  478.          lsr forward1,x
  479.          lsr forward2,x
  480.          lsr 0,x
  481.          tsta
  482.          tstx
  483.          tst 100
  484.          tst forward1,x
  485.          tst forward2,x
  486.          tst 0,x
  487.          tst 0,x1
  488.          tst h'ff,x1
  489.          jmp x
  490.          jmp 0,x
  491.          jmp 100,x
  492.          jmp 1000,x
  493.          jmp 100,x1
  494.          jmp 0,x1
  495.          jmp 100
  496.          jmp 1000
  497.          jsr x
  498.          jsr 0,x
  499.          jsr 100,x
  500.          jsr 1000,x
  501.          jsr 100,x1
  502.          jsr 0,x1
  503.          jsr 100
  504.          jsr forward2
  505.          ldx #forward1
  506.          ldx #forward2
  507.          ldx x
  508.          ldx 0,x
  509.          ldx 100,x
  510.          ldx 1000,x
  511.          ldx 100,x1
  512.          ldx 0,x1
  513.          ldx 100
  514.          ldx 1000
  515.          cpx #forward1
  516.          cpx #forward2
  517.          cpx x
  518.          cpx 0,x
  519.          cpx 100,x
  520.          cpx 1000,x
  521.          cpx 100,x1
  522.          cpx 0,x1
  523.          cpx 100
  524.          cpx 1000
  525.          stx x
  526.          stx 0,x
  527.          stx 100,x
  528.          stx 1000,x
  529.          stx 100,x1
  530.          stx 0,x1
  531.          stx 100
  532.          stx 1000
  533.          tax
  534.          txa
  535.          nop
  536.          rti
  537.          rts
  538.          swi
  539.          wait
  540.          clc
  541.          cli
  542.          rsp
  543.          sec
  544.          sei
  545.          stop
  546.          bra reltst3
  547.          brn reltst3
  548.          bhi reltst3
  549.          bls reltst3
  550.          bcc reltst3
  551.          bcs reltst3
  552. reltst3:  bne reltst3
  553.          beq reltst3
  554.          bhcc reltst3
  555.          bhcs reltst3
  556.          bpl reltst3
  557.          bmi reltst3
  558.          bmc reltst3
  559.          bms reltst3
  560.          bil reltst3
  561.          bih reltst3
  562.          bsr reltst3
  563. synctst2:
  564.         .equ forward1,h'00
  565.         .equ forward2,h'ff
  566.         .equ forward3,1000
  567.         .equ forbit0,0
  568.         .equ forbit1,1
  569.         .equ forbit2,2
  570.         .equ forbit3,3
  571.         .equ forbit4,4
  572.         .equ forbit5,5
  573.         .equ forbit6,6
  574.         .equ forbit7,7
  575.         .org h'1000
  576.          .end
  577.