我收到此错误:
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)