home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / fasbin21 / doc / asz80.lp < prev    next >
Text File  |  1992-09-13  |  25KB  |  859 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✓sz✓z✓z✓z8✓8✓8✓80✓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                                SETEQU
  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.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  _✓I_✓n_✓s_✓t_✓r_✓u_✓c_✓t_✓i_✓o_✓n__✓S_✓e_✓t__✓S_✓e_✓l_✓e_✓c_✓t_✓i_✓o_✓n
  33.  
  34.             CPU string
  35.  
  36.        The instruction set can be specified in the source file with
  37.        the CPU pseudooperation.  The string, delimited by quotes or
  38.        apostrophes, is scanned for a substring which selects which
  39.        instruction set is used.  When the program is invoked, this
  40.        operation is performed on the name of the program, then the
  41.        -p optional arguement, if any, and then any CPU statements.
  42.        The last one selects the which subset of the instructions
  43.        the assembler will accept.  The instruction set can be
  44.        changed at any place in the source file.
  45.  
  46.             Instruction Set          Substrings
  47.             64180                    180
  48.             z80                      z80 Z80
  49.             8085                     85
  50.             8080                     80
  51.  
  52.        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
  53.  
  54.        A.2.1  _✓I_✓n_✓s_✓t_✓r_✓u_✓c_✓t_✓i_✓o_✓n__✓L_✓i_✓s_✓t
  55.  
  56.        Opcode   Syntax                       Selection Criteria
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        Opcode   Syntax                       Selection Criteria
  75.  
  76.        ADC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRBC
  77.        ADC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRDE
  78.        ADC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRHL
  79.        ADC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRSP
  80.        ADC       reg8 ',' '(' DREGHL ')'     REGISA
  81.        ADC       reg8 ',' index              TSZ80PLUS|DRIX|REGISA
  82.        ADC       reg8 ',' index              TSZ80PLUS|DRIY|REGISA
  83.        ADC       reg8 ',' reg8               0|REGISA
  84.        ADC       reg8 ',' topexpr            REGISA
  85.  
  86.        ADD       dreg ',' dreg               DRDESTHL|DRBC
  87.        ADD       dreg ',' dreg               DRDESTHL|DRDE
  88.        ADD       dreg ',' dreg               DRDESTHL|DRHL
  89.        ADD       dreg ',' dreg               DRDESTHL|DRSP
  90.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIX|DRBC
  91.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIX|DRDE
  92.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIX|DRIX
  93.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIX|DRSP
  94.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIY|DRBC
  95.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIY|DRDE
  96.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIY|DRIY
  97.        ADD       dreg ',' dreg               TSZ80PLUS|DRDESTIY|DRSP
  98.        ADD       reg8 ',' '(' DREGHL ')'     REGISA
  99.        ADD       reg8 ',' index              TSZ80PLUS|DRIX|REGISA
  100.        ADD       reg8 ',' index              TSZ80PLUS|DRIY|REGISA
  101.        ADD       reg8 ',' reg8               0|REGISA
  102.        ADD       reg8 ',' topexpr            REGISA
  103.  
  104.        AND       '(' DREGHL ')'
  105.        AND       index                       TSZ80PLUS|DRIX
  106.        AND       index                       TSZ80PLUS|DRIY
  107.        AND       reg8
  108.        AND       topexpr
  109.  
  110.        BIT       expr ',' '(' DREGHL ')'     TSZ80PLUS
  111.        BIT       expr ',' index              TSZ80PLUS|DRIX
  112.        BIT       expr ',' index              TSZ80PLUS|DRIY
  113.        BIT       expr ',' reg8               TSZ80PLUS
  114.  
  115.        CALL      condition ',' expr          CCSELC
  116.        CALL      condition ',' expr          CCSELM
  117.        CALL      condition ',' expr          CCSELNC
  118.        CALL      condition ',' expr          CCSELNZ
  119.        CALL      condition ',' expr          CCSELP
  120.        CALL      condition ',' expr          CCSELPE
  121.        CALL      condition ',' expr          CCSELPO
  122.        CALL      condition ',' expr          CCSELZ
  123.        CALL      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.        CCF
  143.  
  144.        CP        '(' DREGHL ')'
  145.        CP        index                       TSZ80PLUS|DRIX
  146.        CP        index                       TSZ80PLUS|DRIY
  147.        CP        reg8
  148.        CP        topexpr
  149.  
  150.        CPD                                   TSZ80PLUS
  151.  
  152.        CPDR                                  TSZ80PLUS
  153.  
  154.        CPI                                   TSZ80PLUS
  155.  
  156.        CPIR                                  TSZ80PLUS
  157.  
  158.        CPL
  159.  
  160.        DAA
  161.  
  162.        DEC       '(' DREGHL ')'
  163.        DEC       dreg                        DRBC
  164.        DEC       dreg                        DRDE
  165.        DEC       dreg                        DRHL
  166.        DEC       dreg                        DRSP
  167.        DEC       dreg                        TSZ80PLUS|DRIX
  168.        DEC       dreg                        TSZ80PLUS|DRIY
  169.        DEC       index                       TSZ80PLUS|DRIX
  170.        DEC       index                       TSZ80PLUS|DRIY
  171.        DEC       reg8
  172.  
  173.        DI
  174.  
  175.        DJNZ      topexpr
  176.  
  177.        EI
  178.  
  179.        EX        '(' DREGSP ')' ',' dreg     DRHL
  180.        EX        '(' DREGSP ')' ',' dreg     TSZ80PLUS|DRIX
  181.        EX        '(' DREGSP ')' ',' dreg     TSZ80PLUS|DRIY
  182.        EX        dreg ',' dreg               EX1DE|EX2HL
  183.        EX        dreg ',' dreg               TSZ80PLUS|EX1AF|EX2AF
  184.  
  185.        EXX                                   TSZ80PLUS
  186.  
  187.        HALT
  188.  
  189.        IM        expr                        TSZ80PLUS|INTSETMODE0
  190.        IM        expr                        TSZ80PLUS|INTSETMODE1
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax                       Selection Criteria
  207.  
  208.        IM        expr                        TSZ80PLUS|INTSETMODE2
  209.  
  210.        IN0       reg8 ',' '(' topexpr ')'    TS64180
  211.  
  212.        IN        reg8 ',' '(' REGC ')'       TSZ80PLUS
  213.        IN        reg8 ',' '(' topexpr ')'    REGISA
  214.  
  215.        INC       '(' DREGHL ')'
  216.        INC       dreg                        DRBC
  217.        INC       dreg                        DRDE
  218.        INC       dreg                        DRHL
  219.        INC       dreg                        DRSP
  220.        INC       dreg                        TSZ80PLUS|DRIX
  221.        INC       dreg                        TSZ80PLUS|DRIY
  222.        INC       index                       TSZ80PLUS|DRIX
  223.        INC       index                       TSZ80PLUS|DRIY
  224.        INC       reg8
  225.  
  226.        IND                                   TSZ80PLUS
  227.  
  228.        INDR                                  TSZ80PLUS
  229.  
  230.        INI                                   TSZ80PLUS
  231.  
  232.        INIR                                  TSZ80PLUS
  233.  
  234.        JP        '(' dreg ')'                DRHL
  235.        JP        '(' dreg ')'                TSZ80PLUS|DRIX
  236.        JP        '(' dreg ')'                TSZ80PLUS|DRIY
  237.        JP        condition ',' expr          CCSELC
  238.        JP        condition ',' expr          CCSELM
  239.        JP        condition ',' expr          CCSELNC
  240.        JP        condition ',' expr          CCSELNZ
  241.        JP        condition ',' expr          CCSELP
  242.        JP        condition ',' expr          CCSELPE
  243.        JP        condition ',' expr          CCSELPO
  244.        JP        condition ',' expr          CCSELZ
  245.        JP        expr
  246.  
  247.        JR        condition ',' expr          CCSELC|TSZ80PLUS
  248.        JR        condition ',' expr          CCSELNC|TSZ80PLUS
  249.        JR        condition ',' expr          CCSELNZ|TSZ80PLUS
  250.        JR        condition ',' expr          CCSELZ|TSZ80PLUS
  251.        JR        expr                        TSZ80PLUS
  252.  
  253.        LD        '(' dreg ')' ',' reg8       DRBC|REGISA
  254.        LD        '(' dreg ')' ',' reg8       DRDE|REGISA
  255.        LD        '(' dreg ')' ',' reg8       DRHL
  256.        LD        '(' dreg ')' ',' topexpr    DRHL
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax                       Selection Criteria
  273.  
  274.        LD        '(' topexpr ')' ',' REGA
  275.        LD        '(' topexpr ')' ',' dreg    DRHL
  276.        LD        '(' topexpr ')' ',' dreg    TSZ80PLUS|DRBC
  277.        LD        '(' topexpr ')' ',' dreg    TSZ80PLUS|DRDE
  278.        LD        '(' topexpr ')' ',' dreg    TSZ80PLUS|DRIX
  279.        LD        '(' topexpr ')' ',' dreg    TSZ80PLUS|DRIY
  280.        LD        '(' topexpr ')' ',' dreg    TSZ80PLUS|DRSP
  281.        LD        dreg ',' '(' topexpr ')'    DRHL
  282.        LD        dreg ',' '(' topexpr ')'    TSZ80PLUS|DRBC
  283.        LD        dreg ',' '(' topexpr ')'    TSZ80PLUS|DRDE
  284.        LD        dreg ',' '(' topexpr ')'    TSZ80PLUS|DRIX
  285.        LD        dreg ',' '(' topexpr ')'    TSZ80PLUS|DRIY
  286.        LD        dreg ',' '(' topexpr ')'    TSZ80PLUS|DRSP
  287.        LD        dreg ',' dreg               TSZ80PLUS|DRHL|DRDESTSP
  288.        LD        dreg ',' dreg               TSZ80PLUS|DRIX|DRDESTSP
  289.        LD        dreg ',' dreg               TSZ80PLUS|DRIY|DRDESTSP
  290.        LD        dreg ',' topexpr            DRBC
  291.        LD        dreg ',' topexpr            DRDE
  292.        LD        dreg ',' topexpr            DRHL
  293.        LD        dreg ',' topexpr            DRSP
  294.        LD        dreg ',' topexpr            TSZ80PLUS|DRIX
  295.        LD        dreg ',' topexpr            TSZ80PLUS|DRIY
  296.        LD        index ',' expr              TSZ80PLUS|DRIX
  297.        LD        index ',' expr              TSZ80PLUS|DRIY
  298.        LD        index ',' reg8              TSZ80PLUS|DRIX
  299.        LD        index ',' reg8              TSZ80PLUS|DRIY
  300.        LD        reg8 ',' '(' dreg ')'       DRBC|REGISA
  301.        LD        reg8 ',' '(' dreg ')'       DRDE|REGISA
  302.        LD        reg8 ',' '(' dreg ')'       DRHL
  303.        LD        reg8 ',' '(' topexpr ')'    REGISA
  304.        LD        reg8 ',' index              TSZ80PLUS|DRIX
  305.        LD        reg8 ',' index              TSZ80PLUS|DRIY
  306.        LD        reg8 ',' reg8
  307.        LD        reg8 ',' specialr           TSZ80PLUS|SPECIALIR|REGISA
  308.        LD        reg8 ',' specialr           TSZ80PLUS|SPECIALRR|REGISA
  309.        LD        reg8 ',' topexpr
  310.        LD        specialr ',' REGA           TSZ80PLUS|SPECIALIR
  311.        LD        specialr ',' REGA           TSZ80PLUS|SPECIALRR
  312.  
  313.        LDD                                   TSZ80PLUS
  314.  
  315.        LDDR                                  TSZ80PLUS
  316.  
  317.        LDI                                   TSZ80PLUS
  318.  
  319.        LDIR                                  TSZ80PLUS
  320.  
  321.        MULT      dreg                        TS64180|DRBC
  322.        MULT      dreg                        TS64180|DRDE
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax                       Selection Criteria
  339.  
  340.        MULT      dreg                        TS64180|DRHL
  341.        MULT      dreg                        TS64180|DRSP
  342.  
  343.        NEG                                   TSZ80PLUS
  344.  
  345.        NOP
  346.  
  347.        OR        '(' DREGHL ')'
  348.        OR        index                       TSZ80PLUS|DRIX
  349.        OR        index                       TSZ80PLUS|DRIY
  350.        OR        reg8
  351.        OR        topexpr
  352.  
  353.        OTDM                                  TS64180
  354.  
  355.        OTDMR                                 TS64180
  356.  
  357.        OTDR                                  TSZ80PLUS
  358.  
  359.        OTIM                                  TS64180
  360.  
  361.        OTIMR                                 TS64180
  362.  
  363.        OTIR                                  TSZ80PLUS
  364.  
  365.        OUT0      '(' topexpr ')' ',' reg8    TS64180
  366.  
  367.        OUT       '(' REGC ')' ',' reg8       TSZ80PLUS
  368.        OUT       '(' topexpr ')' ',' reg8    REGISA
  369.  
  370.        OUTD                                  TSZ80PLUS
  371.  
  372.        OUTI                                  TSZ80PLUS
  373.  
  374.        POP       dreg                        DRAF
  375.        POP       dreg                        DRBC
  376.        POP       dreg                        DRDE
  377.        POP       dreg                        DRHL
  378.        POP       dreg                        TSZ80PLUS|DRIX
  379.        POP       dreg                        TSZ80PLUS|DRIY
  380.  
  381.        PUSH      dreg                        DRAF
  382.        PUSH      dreg                        DRBC
  383.        PUSH      dreg                        DRDE
  384.        PUSH      dreg                        DRHL
  385.        PUSH      dreg                        TSZ80PLUS|DRIX
  386.        PUSH      dreg                        TSZ80PLUS|DRIY
  387.  
  388.        RES       expr ',' '(' DREGHL ')'     TSZ80PLUS
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        Opcode   Syntax                       Selection Criteria
  405.  
  406.        RES       expr ',' index              TSZ80PLUS|DRIX
  407.        RES       expr ',' index              TSZ80PLUS|DRIY
  408.        RES       expr ',' reg8               TSZ80PLUS
  409.  
  410.        RET
  411.        RET       condition                   CCSELC
  412.        RET       condition                   CCSELM
  413.        RET       condition                   CCSELNC
  414.        RET       condition                   CCSELNZ
  415.        RET       condition                   CCSELP
  416.        RET       condition                   CCSELPE
  417.        RET       condition                   CCSELPO
  418.        RET       condition                   CCSELZ
  419.  
  420.        RETI                                  TSZ80PLUS
  421.  
  422.        RETN                                  TSZ80PLUS
  423.  
  424.        RIM                                   CPU8085
  425.  
  426.        RL        '(' DREGHL ')'              TSZ80PLUS
  427.        RL        index                       TSZ80PLUS|DRIX
  428.        RL        index                       TSZ80PLUS|DRIY
  429.        RL        reg8                        TSZ80PLUS
  430.  
  431.        RLA
  432.  
  433.        RLC       '(' DREGHL ')'              TSZ80PLUS
  434.        RLC       index                       TSZ80PLUS|DRIX
  435.        RLC       index                       TSZ80PLUS|DRIY
  436.        RLC       reg8                        TSZ80PLUS
  437.  
  438.        RLCA
  439.  
  440.        RLD                                   TSZ80PLUS
  441.  
  442.        RR        '(' DREGHL ')'              TSZ80PLUS
  443.        RR        index                       TSZ80PLUS|DRIX
  444.        RR        index                       TSZ80PLUS|DRIY
  445.        RR        reg8                        TSZ80PLUS
  446.  
  447.        RRA
  448.  
  449.        RRC       '(' DREGHL ')'              TSZ80PLUS
  450.        RRC       index                       TSZ80PLUS|DRIX
  451.        RRC       index                       TSZ80PLUS|DRIY
  452.        RRC       reg8                        TSZ80PLUS
  453.  
  454.        RRCA
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.                                   - 8 -
  467.  
  468.  
  469.  
  470.        Opcode   Syntax                       Selection Criteria
  471.  
  472.  
  473.        RRD                                   TSZ80PLUS
  474.  
  475.        RST       expr
  476.  
  477.        SBC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRBC
  478.        SBC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRDE
  479.        SBC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRHL
  480.        SBC       dreg ',' dreg               TSZ80PLUS|DRDESTHL|DRSP
  481.        SBC       reg8 ',' '(' DREGHL ')'     REGISA
  482.        SBC       reg8 ',' index              TSZ80PLUS|DRIX|REGISA
  483.        SBC       reg8 ',' index              TSZ80PLUS|DRIY|REGISA
  484.        SBC       reg8 ',' reg8               0|REGISA
  485.        SBC       reg8 ',' topexpr            REGISA
  486.  
  487.        SCF
  488.  
  489.        SET       expr ',' '(' DREGHL ')'     TSZ80PLUS
  490.        SET       expr ',' index              TSZ80PLUS|DRIX
  491.        SET       expr ',' index              TSZ80PLUS|DRIY
  492.        SET       expr ',' reg8               TSZ80PLUS
  493.  
  494.        SIM                                   CPU8085
  495.  
  496.        SLA       '(' DREGHL ')'              TSZ80PLUS
  497.        SLA       index                       TSZ80PLUS|DRIX
  498.        SLA       index                       TSZ80PLUS|DRIY
  499.        SLA       reg8                        TSZ80PLUS
  500.  
  501.        SLP                                   TS64180
  502.  
  503.        SRA       '(' DREGHL ')'              TSZ80PLUS
  504.        SRA       index                       TSZ80PLUS|DRIX
  505.        SRA       index                       TSZ80PLUS|DRIY
  506.        SRA       reg8                        TSZ80PLUS
  507.  
  508.        SRL       '(' DREGHL ')'              TSZ80PLUS
  509.        SRL       index                       TSZ80PLUS|DRIX
  510.        SRL       index                       TSZ80PLUS|DRIY
  511.        SRL       reg8                        TSZ80PLUS
  512.  
  513.        SUB       '(' DREGHL ')'
  514.        SUB       index                       TSZ80PLUS|DRIX
  515.        SUB       index                       TSZ80PLUS|DRIY
  516.        SUB       reg8
  517.        SUB       topexpr
  518.  
  519.        TST       '(' DREGHL ')'              TS64180
  520.        TST       reg8                        TS64180
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.                                   - 9 -
  533.  
  534.  
  535.  
  536.        Opcode   Syntax                       Selection Criteria
  537.  
  538.        TST       topexpr                     TS64180
  539.  
  540.        TSTIO     topexpr                     TS64180
  541.  
  542.        XOR       '(' DREGHL ')'
  543.        XOR       index                       TSZ80PLUS|DRIX
  544.        XOR       index                       TSZ80PLUS|DRIY
  545.        XOR       reg8
  546.        XOR       topexpr
  547.  
  548.        A.2.2  _✓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
  549.  
  550.             CPU8085             Instruction is only implemented for
  551.                                 the 8085.
  552.  
  553.             TSZ80PLUS           Instruction is implemented in the
  554.                                 z80 and 64180 instruction sets.
  555.  
  556.             TS64180             Instruction is only implemented in
  557.                                 the 64180
  558.  
  559.             DRIX                Instruction refers to the IX index
  560.                                 register
  561.  
  562.             DRIY                Instruction refers to the IY index
  563.                                 register
  564.  
  565.             DRSP                Instruction refers to the Stack
  566.                                 Pointer
  567.  
  568.             DRHL                Instruction refers to the HL
  569.                                 register
  570.  
  571.             DRDE                Instruction refers to the DE
  572.                                 register
  573.  
  574.             DRBC                Instruction refers to the BC
  575.                                 register
  576.  
  577.             DRAF                Instruction refers to the AF
  578.                                 concatenated register
  579.  
  580.             DRDESTSP            Instruction which refers to two
  581.                                 double register operands, uses the
  582.                                 Stack Pointer as the destination.
  583.  
  584.             DRDESTHL            Instruction which refers to two
  585.                                 double register operands, uses the
  586.                                 HL double register as the
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.                                   - 10 -
  599.  
  600.  
  601.  
  602.                                 destination.
  603.  
  604.             DRDESTIX            Instruction which refers to two
  605.                                 double register operands, uses the
  606.                                 IX index register as the
  607.                                 destination.
  608.  
  609.             DRDESTIY            Instruction which refers to two
  610.                                 double register operands, uses the
  611.                                 IY index register as the
  612.                                 destination.
  613.  
  614.             REGISA              Instruction is restricted to using
  615.                                 the A register for an 8 bit
  616.                                 register operand.
  617.  
  618.             CCSELNZ             Instruction uses NonZero condition.
  619.  
  620.             CCSELZ              Instruction uses Zero condition.
  621.  
  622.             CCSELNC             Instruction uses No Carry
  623.                                 condition.
  624.  
  625.             CCSELC              Instruction uses Carry condition.
  626.  
  627.             CCSELPO             Instruction uses Parity Odd
  628.                                 condition.
  629.  
  630.             CCSELPE             Instruction uses Parity Even
  631.                                 condition.
  632.  
  633.             CCSELP              Instruction uses Plus condition.
  634.  
  635.             CCSELM              Instruction uses Minus condition.
  636.  
  637.             EX1AF               First operand of an Ex instruction
  638.                                 is the AF register.
  639.  
  640.             EX1DE               First operand of an Ex instruction
  641.                                 is the DE register.
  642.  
  643.             EX2AF               Second operand of an Ex instruction
  644.                                 is the AF register.
  645.  
  646.             EX2HL               Second operand of an Ex instruction
  647.                                 is the HL register.
  648.  
  649.             SPECIALIR           Instruction uses the I special
  650.                                 register.
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.                                   - 11 -
  665.  
  666.  
  667.  
  668.             SPECIALRR           Instruction uses the R special
  669.                                 register.
  670.  
  671.        A.2.3  _✓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  _✓C_✓o_✓n_✓d_✓i_✓t_✓i_✓o_✓n_✓s  Conditions are represented by the
  678.        reserved symbols z, nz, nc, pe, po, p, m, and c, and their
  679.        uppercase versions.
  680.  
  681.        A.3.2  _✓I_✓n_✓d_✓e_✓x_✓e_✓d__✓A_✓d_✓d_✓r_✓e_✓s_✓s_✓i_✓n_✓g  Index addressing uses the format
  682.        "( index register + expression )" where index register is IX
  683.        or IY.
  684.  
  685.        A.3.3  _✓T_✓o_✓p__✓E_✓x_✓p_✓r_✓e_✓s_✓s_✓i_✓o_✓n_✓s  The syntax of some of the
  686.        instructions combined with the standard expression syntax
  687.        resulted in confusion whether an operand was an expression
  688.        surrounded by parenthesis, or a memory reference. To get
  689.        around this, the expressions in these ambiguous cases were
  690.        restricted to those forms of expression that don't have
  691.        surrounding parenthesis at the top level.  Subexpressions
  692.        may be parenthesized, but only if an operator seperates or
  693.        precedes the subexpression.
  694.  
  695.             Example
  696.  
  697.             ld a, (47h)     ; load from memory address 0x47
  698.             ld a, +(47h)    ; load immediate value 0x47
  699.             ld a, ((47h))   ; error
  700.  
  701.        A.3.4  _✓d_✓r_✓e_✓g_✓,__✓r_✓e_✓g_✓8_✓,__✓s_✓p_✓e_✓c_✓i_✓a_✓l_✓r  Double registers (dreg) are the
  702.        set of symbols af, bc, de, hl, ix, iy, and sp and their
  703.        uppercase versions.
  704.  
  705.        Eight bit registers (reg8) are the set of symbols a, b, c,
  706.        d, e, h, l, and their uppercase versions.
  707.  
  708.        Special registers are i, r, I, R.
  709.  
  710.        A.3.5  _✓B_✓i_✓t__✓N_✓u_✓m_✓b_✓e_✓r_✓s  The bit number expression in the BIT,
  711.        RES, and SET operations has to have value defined when the
  712.        instruction is read in the first pass.  The value must be
  713.        between 0 and 7.
  714.  
  715.        A.3.6  _✓R_✓e_✓s_✓e_✓r_✓v_✓e_✓d__✓S_✓y_✓m_✓b_✓o_✓l_✓s
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.                                   - 12 -
  731.  
  732.  
  733.  
  734.        A.3.6.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 AF B BC C D
  735.        DE E H HL I IX IY L M NC NZ P PE PO R SP Z a af b bc c d de
  736.        e h hl i ix iy l m nc nz p pe po r sp z
  737.  
  738.        A.3.6.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
  739.        HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR and defined eq ge
  740.        gt high le low lt mod ne not or shl shr xor
  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.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.                                  CONTENTS
  801.  
  802.  
  803.        A.  Appendix for asz80 Frankenstein Assembler...........   1
  804.            A.1  Pseudo Operations..............................   1
  805.            A.2  Instructions...................................   1
  806.            A.3  Notes..........................................  11
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.                                   - i -
  855.  
  856.  
  857.  
  858.  
  859.