| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1739 人关注过本帖
标题:求大神看看error A2049: Illegal use of register error A2006: Phase e ...
只看楼主 加入收藏
a706890985
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2013-6-12
收藏
 问题点数:0 回复次数:1 
求大神看看error A2049: Illegal use of register error A2006: Phase error between pa
大神门啊,救救我这个菜鸟吧!!!王爽的书刚看完,这是课程设计2.错误的地方我标记了!!!我真想哭啊               
ASSUME    CS:DAI
         DAI  SEGMENT
              PUSH      CS
              POP       ES
              MOV       BX,OFFSET XIN7C
              MOV       AX,NOP7C-XIN7C
              MOV       DX,0
              MOV       BX,512
              DIV       BX
              INC       AL
              

              MOV       AH,3
              MOV       CH,0
              MOV       CL,1
              MOV       DH,0
              MOV       DL,0
              INT       13H
 MOV       AX,4C00H
              INT       21H     
XIN7C:
       XZLB0  DB        '0): cong xin qi dong PC','$'
       XZLB1  DB        '1): yin dao winds xp','$'
       XZLB2  DB        '2): **\**\** **:**:**','$'
       XZLB3  DB        '3): she zhi VVVVVVV','$'
        DTSJ  DB        '**\**\** **:**:**','$'
        SJLB  DB        9,8,7,4,2,0
        XSLB  DW        XZLB0,XZLB1,XZLB2,XZLB3,0
        BIAN  DW        CXQD,YDXT,XSSJ,SZSJ,BYAS,0
       ASCMM  DB        31H,32H,33H,34H,35H,0
      XIANS:
              PUSH      CS
              POP       DS
              MOV       AX,0B800H
              MOV       ES,AX
              MOV       DI,0
              MOV       CX,4000
       QING:
              MOV       BYTE PTR ES:[DI],' '
              ADD       DI,2
              LOOP      QING

              MOV       SI,0
              MOV       CL,8
              
       KAIS:  CALL      BIJIA
              MOV       AH,2
              MOV       BH,0
              MOV       DH,CL
              MOV       DL,28
              INT       10H

              MOV       AH,9
              MOV       DX,XSLB[SI]
              INT       21H

              INC       SI
              INC       SI
              INC       CL
              INC       CL

              MOV       CX,XSLB[SI]
              JCXZ      XIANS
              JMP       KAIS

      BIJIA:
              PUSH      AX
              PUSH      BX
              PUSH      CX
              PUSH      DX
              PUSH      SI
              PUSH      DI
              PUSH      ES
              
              IN        AL,60H
              MOV       AH,0
              MOV       SI,0
              
     BIJIA0:
              MOV       CL,ASCMM[SI]
              CMP       AL,CL
              JNE       SIJIA
              JMP       WORD PTR BIAN[SI]
      SIJIA:
              INC       SI
              INC       SI
              INC       AH
              MOV       CX,BIAN[SI]
              LOOP      BIJIA0
              POP       ES
              POP       DI
              POP       SI
              POP       DX
              POP       CX
              POP       BX
              POP       AX
              RET

       CXQD:
              MOV       AX,0FFFFH
              PUSH      AX
              MOV       AX,0
              PUSH      AX
retf            

       YDXT:
              MOV       AX,0
              MOV       ES,AX
              MOV       BX,7E00H

              MOV       AH,2
              MOV       DL,80H
              MOV       DH,0
              MOV       CH,0
              MOV       CL,1
              MOV       AL,1
              INT       13H
              MOV       AX,0
              PUSH      AX
              MOV       AX,7E00H
              PUSH      AX
retf              

       XSSJ:
              MOV       SI,0
              MOV       DI,0
              MOV       CX,6

      XSSJ0:
              CALL      BIJIA
              MOV       AL,SJLB[SI]
              OUT       70H,AL
              IN        AL,71H
              MOV       AH,AL
              SHL       AL,1
              SHL       AL,1
              SHL       AL,1
              SHL       AL,1
              AND       AH,0FH
              MOV       DTSJ[DI],AL
              MOV       DTSJ[DI+1],AH
              INC       SI
              ADD       DI,3
              LOOP      XSSJ0

              MOV       AH,2
              MOV       BH,0
              MOV       DH,24
              MOV       DL,50
              INT       10H

              MOV       AH,9
              MOV       DL,DTSJ[0]
              MOV       DH,0
              INT       21H
              JMP       XSSJ
       SZSJ:
              MOV       DI,0B800H
              MOV       ES,DI
              MOV       DI,24*160+100
              MOV       CL,50

       PAND:
              MOV       AH,0
              INT       16H
              CMP       AH,4BH
              JE        ZUOY
              CMP       AH,4DH
              JE        YOUY
              CMP       AH,1CH
              JE        SZSJW
              CMP       AL,31H
              JNB       PAND
              CMP       AL,35H
              JA        PAND


       SJZH:
              MOV       AH,2
              MOV       BH,0
              MOV       DH,24
              MOV       DL,CL
              INT       10H
              AND       AL,0FH
       错误    MOV       BYTE PTR ES[DI],AL  error A2049: Illegal use of register
              JMP       PAND
       ZUOY:  DEC       DI
              DEC       DI
          错误      MOV       BYTE PTR CH,ES[DI]  error A2049: Illegal use of register
              CMP       AL,' '
              JNE       ZUOY1
              DEC       DI
              DEC       DI
           错误   MOV       BYTE PTR CH,ES[DI]  error A2049: Illegal use of register
              CMP       AL,' '
              JE        SZSJ
              DEC       CL
              DEC       CL
              JMP       PAND
  错误     ZUOY1:     error A2006: Phase error between passes
              DEC       CL
              JMP       PAND
       YOUY:  INC       DI
              INC       DI
         错误     MOV       BYTE PTR CH,ES[DI] error A2049: Illegal use of register
              CMP       AL,' '
              JNE       YOUY1
              INC       DI
              INC       DI
           错误   MOV       BYTE PTR CH,ES[DI]   error A2049: Illegal use of register
              CMP       AL,' '
              JE        SZSJ
              INC       CL
              INC       CL
              JMP       PAND
      YOUY1:  INC       CL
              JMP       PAND
      SZSJW:  CALL      PAND
              MOV       AX,0B800H
              MOV       ES,AX
              MOV       DI,24*160+100
              MOV       CX,6
              MOV       BX,0
 错误     SZSJ1:       error A2006: Phase error between passes
       错误    MOV       AH,ES[DI]     error A2049: Illegal use of register
        错误      MOV       AL,ES[DI+2]   error A2049: Illegal use of register
              SHL       AH,1
              SHL       AH,1
              SHL       AH,1
              SHL       AH,1
              ADD       AH,AL
              MOV       AL,SJLB[BX]
              OUT       70H,AL
              MOV       AL,AH
              OUT       71H,AL
              INC       BX
              ADD       DI,6
              LOOP      SZSJ1
              JMP       XSSJ
       BYAS:
              MOV       AX,0B800H
              MOV       ES,AX
              MOV       DI,24*160+101
              MOV       CX,11
      BYAS1:
              INC       BYTE PTR ES:[DI]
              INC       DI
              INC       DI
              LOOP      BYAS1
              JMP       XSSJ
      NOP7C:
              NOP
DAI  ENDS
              END
搜索更多相关主题的帖子: 课程 between register 
2013-06-12 02:42
a706890985
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2013-6-12
收藏
得分:0 
2013-06-13 00:35
快速回复:求大神看看error A2049: Illegal use of register error A2006: Ph ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018118 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved