home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / doc / as2650.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✓s2✓2✓2✓26✓6✓6✓65✓5✓5✓50✓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                     RES RESERVE RMB
  23.             Define Byte Data                   BYTE DATA 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.1.2  _✓M_✓a_✓c_✓h_✓i_✓n_✓e__✓D_✓e_✓p_✓e_✓n_✓d_✓e_✓n_✓t__✓P_✓s_✓e_✓u_✓d_✓o__✓O_✓p_✓e_✓r_✓a_✓t_✓i_✓o_✓n_✓s
  31.  
  32.        A.1.2.1  _✓D_✓e_✓f_✓i_✓n_✓e__✓A_✓d_✓d_✓r_✓e_✓s_✓s__✓C_✓o_✓n_✓s_✓t_✓a_✓n_✓t
  33.  
  34.             [Label] ACON expression [, expression] ...
  35.  
  36.        The acon statement generates a two byte integer for each
  37.        expression in the expression list.  Each expression is
  38.        limited in value from 0 to 32767, values outside this range
  39.        will result in an "expression exceeds available field width"
  40.        error.  There can be up to 128 expressions on the line,
  41.        within the line length limit.  The optional label is set to
  42.        the address of the first expression.
  43.  
  44.        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
  45.  
  46.        A.2.1  _✓I_✓n_✓s_✓t_✓r_✓u_✓c_✓t_✓i_✓o_✓n__✓L_✓i_✓s_✓t
  47.  
  48.        Opcode   Syntax                               Selection Criteria
  49.  
  50.  
  51.        ADDA      ',' REG  expr
  52.        ADDA      ',' REG '*' expr ',' REG ',' '+'
  53.        ADDA      ',' REG '*' expr ',' REG ',' '-'
  54.        ADDA      ',' REG '*' expr ',' REG
  55.        ADDA      ',' REG '*' expr
  56.        ADDA      ',' REG expr ',' REG ',' '+'
  57.        ADDA      ',' REG expr ',' REG ',' '-'
  58.        ADDA      ',' REG expr ',' REG
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        Opcode   Syntax                               Selection Criteria
  75.  
  76.  
  77.        ADDI      ',' REG expr
  78.  
  79.        ADDR      ',' REG '*' expr
  80.        ADDR      ',' REG expr
  81.  
  82.        ADDZ      REG
  83.  
  84.        ANDA      ',' REG  expr
  85.        ANDA      ',' REG '*' expr ',' REG ',' '+'
  86.        ANDA      ',' REG '*' expr ',' REG ',' '-'
  87.        ANDA      ',' REG '*' expr ',' REG
  88.        ANDA      ',' REG '*' expr
  89.        ANDA      ',' REG expr ',' REG ',' '+'
  90.        ANDA      ',' REG expr ',' REG ',' '-'
  91.        ANDA      ',' REG expr ',' REG
  92.  
  93.        ANDI      ',' REG expr
  94.  
  95.        ANDR      ',' REG '*' expr
  96.        ANDR      ',' REG expr
  97.  
  98.        ANDZ      REG                                 REG1
  99.        ANDZ      REG                                 REG2
  100.        ANDZ      REG                                 REG3
  101.  
  102.        BCFA      ',' CONDITION '*' expr              COND0
  103.        BCFA      ',' CONDITION '*' expr              COND1
  104.        BCFA      ',' CONDITION '*' expr              COND2
  105.        BCFA      ',' CONDITION expr                  COND0
  106.        BCFA      ',' CONDITION expr                  COND1
  107.        BCFA      ',' CONDITION expr                  COND2
  108.  
  109.        BCFR      ',' CONDITION '*' expr              COND0
  110.        BCFR      ',' CONDITION '*' expr              COND1
  111.        BCFR      ',' CONDITION '*' expr              COND2
  112.        BCFR      ',' CONDITION expr                  COND0
  113.        BCFR      ',' CONDITION expr                  COND1
  114.        BCFR      ',' CONDITION expr                  COND2
  115.  
  116.        BCTA      ',' CONDITION '*' expr
  117.        BCTA      ',' CONDITION expr
  118.  
  119.        BCTR      ',' CONDITION '*' expr
  120.        BCTR      ',' CONDITION expr
  121.  
  122.        BDRA      ',' REG '*' expr
  123.        BDRA      ',' REG expr
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        Opcode   Syntax                               Selection Criteria
  141.  
  142.        BDRR      ',' REG '*' expr
  143.        BDRR      ',' REG expr
  144.  
  145.        BIRA      ',' REG '*' expr
  146.        BIRA      ',' REG expr
  147.  
  148.        BIRR      ',' REG '*' expr
  149.        BIRR      ',' REG expr
  150.  
  151.        BRNA      ',' REG '*' expr
  152.        BRNA      ',' REG expr
  153.  
  154.        BRNR      ',' REG '*' expr
  155.        BRNR      ',' REG expr
  156.  
  157.        BSFA      ',' CONDITION '*' expr              COND0
  158.        BSFA      ',' CONDITION '*' expr              COND1
  159.        BSFA      ',' CONDITION '*' expr              COND2
  160.        BSFA      ',' CONDITION expr                  COND0
  161.        BSFA      ',' CONDITION expr                  COND1
  162.        BSFA      ',' CONDITION expr                  COND2
  163.  
  164.        BSFR      ',' CONDITION '*' expr              COND0
  165.        BSFR      ',' CONDITION '*' expr              COND1
  166.        BSFR      ',' CONDITION '*' expr              COND2
  167.        BSFR      ',' CONDITION expr                  COND0
  168.        BSFR      ',' CONDITION expr                  COND1
  169.        BSFR      ',' CONDITION expr                  COND2
  170.  
  171.        BSNA      ',' REG '*' expr
  172.        BSNA      ',' REG expr
  173.  
  174.        BSNR      ',' REG '*' expr
  175.        BSNR      ',' REG expr
  176.  
  177.        BSTA      ',' CONDITION '*' expr
  178.        BSTA      ',' CONDITION expr
  179.  
  180.        BSTR      ',' CONDITION '*' expr
  181.        BSTR      ',' CONDITION expr
  182.  
  183.        BSXA      '*' expr ',' REG                    REG3
  184.        BSXA      expr ',' REG                        REG3
  185.  
  186.        BXA       '*' expr ',' REG                    REG3
  187.        BXA       expr ',' REG                        REG3
  188.  
  189.        COMA      ',' REG  expr
  190.        COMA      ',' REG '*' expr ',' REG ',' '+'
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax                               Selection Criteria
  207.  
  208.        COMA      ',' REG '*' expr ',' REG ',' '-'
  209.        COMA      ',' REG '*' expr ',' REG
  210.        COMA      ',' REG '*' expr
  211.        COMA      ',' REG expr ',' REG ',' '+'
  212.        COMA      ',' REG expr ',' REG ',' '-'
  213.        COMA      ',' REG expr ',' REG
  214.  
  215.        COMI      ',' REG expr
  216.  
  217.        COMR      ',' REG '*' expr
  218.        COMR      ',' REG expr
  219.  
  220.        COMZ      REG
  221.  
  222.        CPSL      expr
  223.  
  224.        CPSU      expr
  225.  
  226.        DAR       ',' REG
  227.  
  228.        EORA      ',' REG  expr
  229.        EORA      ',' REG '*' expr ',' REG ',' '+'
  230.        EORA      ',' REG '*' expr ',' REG ',' '-'
  231.        EORA      ',' REG '*' expr ',' REG
  232.        EORA      ',' REG '*' expr
  233.        EORA      ',' REG expr ',' REG ',' '+'
  234.        EORA      ',' REG expr ',' REG ',' '-'
  235.        EORA      ',' REG expr ',' REG
  236.  
  237.        EORI      ',' REG expr
  238.  
  239.        EORR      ',' REG '*' expr
  240.        EORR      ',' REG expr
  241.  
  242.        EORZ      REG
  243.  
  244.        HALT
  245.  
  246.        IORA      ',' REG  expr
  247.        IORA      ',' REG '*' expr ',' REG ',' '+'
  248.        IORA      ',' REG '*' expr ',' REG ',' '-'
  249.        IORA      ',' REG '*' expr ',' REG
  250.        IORA      ',' REG '*' expr
  251.        IORA      ',' REG expr ',' REG ',' '+'
  252.        IORA      ',' REG expr ',' REG ',' '-'
  253.        IORA      ',' REG expr ',' REG
  254.  
  255.        IORI      ',' REG expr
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax                               Selection Criteria
  273.  
  274.        IORR      ',' REG '*' expr
  275.        IORR      ',' REG expr
  276.  
  277.        IORZ      REG
  278.  
  279.        LODA      ',' REG  expr
  280.        LODA      ',' REG '*' expr ',' REG ',' '+'
  281.        LODA      ',' REG '*' expr ',' REG ',' '-'
  282.        LODA      ',' REG '*' expr ',' REG
  283.        LODA      ',' REG '*' expr
  284.        LODA      ',' REG expr ',' REG ',' '+'
  285.        LODA      ',' REG expr ',' REG ',' '-'
  286.        LODA      ',' REG expr ',' REG
  287.  
  288.        LODI      ',' REG expr
  289.  
  290.        LODR      ',' REG '*' expr
  291.        LODR      ',' REG expr
  292.  
  293.        LODZ      REG                                 REG0
  294.        LODZ      REG                                 REG1
  295.        LODZ      REG                                 REG2
  296.        LODZ      REG                                 REG3
  297.  
  298.        LPSL
  299.  
  300.        LPSU
  301.  
  302.        NOP
  303.  
  304.        PPSL      expr
  305.  
  306.        PPSU      expr
  307.  
  308.        REDC      ',' REG
  309.  
  310.        REDD      ',' REG
  311.  
  312.        REDE      ',' REG expr
  313.  
  314.        RETC      ',' CONDITION
  315.  
  316.        RETE      ',' CONDITION
  317.  
  318.        RRL       ',' REG
  319.  
  320.        RRR       ',' REG
  321.  
  322.        SPSL
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax                               Selection Criteria
  339.  
  340.  
  341.        SPSU
  342.  
  343.        STRA      ',' REG  expr
  344.        STRA      ',' REG '*' expr ',' REG ',' '+'
  345.        STRA      ',' REG '*' expr ',' REG ',' '-'
  346.        STRA      ',' REG '*' expr ',' REG
  347.        STRA      ',' REG '*' expr
  348.        STRA      ',' REG expr ',' REG ',' '+'
  349.        STRA      ',' REG expr ',' REG ',' '-'
  350.        STRA      ',' REG expr ',' REG
  351.  
  352.        STRR      ',' REG '*' expr
  353.        STRR      ',' REG expr
  354.  
  355.        STRZ      REG                                 REG1
  356.        STRZ      REG                                 REG2
  357.        STRZ      REG                                 REG3
  358.  
  359.        SUBA      ',' REG  expr
  360.        SUBA      ',' REG '*' expr ',' REG ',' '+'
  361.        SUBA      ',' REG '*' expr ',' REG ',' '-'
  362.        SUBA      ',' REG '*' expr ',' REG
  363.        SUBA      ',' REG '*' expr
  364.        SUBA      ',' REG expr ',' REG ',' '+'
  365.        SUBA      ',' REG expr ',' REG ',' '-'
  366.        SUBA      ',' REG expr ',' REG
  367.  
  368.        SUBI      ',' REG expr
  369.  
  370.        SUBR      ',' REG '*' expr
  371.        SUBR      ',' REG expr
  372.  
  373.        SUBZ      REG
  374.  
  375.        TMI       ',' REG expr
  376.  
  377.        TPSL      expr
  378.  
  379.        TPSU      expr
  380.  
  381.        WRTC      ',' REG
  382.  
  383.        WRTD      ',' REG
  384.  
  385.        WRTE      ',' REG expr
  386.  
  387.        ZBRR      '*' expr
  388.        ZBRR      expr
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        Opcode   Syntax                               Selection Criteria
  405.  
  406.  
  407.        ZBSR      '*' expr
  408.        ZBSR      expr
  409.  
  410.        A.2.2  _✓R_✓e_✓g_✓i_✓s_✓t_✓e_✓r__✓a_✓n_✓d__✓C_✓o_✓n_✓d_✓i_✓t_✓i_✓o_✓n__✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s  The REG and
  411.        CONDITION fields in instructions are restricted to only the
  412.        values available as reserved symbols. These are r0 - r3, or
  413.        R0 - R3 for registers, and plus, PLUS, minus, MINUS, zero,
  414.        ZERO, gt, GT, lt, LT, eq, EQ, un, UN, always, and ALWAYS for
  415.        conditions.
  416.  
  417.        A.2.3  _✓D_✓e_✓s_✓t_✓i_✓n_✓a_✓t_✓i_✓o_✓n__✓R_✓e_✓g_✓i_✓s_✓t_✓e_✓r__✓f_✓o_✓r__✓I_✓n_✓d_✓e_✓x_✓e_✓d__✓A_✓d_✓d_✓r_✓e_✓s_✓s_✓i_✓n_✓g  If the
  418.        destination register, the one adjacent to the opcode, is not
  419.        R0 when one of the absolute indexed addressing modes is
  420.        used, an error is issued.
  421.  
  422.        A.2.4  _✓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
  423.  
  424.             REG0 REG1 REG2 REG3
  425.  
  426.                  Some instructions are restricted to a subset of
  427.                  the registers.  Only those instructions with the
  428.                  specified registers are valid.
  429.  
  430.             COND0 COND1 COND2 COND3
  431.  
  432.                  Some instructions are restricted to a subset of
  433.                  the conditions.  Only those instructions with the
  434.                  specified conditions are valid.
  435.  
  436.                  COND0     EQ, or ZERO
  437.                  COND1     GT, or PLUS
  438.                  COND2     LT, or MINUS
  439.                  COND3     ALWAYS, or UN
  440.  
  441.        A.2.5  _✓A_✓p_✓o_✓s_✓t_✓r_✓o_✓p_✓h_✓e_✓s  The apostrophes in the syntax field are
  442.        a notation used for the parser generator and are not put in
  443.        the assembler source statement.
  444.  
  445.        A.3  N✓N✓N✓No✓o✓o✓ot✓t✓t✓te✓e✓e✓es✓s✓s✓s
  446.  
  447.        A.3.1  _✓L_✓o_✓c_✓a_✓t_✓i_✓o_✓n__✓C_✓o_✓u_✓n_✓t_✓e_✓r  The Dollar Sign is used as the
  448.        location counter symbol in this assembler.
  449.  
  450.        A.3.2  _✓M_✓e_✓m_✓o_✓r_✓y__✓A_✓d_✓d_✓r_✓e_✓s_✓s_✓i_✓n_✓g__✓E_✓r_✓r_✓o_✓r__✓M_✓e_✓s_✓s_✓a_✓g_✓e_✓s
  451.  
  452.        ERROR - expression exceeds available field width
  453.  
  454.             This message occurs when :
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                   - 8 -
  467.  
  468.  
  469.  
  470.                - The absolute branch address is to an invalid
  471.                  address, one greater than 32767.
  472.  
  473.                - The absolute or relative address was not in the
  474.                  present memory page.
  475.  
  476.                - The relative offset was outside the range that can
  477.                  be represented in 7 bits.
  478.  
  479.        ERROR - instruction crosses page boundary
  480.  
  481.             The first and last bytes of an instruction are on
  482.             different sides of an 8k page.
  483.  
  484.        WARNING - Page Boundary
  485.  
  486.             The first byte of an instruction is on a 8k page
  487.             boundry.
  488.  
  489.        A.3.3  _✓P_✓a_✓g_✓e__✓W_✓r_✓a_✓p_✓a_✓r_✓o_✓u_✓n_✓d__✓f_✓o_✓r__✓R_✓e_✓l_✓a_✓t_✓i_✓v_✓e__✓A_✓d_✓d_✓r_✓e_✓s_✓s_✓i_✓n_✓g  The
  490.        wraparound of an effective address, where a relative address
  491.        from an instruction near a page boundary accesses memory at
  492.        the other side of the page, is not supported in this
  493.        assembler and will result in one or more error messages.
  494.  
  495.        This does not apply to the ZBRR and ZBSR instructions.
  496.        Memory destinations for these can range from 0 to $3f and
  497.        $1fc0 to $1fff.
  498.  
  499.        A.3.4  _✓R_✓e_✓l_✓a_✓t_✓i_✓o_✓n_✓a_✓l__✓O_✓p_✓e_✓r_✓a_✓t_✓o_✓r_✓s  The relational operator
  500.        keywords GT, LT, and EQ are not available.  The '<', '>',
  501.        and '==' special character representations must be used.
  502.  
  503.        A.3.5  _✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s
  504.  
  505.        A.3.5.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  ALWAYS AND
  506.        DEFINED EQ GE GT HIGH LE LOW LT MINUS MOD NE NOT OR PLUS R0
  507.        R1 R2 R3 SHL SHR UN XOR ZERO always and defined eq ge gt
  508.        high le low lt minus mod ne not or plus r0 r1 r2 r3 shl shr
  509.        un xor zero
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  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 as2650 Frankenstein Assembler...........  1
  540.            A.1  Pseudo Operations...............................  1
  541.            A.2  Instructions....................................  1
  542.            A.3  Notes...........................................  7
  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.