小编use*_*507的帖子

程序集rep movsw移动超过指示

我在设置600 ecxrep movsw,当它excutes它移动616个字节.该特定代码表示.

我错过了什么?

在代码之后,我包括两个Pdumps来显示移动的结果.第一个是原点,第二个是目的地.

            ; This program reads the contents of "E:\RaamSoft\SICBdata\SICBCONS201401.SLD" and
            ; outputs it to a File.

             .486

             include \masm32\include\masm32rt.inc
             include \masm32\include\debug.inc
             includelib \masm32\lib\debug.lib

            ; ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±

            .Const
             RegFecSz   equ 638
             NxtRgFx    equ 82
             MEMORYSIZE equ 65536
            ; This is how much memory we'll allocate for Work Area.

            .Data?
            RetCode   DWord    ?
            hFout     HANDLE   ?
            hFfin     HANDLE   ?
            hMemory   HANDLE   ?
            pMemory   DWord    ?
            ReadSize  DWord    ?
            ; l for Lengths; h for Handle & …
Run Code Online (Sandbox Code Playgroud)

x86 assembly masm masm32

1
推荐指数
1
解决办法
258
查看次数

标签 统计

assembly ×1

masm ×1

masm32 ×1

x86 ×1