标题:汇编出错,The NTVDM cpu has encpuntered an illegal instruction
取消只看楼主
kidangel666
Rank: 3Rank: 3
等 级:论坛游侠
帖 子:93
专家分:139
注 册:2010-9-15
结帖率:78.95%
已结贴  问题点数:0 回复次数:0 
汇编出错,The NTVDM cpu has encpuntered an illegal instruction
DATAS SEGMENT
    DW     0123H,0456H,0789H,0abcH,0defH,0fedH,0cbaH,0987H
DATAS ENDS

STACKS SEGMENT
    DW     0,0,0,0,0,0,0,0
STACKS ENDS

CODES SEGMENT
    ASSUME CS:CODES,DS:DATAS,SS:STACKS
START:
    MOV AX,STACKS
    MOV SS,AX
    MOV SP,16
    MOV AX,DATAS
    MOV DS,AX
    MOV BX,0
    MOV CX,6
S:   
    PUSH DS:[BX]
    ADD BX,2
    LOOP S
   
    MOV BX,0
    MOV CX,6
S1:   
    POP DS:[BX]
    add bx,2
    LOOP S1
   
    MOV AH,4CH
    INT 21H
CODES ENDS
    END START
这个代码的作用是前面6个数组倒置
搜索更多相关主题的帖子: cpu 
2011-06-26 00:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-343999-1-1.html




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

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