gpt4 book ai didi

assembly lea : invalid effective address

转载 作者:行者123 更新时间:2023-12-05 08:58:59 27 4
gpt4 key购买 nike

我遇到这种错误:

beroset-p-637-invalid effective address

这是一个包含错误行的示例代码块:

mov eax, 3
mov ebx, 0
lea ecx, [record + count*patient + firstName] ;this one
int 80h

这是我从上面的代码块中获取的变量:

patient equ 37
firstName equ 0

count resb 1
record resb patient*5

计数变量不能用于与患者相乘吗?


我在 x86 Ubuntu 13 中使用 NASM

最佳答案

计算地址时不能乘以变量。所以你必须分别乘以 count * patient 并在以后添加。

关于 assembly lea : invalid effective address,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18606237/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com