| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 519 人关注过本帖
标题:x86 汇编小问题
取消只看楼主 加入收藏
snbbqsb
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-12-16
结帖率:0
收藏
已结贴  问题点数:20 回复次数:0 
x86 汇编小问题
想做一个循环机,要把产生的数字和输出放到数组里。 每当输出为1101的时候停止运转,写完了但是一跑 程序就停止运转  可能是call randomrange出错   或者dword array 出界,大家能帮我看看吗,​

   还有,call random产生的数字在eax里面 但是这是个dword. 怎么把他放到byte的数组里面?​



.data

  Series dword 9999 DUP(0)

  output dword 9999 DUP(0)

  state dword 999 DUP(0)

 .code

 main PROC

    mov esi,0

    call Randomize

 state0:

       mov output[esi],0            ;record output

       call check

   .if(boolean==1)

     jmp printme

   .endif

   mov eax,2  ;call random

   call RandomRange

       mov series[esi],eax ;save random

   inc esi

   inc esi

   inc esi

   inc esi

  .if (eax==0)

       jmp State0

      .elseif (eax==1)

       jmp state1

      .endif
搜索更多相关主题的帖子: 9999 Series 
2012-12-16 04:36
快速回复:x86 汇编小问题
数据加载中...
 
   



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

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