home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / doc / as7000.lp < prev    next >
Text File  |  1992-09-13  |  15KB  |  595 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✓s7✓7✓7✓70✓0✓0✓00✓0✓0✓00✓0✓0✓0 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  _✓D_✓i_✓f_✓f_✓e_✓r_✓e_✓n_✓c_✓e_✓s__✓w_✓i_✓t_✓h__✓t_✓h_✓e__✓T_✓I__✓d_✓e_✓f_✓i_✓n_✓e_✓d__✓S_✓y_✓n_✓t_✓a_✓x
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        TI syntax                          as7000 syntax
  75.  
  76.        op % immediate , register          op # immediate , register
  77.        op % immed , register, jump dest   op # immed , register , jump dest
  78.        op @ label                         op label
  79.        op @ label ( B )                   op expr ( B )
  80.        op *register                       op [ register ]
  81.        movd % immed ( B ) , register      movd # immed (B), register
  82.  
  83.        Constants
  84.  
  85.        ?0101010                           %01010101
  86.        >89ab                              $89ab
  87.        ''''                               "'"
  88.  
  89.        Comments
  90.  
  91.        after the last operand             everything following a semicolon
  92.  
  93.        Symbols
  94.  
  95.        R0-R255                            equ with value between 0 and $ff
  96.        R0-R255                            0 to 255, Not Recommended !
  97.        P0-P255                            equ with value between $100 and $1ff
  98.        P0-P255                            256 to 511, Not Recommended !
  99.  
  100.  
  101.        A.2.2  _✓I_✓n_✓s_✓t_✓r_✓u_✓c_✓t_✓i_✓o_✓n__✓L_✓i_✓s_✓t
  102.  
  103.        Opcode   Syntax                           Selection Criteria
  104.  
  105.  
  106.        ADC       '#' expr ',' expr
  107.        ADC       '#' expr ',' expr               DSTA
  108.        ADC       '#' expr ',' expr               DSTB
  109.        ADC       expr ',' expr
  110.        ADC       expr ',' expr                   DSTA
  111.        ADC       expr ',' expr                   DSTB
  112.        ADC       expr ',' expr                   SRCB DSTA
  113.  
  114.        ADD       '#' expr ',' expr
  115.        ADD       '#' expr ',' expr               DSTA
  116.        ADD       '#' expr ',' expr               DSTB
  117.        ADD       expr ',' expr
  118.        ADD       expr ',' expr                   DSTA
  119.        ADD       expr ',' expr                   DSTB
  120.        ADD       expr ',' expr                   SRCB DSTA
  121.  
  122.        AND       '#' expr ',' expr
  123.        AND       '#' expr ',' expr               DSTA
  124.        AND       '#' expr ',' expr               DSTB
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        Opcode   Syntax                           Selection Criteria
  141.  
  142.        AND       expr ',' expr
  143.        AND       expr ',' expr                   DSTA
  144.        AND       expr ',' expr                   DSTB
  145.        AND       expr ',' expr                   SRCB DSTA
  146.  
  147.        ANDP      '#' expr ',' expr
  148.        ANDP      expr ',' expr                   SRCA
  149.        ANDP      expr ',' expr                   SRCB
  150.  
  151.        BR        '[' expr ']'
  152.        BR        expr '(' REG ')'                SRCB
  153.        BR        expr
  154.  
  155.        BTJO      '#' expr ',' expr ',' expr
  156.        BTJO      '#' expr ',' expr ',' expr      DSTA
  157.        BTJO      '#' expr ',' expr ',' expr      DSTB
  158.        BTJO      expr ',' expr ',' expr
  159.        BTJO      expr ',' expr ',' expr          DSTA
  160.        BTJO      expr ',' expr ',' expr          DSTB
  161.        BTJO      expr ',' expr ',' expr          SRCB DSTA
  162.  
  163.        BTJOP     '#' expr ',' expr ',' expr
  164.        BTJOP     expr ',' expr ',' expr          SRCA
  165.        BTJOP     expr ',' expr ',' expr          SRCB
  166.  
  167.        BTJZ      '#' expr ',' expr ',' expr
  168.        BTJZ      '#' expr ',' expr ',' expr      DSTA
  169.        BTJZ      '#' expr ',' expr ',' expr      DSTB
  170.        BTJZ      expr ',' expr ',' expr
  171.        BTJZ      expr ',' expr ',' expr          DSTA
  172.        BTJZ      expr ',' expr ',' expr          DSTB
  173.        BTJZ      expr ',' expr ',' expr          SRCB DSTA
  174.  
  175.        BTJZP     '#' expr ',' expr ',' expr
  176.        BTJZP     expr ',' expr ',' expr          SRCA
  177.        BTJZP     expr ',' expr ',' expr          SRCB
  178.  
  179.        CALL      '[' expr ']'
  180.        CALL      expr '(' REG ')'                SRCB
  181.        CALL      expr
  182.  
  183.        CLR       expr
  184.        CLR       expr                            DSTA
  185.        CLR       expr                            DSTB
  186.  
  187.        CLRC
  188.  
  189.        CMP       '#' expr ',' expr
  190.        CMP       '#' expr ',' expr               DSTA
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax                           Selection Criteria
  207.  
  208.        CMP       '#' expr ',' expr               DSTB
  209.        CMP       expr ',' expr
  210.        CMP       expr ',' expr                   DSTA
  211.        CMP       expr ',' expr                   DSTB
  212.        CMP       expr ',' expr                   SRCB DSTA
  213.  
  214.        CMPA      '[' expr ']'
  215.        CMPA      expr '(' REG ')'                SRCB
  216.        CMPA      expr
  217.  
  218.        DAC       '#' expr ',' expr
  219.        DAC       '#' expr ',' expr               DSTA
  220.        DAC       '#' expr ',' expr               DSTB
  221.        DAC       expr ',' expr
  222.        DAC       expr ',' expr                   DSTA
  223.        DAC       expr ',' expr                   DSTB
  224.        DAC       expr ',' expr                   SRCB DSTA
  225.  
  226.        DEC       expr
  227.        DEC       expr                            DSTA
  228.        DEC       expr                            DSTB
  229.  
  230.        DECD      expr
  231.        DECD      expr                            DSTA
  232.        DECD      expr                            DSTB
  233.  
  234.        DINT
  235.  
  236.        DJNZ      expr ',' expr
  237.        DJNZ      expr ',' expr                   DSTA
  238.        DJNZ      expr ',' expr                   DSTB
  239.  
  240.        DSB       '#' expr ',' expr
  241.        DSB       '#' expr ',' expr               DSTA
  242.        DSB       '#' expr ',' expr               DSTB
  243.        DSB       expr ',' expr
  244.        DSB       expr ',' expr                   DSTA
  245.        DSB       expr ',' expr                   DSTB
  246.        DSB       expr ',' expr                   SRCB DSTA
  247.  
  248.        EINT
  249.  
  250.        IDLE
  251.  
  252.        INC       expr
  253.        INC       expr                            DSTA
  254.        INC       expr                            DSTB
  255.  
  256.        INV       expr
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax                           Selection Criteria
  273.  
  274.        INV       expr                            DSTA
  275.        INV       expr                            DSTB
  276.  
  277.        JC        expr
  278.  
  279.        JEQ       expr
  280.  
  281.        JGE       expr
  282.  
  283.        JGT       expr
  284.  
  285.        JHS       expr
  286.  
  287.        JL        expr
  288.  
  289.        JLT       expr
  290.  
  291.        JMP       expr
  292.  
  293.        JN        expr
  294.  
  295.        JNC       expr
  296.  
  297.        JNE       expr
  298.  
  299.        JNZ       expr
  300.  
  301.        JP        expr
  302.  
  303.        JPZ       expr
  304.  
  305.        JZ        expr
  306.  
  307.        LDA       '[' expr ']'
  308.        LDA       expr '(' REG ')'                SRCB
  309.        LDA       expr
  310.  
  311.        LDSP
  312.  
  313.        MOV       '#' expr ',' expr
  314.        MOV       '#' expr ',' expr               DSTA
  315.        MOV       '#' expr ',' expr               DSTB
  316.        MOV       expr ',' expr
  317.        MOV       expr ',' expr                   DSTA
  318.        MOV       expr ',' expr                   DSTB
  319.        MOV       expr ',' expr                   SRCA
  320.        MOV       expr ',' expr                   SRCA DSTB
  321.        MOV       expr ',' expr                   SRCB
  322.        MOV       expr ',' expr                   SRCB DSTA
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax                           Selection Criteria
  339.  
  340.  
  341.        MOVD      '#' expr '(' REG ')' ',' expr
  342.        MOVD      '#' expr ',' expr
  343.        MOVD      expr ',' expr
  344.  
  345.        MOVP      '#' expr ',' expr
  346.        MOVP      expr ',' expr                   DSTA
  347.        MOVP      expr ',' expr                   DSTB
  348.        MOVP      expr ',' expr                   SRCA
  349.        MOVP      expr ',' expr                   SRCB
  350.  
  351.        MPY       '#' expr ',' expr
  352.        MPY       '#' expr ',' expr               DSTA
  353.        MPY       '#' expr ',' expr               DSTB
  354.        MPY       expr ',' expr
  355.        MPY       expr ',' expr                   DSTA
  356.        MPY       expr ',' expr                   DSTB
  357.        MPY       expr ',' expr                   SRCB DSTA
  358.  
  359.        NOP
  360.  
  361.        OR        '#' expr ',' expr
  362.        OR        '#' expr ',' expr               DSTA
  363.        OR        '#' expr ',' expr               DSTB
  364.        OR        expr ',' expr
  365.        OR        expr ',' expr                   DSTA
  366.        OR        expr ',' expr                   DSTB
  367.        OR        expr ',' expr                   SRCB DSTA
  368.  
  369.        ORP       '#' expr ',' expr
  370.        ORP       expr ',' expr                   SRCA
  371.        ORP       expr ',' expr                   SRCB
  372.  
  373.        POP        STATUS
  374.        POP       expr
  375.        POP       expr                            DSTA
  376.        POP       expr                            DSTB
  377.  
  378.        PUSH       STATUS
  379.        PUSH      expr
  380.        PUSH      expr                            DSTA
  381.        PUSH      expr                            DSTB
  382.  
  383.        RETI
  384.  
  385.        RETS
  386.  
  387.        RL        expr
  388.        RL        expr                            DSTA
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        Opcode   Syntax                           Selection Criteria
  405.  
  406.        RL        expr                            DSTB
  407.  
  408.        RLC       expr
  409.        RLC       expr                            DSTA
  410.        RLC       expr                            DSTB
  411.  
  412.        RR        expr
  413.        RR        expr                            DSTA
  414.        RR        expr                            DSTB
  415.  
  416.        RRC       expr
  417.        RRC       expr                            DSTA
  418.        RRC       expr                            DSTB
  419.  
  420.        SBB       '#' expr ',' expr
  421.        SBB       '#' expr ',' expr               DSTA
  422.        SBB       '#' expr ',' expr               DSTB
  423.        SBB       expr ',' expr
  424.        SBB       expr ',' expr                   DSTA
  425.        SBB       expr ',' expr                   DSTB
  426.        SBB       expr ',' expr                   SRCB DSTA
  427.  
  428.        SETC
  429.  
  430.        STA       '[' expr ']'
  431.        STA       expr '(' REG ')'                SRCB
  432.        STA       expr
  433.  
  434.        STSP
  435.  
  436.        SUB       '#' expr ',' expr
  437.        SUB       '#' expr ',' expr               DSTA
  438.        SUB       '#' expr ',' expr               DSTB
  439.        SUB       expr ',' expr
  440.        SUB       expr ',' expr                   DSTA
  441.        SUB       expr ',' expr                   DSTB
  442.        SUB       expr ',' expr                   SRCB DSTA
  443.  
  444.        SWAP      expr
  445.        SWAP      expr                            DSTA
  446.        SWAP      expr                            DSTB
  447.  
  448.        TRAP      expr
  449.  
  450.        TSTA
  451.  
  452.        TSTB
  453.  
  454.        XCHB      expr
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                   - 8 -
  467.  
  468.  
  469.  
  470.        Opcode   Syntax                           Selection Criteria
  471.  
  472.        XCHB      expr                            DSTA
  473.        XCHB      expr                            DSTB
  474.  
  475.        XOR       '#' expr ',' expr
  476.        XOR       '#' expr ',' expr               DSTA
  477.        XOR       '#' expr ',' expr               DSTB
  478.        XOR       expr ',' expr
  479.        XOR       expr ',' expr                   DSTA
  480.        XOR       expr ',' expr                   DSTB
  481.        XOR       expr ',' expr                   SRCB DSTA
  482.  
  483.        XORP      '#' expr ',' expr
  484.        XORP      expr ',' expr                   SRCA
  485.        XORP      expr ',' expr                   SRCB
  486.  
  487.        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
  488.  
  489.             DSTA                The instruction will use a short
  490.                                 form if the A register is used as
  491.                                 the destination register.
  492.  
  493.             DSTB                The instruction will use a short
  494.                                 form if the B register is used as
  495.                                 the destination register.
  496.  
  497.             SRCA                The instruction will use a short
  498.                                 form if the A register is used as
  499.                                 the source register.
  500.  
  501.             SRCB                The instruction will use a short
  502.                                 form if the B register is used as
  503.                                 the source register.
  504.  
  505.        A.2.4  _✓A_✓p_✓o_✓s_✓t_✓r_✓o_✓p_✓h_✓e_✓s  The apostrophes in the syntax field are
  506.        a notation used for the parser generator and are not put in
  507.        the assembler source statement.
  508.  
  509.        A.3  N✓N✓N✓No✓o✓o✓ot✓t✓t✓te✓e✓e✓es✓s✓s✓s
  510.  
  511.        A.3.1  _✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s
  512.  
  513.        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 ST a b st
  514.  
  515.        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
  516.        HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR and defined eq ge
  517.        gt high le low lt mod ne not or shl shr xor
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.                                  CONTENTS
  537.  
  538.  
  539.        A.  Appendix for as7000 Frankenstein Assembler...........  1
  540.            A.1  Pseudo Operations...............................  1
  541.            A.2  Instructions....................................  1
  542.            A.3  Notes...........................................  8
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.                                   - i -
  591.  
  592.  
  593.  
  594.  
  595.