小编Jus*_*tin的帖子

汇编错误A2075:跳转目标太远:在LOOP指令上跳过25个字节

我收到此错误:

loop    AdderLoop
Run Code Online (Sandbox Code Playgroud)

错误A2075:跳转目标太远:25个字节

这是一个加法器程序.

我还在学习pop,push所以也许我没有做正确的事,但似乎我的变量ARRAY_SIZE没有正确存储?

我在程序开始时按下存储ARRAY_SIZE的寄存器,并在程序结束时将其弹出.

.386      ;identifies minimum CPU for this program

.MODEL flat,stdcall    ;flat - protected mode program
                       ;stdcall - enables calling of MS_windows programs

;allocate memory for stack
;(default stack size for 32 bit implementation is 1MB without .STACK directive 
;  - default works for most situations)

.STACK 4096            ;allocate 4096 bytes (1000h) for stack

;*******************MACROS********************************

;mPrtStr
;usage: mPrtStr nameOfString
;ie to display a 0 terminated string named message say:
;mPrtStr message …
Run Code Online (Sandbox Code Playgroud)

x86 assembly loops

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

标签 统计

assembly ×1

loops ×1

x86 ×1