home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / doc / as6809.lp < prev    next >
Text File  |  1992-09-13  |  15KB  |  793 lines

  1.  
  2.  
  3.  
  4.                                   - 1 -
  5.  
  6.  
  7.  
  8.        A.  A✓A✓A✓Ap✓p✓p✓pp✓p✓p✓pe✓e✓e✓en✓n✓n✓nd✓d✓d✓di✓i✓i✓ix✓x✓x✓x f✓f✓f✓fo✓o✓o✓or✓r✓r✓r a✓a✓a✓as✓s✓s✓s6✓6✓6✓68✓8✓8✓80✓0✓0✓09✓9✓9✓9 F✓F✓F✓Fr✓r✓r✓ra✓a✓a✓an✓n✓n✓nk✓k✓k✓ke✓e✓e✓en✓n✓n✓ns✓s✓s✓st✓t✓t✓te✓e✓e✓ei✓i✓i✓in✓n✓n✓n A✓A✓A✓As✓s✓s✓ss✓s✓s✓se✓e✓e✓em✓m✓m✓mb✓b✓b✓bl✓l✓l✓le✓e✓e✓er✓r✓r✓r
  9.  
  10.        A.1  P✓P✓P✓Ps✓s✓s✓se✓e✓e✓eu✓u✓u✓ud✓d✓d✓do✓o✓o✓o O✓O✓O✓Op✓p✓p✓pe✓e✓e✓er✓r✓r✓ra✓a✓a✓at✓t✓t✓ti✓i✓i✓io✓o✓o✓on✓n✓n✓ns✓s✓s✓s
  11.  
  12.        A.1.1  _✓S_✓t_✓a_✓n_✓d_✓a_✓r_✓d__✓P_✓s_✓e_✓u_✓d_✓o__✓O_✓p_✓e_✓r_✓a_✓t_✓i_✓o_✓n__✓M_✓n_✓e_✓m_✓o_✓n_✓i_✓c_✓s
  13.  
  14.             End                                END
  15.             File Inclusion                     INCL INCLUDE
  16.             If                                 IF
  17.             Else                               ELSE
  18.             End If                             ENDI
  19.             Equate                             EQU
  20.             Set                                SET
  21.             Org                                ORG
  22.             Reserve Memory                     RESERVE RMB
  23.             Define Byte Data                   BYTE DB FCB
  24.             Define Word Data                   DW FDB WORD
  25.             Define String Data                 FCC STRING
  26.             Define Character Set Translation   CHARSET
  27.             Define Character Value             CHARDEF CHD
  28.             Use Character Translation          CHARUSE
  29.  
  30.        A.2  I✓I✓I✓In✓n✓n✓ns✓s✓s✓st✓t✓t✓tr✓r✓r✓ru✓u✓u✓uc✓c✓c✓ct✓t✓t✓ti✓i✓i✓io✓o✓o✓on✓n✓n✓ns✓s✓s✓s
  31.  
  32.        A.2.1  _✓I_✓n_✓s_✓t_✓r_✓u_✓c_✓t_✓i_✓o_✓n__✓L_✓i_✓s_✓t
  33.  
  34.        Opcode   Syntax                   Selection Criteria
  35.  
  36.  
  37.        ABX
  38.  
  39.        ADCA      '#' expr
  40.        ADCA      expr                    DIRECT
  41.        ADCA      expr                    EXTENDED
  42.        ADCA      indexed
  43.  
  44.        ADCB      '#' expr
  45.        ADCB      expr                    DIRECT
  46.        ADCB      expr                    EXTENDED
  47.        ADCB      indexed
  48.  
  49.        ADDA      '#' expr
  50.        ADDA      expr                    DIRECT
  51.        ADDA      expr                    EXTENDED
  52.        ADDA      indexed
  53.  
  54.        ADDB      '#' expr
  55.        ADDB      expr                    DIRECT
  56.        ADDB      expr                    EXTENDED
  57.        ADDB      indexed
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        Opcode   Syntax                   Selection Criteria
  75.  
  76.        ADDD      '#' expr
  77.        ADDD      expr                    DIRECT
  78.        ADDD      expr                    EXTENDED
  79.        ADDD      indexed
  80.  
  81.        ANDA      '#' expr
  82.        ANDA      expr                    DIRECT
  83.        ANDA      expr                    EXTENDED
  84.        ANDA      indexed
  85.  
  86.        ANDB      '#' expr
  87.        ANDB      expr                    DIRECT
  88.        ANDB      expr                    EXTENDED
  89.        ANDB      indexed
  90.  
  91.        ANDCC     '#' expr
  92.  
  93.        ASL       expr                    DIRECT
  94.        ASL       expr                    EXTENDED
  95.        ASL       indexed
  96.  
  97.        ASLA
  98.  
  99.        ASLB
  100.  
  101.        ASR       expr                    DIRECT
  102.        ASR       expr                    EXTENDED
  103.        ASR       indexed
  104.  
  105.        ASRA
  106.  
  107.        ASRB
  108.  
  109.        BCC       expr
  110.  
  111.        BCS       expr
  112.  
  113.        BEQ       expr
  114.  
  115.        BGE       expr
  116.  
  117.        BGT       expr
  118.  
  119.        BHI       expr
  120.  
  121.        BHS       expr
  122.  
  123.        BITA      '#' expr
  124.        BITA      expr                    DIRECT
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        Opcode   Syntax                   Selection Criteria
  141.  
  142.        BITA      expr                    EXTENDED
  143.        BITA      indexed
  144.  
  145.        BITB      '#' expr
  146.        BITB      expr                    DIRECT
  147.        BITB      expr                    EXTENDED
  148.        BITB      indexed
  149.  
  150.        BLE       expr
  151.  
  152.        BLO       expr
  153.  
  154.        BLS       expr
  155.  
  156.        BLT       expr
  157.  
  158.        BMI       expr
  159.  
  160.        BNE       expr
  161.  
  162.        BPL       expr
  163.  
  164.        BRA       expr
  165.  
  166.        BRN       expr
  167.  
  168.        BSR       expr
  169.  
  170.        BVC       expr
  171.  
  172.        BVS       expr
  173.  
  174.        CLR       expr                    DIRECT
  175.        CLR       expr                    EXTENDED
  176.        CLR       indexed
  177.  
  178.        CLRA
  179.  
  180.        CLRB
  181.  
  182.        CMPA      '#' expr
  183.        CMPA      expr                    DIRECT
  184.        CMPA      expr                    EXTENDED
  185.        CMPA      indexed
  186.  
  187.        CMPB      '#' expr
  188.        CMPB      expr                    DIRECT
  189.        CMPB      expr                    EXTENDED
  190.        CMPB      indexed
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax                   Selection Criteria
  207.  
  208.  
  209.        CMPD      '#' expr
  210.        CMPD      expr                    DIRECT
  211.        CMPD      expr                    EXTENDED
  212.        CMPD      indexed
  213.  
  214.        CMPS      '#' expr
  215.        CMPS      expr                    DIRECT
  216.        CMPS      expr                    EXTENDED
  217.        CMPS      indexed
  218.  
  219.        CMPU      '#' expr
  220.        CMPU      expr                    DIRECT
  221.        CMPU      expr                    EXTENDED
  222.        CMPU      indexed
  223.  
  224.        CMPX      '#' expr
  225.        CMPX      expr                    DIRECT
  226.        CMPX      expr                    EXTENDED
  227.        CMPX      indexed
  228.  
  229.        CMPY      '#' expr
  230.        CMPY      expr                    DIRECT
  231.        CMPY      expr                    EXTENDED
  232.        CMPY      indexed
  233.  
  234.        COM       expr                    DIRECT
  235.        COM       expr                    EXTENDED
  236.        COM       indexed
  237.  
  238.        COMA
  239.  
  240.        COMB
  241.  
  242.        CWAI      '#' expr
  243.  
  244.        DAA
  245.  
  246.        DEC       expr                    DIRECT
  247.        DEC       expr                    EXTENDED
  248.        DEC       indexed
  249.  
  250.        DECA
  251.  
  252.        DECB
  253.  
  254.        EORA      '#' expr
  255.        EORA      expr                    DIRECT
  256.        EORA      expr                    EXTENDED
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax                   Selection Criteria
  273.  
  274.        EORA      indexed
  275.  
  276.        EORB      '#' expr
  277.        EORB      expr                    DIRECT
  278.        EORB      expr                    EXTENDED
  279.        EORB      indexed
  280.  
  281.        EXG       register ',' register
  282.  
  283.        INC       expr                    DIRECT
  284.        INC       expr                    EXTENDED
  285.        INC       indexed
  286.  
  287.        INCA
  288.  
  289.        INCB
  290.  
  291.        JMP       expr                    DIRECT
  292.        JMP       expr                    EXTENDED
  293.        JMP       indexed
  294.  
  295.        JSR       expr                    DIRECT
  296.        JSR       expr                    EXTENDED
  297.        JSR       indexed
  298.  
  299.        LBCC      expr
  300.  
  301.        LBCS      expr
  302.  
  303.        LBEQ      expr
  304.  
  305.        LBGE      expr
  306.  
  307.        LBGT      expr
  308.  
  309.        LBHI      expr
  310.  
  311.        LBHS      expr
  312.  
  313.        LBLE      expr
  314.  
  315.        LBLO      expr
  316.  
  317.        LBLS      expr
  318.  
  319.        LBLT      expr
  320.  
  321.        LBMI      expr
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax                   Selection Criteria
  339.  
  340.        LBNE      expr
  341.  
  342.        LBPL      expr
  343.  
  344.        LBRA      expr
  345.  
  346.        LBRN      expr
  347.  
  348.        LBSR      expr
  349.  
  350.        LBVC      expr
  351.  
  352.        LBVS      expr
  353.  
  354.        LDA       '#' expr
  355.        LDA       expr                    DIRECT
  356.        LDA       expr                    EXTENDED
  357.        LDA       indexed
  358.  
  359.        LDB       '#' expr
  360.        LDB       expr                    DIRECT
  361.        LDB       expr                    EXTENDED
  362.        LDB       indexed
  363.  
  364.        LDD       '#' expr
  365.        LDD       expr                    DIRECT
  366.        LDD       expr                    EXTENDED
  367.        LDD       indexed
  368.  
  369.        LDS       '#' expr
  370.        LDS       expr                    DIRECT
  371.        LDS       expr                    EXTENDED
  372.        LDS       indexed
  373.  
  374.        LDU       '#' expr
  375.        LDU       expr                    DIRECT
  376.        LDU       expr                    EXTENDED
  377.        LDU       indexed
  378.  
  379.        LDX       '#' expr
  380.        LDX       expr                    DIRECT
  381.        LDX       expr                    EXTENDED
  382.        LDX       indexed
  383.  
  384.        LDY       '#' expr
  385.        LDY       expr                    DIRECT
  386.        LDY       expr                    EXTENDED
  387.        LDY       indexed
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        Opcode   Syntax                   Selection Criteria
  405.  
  406.        LEAS      indexed
  407.  
  408.        LEAU      indexed
  409.  
  410.        LEAX      indexed
  411.  
  412.        LEAY      indexed
  413.  
  414.        LSL       expr                    DIRECT
  415.        LSL       expr                    EXTENDED
  416.        LSL       indexed
  417.  
  418.        LSLA
  419.  
  420.        LSLB
  421.  
  422.        LSR       expr                    DIRECT
  423.        LSR       expr                    EXTENDED
  424.        LSR       indexed
  425.  
  426.        LSRA
  427.  
  428.        LSRB
  429.  
  430.        MUL
  431.  
  432.        NEG       expr                    DIRECT
  433.        NEG       expr                    EXTENDED
  434.        NEG       indexed
  435.  
  436.        NEGA
  437.  
  438.        NEGB
  439.  
  440.        NOP
  441.  
  442.        ORA       '#' expr
  443.        ORA       expr                    DIRECT
  444.        ORA       expr                    EXTENDED
  445.        ORA       indexed
  446.  
  447.        ORB       '#' expr
  448.        ORB       expr                    DIRECT
  449.        ORB       expr                    EXTENDED
  450.        ORB       indexed
  451.  
  452.        ORCC      '#' expr
  453.  
  454.        PSHS      register list
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                   - 8 -
  467.  
  468.  
  469.  
  470.        Opcode   Syntax                   Selection Criteria
  471.  
  472.  
  473.        PSHU      register list
  474.  
  475.        PULS      register list
  476.  
  477.        PULU      register list
  478.  
  479.        ROL       expr                    DIRECT
  480.        ROL       expr                    EXTENDED
  481.        ROL       indexed
  482.  
  483.        ROLA
  484.  
  485.        ROLB
  486.  
  487.        ROR       expr                    DIRECT
  488.        ROR       expr                    EXTENDED
  489.        ROR       indexed
  490.  
  491.        RORA
  492.  
  493.        RORB
  494.  
  495.        RTI
  496.  
  497.        RTS
  498.  
  499.        SBCA      '#' expr
  500.        SBCA      expr                    DIRECT
  501.        SBCA      expr                    EXTENDED
  502.        SBCA      indexed
  503.  
  504.        SBCB      '#' expr
  505.        SBCB      expr                    DIRECT
  506.        SBCB      expr                    EXTENDED
  507.        SBCB      indexed
  508.  
  509.        SEX
  510.  
  511.        STA       expr                    DIRECT
  512.        STA       expr                    EXTENDED
  513.        STA       indexed
  514.  
  515.        STB       expr                    DIRECT
  516.        STB       expr                    EXTENDED
  517.        STB       indexed
  518.  
  519.        STD       expr                    DIRECT
  520.        STD       expr                    EXTENDED
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.                                   - 9 -
  533.  
  534.  
  535.  
  536.        Opcode   Syntax                   Selection Criteria
  537.  
  538.        STD       indexed
  539.  
  540.        STS       expr                    DIRECT
  541.        STS       expr                    EXTENDED
  542.        STS       indexed
  543.  
  544.        STU       expr                    DIRECT
  545.        STU       expr                    EXTENDED
  546.        STU       indexed
  547.  
  548.        STX       expr                    DIRECT
  549.        STX       expr                    EXTENDED
  550.        STX       indexed
  551.  
  552.        STY       expr                    DIRECT
  553.        STY       expr                    EXTENDED
  554.        STY       indexed
  555.  
  556.        SUBA      '#' expr
  557.        SUBA      expr                    DIRECT
  558.        SUBA      expr                    EXTENDED
  559.        SUBA      indexed
  560.  
  561.        SUBB      '#' expr
  562.        SUBB      expr                    DIRECT
  563.        SUBB      expr                    EXTENDED
  564.        SUBB      indexed
  565.  
  566.        SUBD      '#' expr
  567.        SUBD      expr                    DIRECT
  568.        SUBD      expr                    EXTENDED
  569.        SUBD      indexed
  570.  
  571.        SWI2
  572.  
  573.        SWI3
  574.  
  575.        SWI
  576.  
  577.        SYNC
  578.  
  579.        TFR       register ',' register
  580.  
  581.        TST       expr                    DIRECT
  582.        TST       expr                    EXTENDED
  583.        TST       indexed
  584.  
  585.        TSTA
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.                                   - 10 -
  599.  
  600.  
  601.  
  602.        Opcode   Syntax                   Selection Criteria
  603.  
  604.        TSTB
  605.  
  606.        A.2.2  _✓O_✓p_✓e_✓r_✓a_✓n_✓d__✓T_✓y_✓p_✓e_✓s
  607.  
  608.        A.2.2.1  _✓r_✓e_✓g_✓i_✓s_✓t_✓e_✓r__✓l_✓i_✓s_✓t  The operands for the push and pull
  609.        operations consist of a list of one or more registers
  610.        seperated by commas.  The stack pointer associated with an
  611.        operator will give an error if it occurs in the list.  The
  612.        registers can be D, X, Y, U, S, PC, A, B, CC, DP and their
  613.        lower case equivalents.  For the push and pull operations,
  614.        the D register is an alias for the A and B registers, and
  615.        will result in two selection bits set in the postbyte.
  616.  
  617.        A.2.2.2  _✓i_✓n_✓d_✓e_✓x_✓e_✓d  The indexed mode operands are in the
  618.        forms.
  619.  
  620.             , index
  621.             expr , index
  622.             accumulator , index
  623.             , index +
  624.             , index ++
  625.             , - index
  626.             , -- index
  627.             expr , PCR
  628.             [ , index ]
  629.             [ expr , index ]
  630.             [ accumulator , index ]
  631.             [ , index ++ ]
  632.             [ , -- index ]
  633.             [ expr , PCR ]
  634.             [ expr ]
  635.  
  636.        Index can be any of X, Y, S, U (or their lower case
  637.        equivalents). Accumulator can be any of A, B, D (or their
  638.        lower case equivalents).
  639.  
  640.        The short offset forms will only be used if the expression
  641.        in the operand has a value defined at the first pass, and
  642.        the value is small enough to fit.  Expressions that have an
  643.        as yet undefined value will use the 16 bit offset form.
  644.  
  645.        A.2.3  _✓S_✓e_✓l_✓e_✓c_✓t_✓i_✓o_✓n__✓C_✓r_✓i_✓t_✓e_✓r_✓i_✓a__✓K_✓e_✓y_✓w_✓o_✓r_✓d_✓s
  646.  
  647.             DIRECT              The instruction can use the direct
  648.                                 addressing mode. The expression
  649.                                 must have a value between 0 and 255
  650.                                 that is defined when the
  651.                                 instruction is processed in the
  652.                                 input pass.
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                                   - 11 -
  665.  
  666.  
  667.  
  668.             EXTENDED            The instruction can use the
  669.                                 extended addressing mode.
  670.  
  671.        A.2.4  _✓A_✓p_✓o_✓s_✓t_✓r_✓o_✓p_✓h_✓e_✓s  The apostrophes in the syntax field are
  672.        a notation used for the parser generator and are not put in
  673.        the assembler source statement.
  674.  
  675.        A.3  N✓N✓N✓No✓o✓o✓ot✓t✓t✓te✓e✓e✓es✓s✓s✓s
  676.  
  677.        A.3.1  _✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s
  678.  
  679.        A.3.1.1  _✓M_✓a_✓c_✓h_✓i_✓n_✓e__✓D_✓e_✓p_✓e_✓n_✓d_✓e_✓n_✓t__✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s  A B CC D DP PC
  680.        PCR S U X Y a b cc d dp pc pcr s u x y
  681.  
  682.        A.3.1.2  _✓S_✓t_✓a_✓n_✓d_✓a_✓r_✓d__✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s  AND DEFINED EQ GE GT
  683.        HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR and defined eq ge
  684.        gt high le low lt mod ne not or shl shr xor
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.                                  CONTENTS
  735.  
  736.  
  737.        A.  Appendix for as6809 Frankenstein Assembler..........   1
  738.            A.1  Pseudo Operations..............................   1
  739.            A.2  Instructions...................................   1
  740.            A.3  Notes..........................................  11
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.                                   - i -
  789.  
  790.  
  791.  
  792.  
  793.