2021年4月28日星期三

Why do I get an error in NASM when running this StackExchange codereview program?

I believe my question is very simple so I am hoping you can help me:

From this codereview post, I wanted to run the NASM portion of his / her code (2nd big block of code on that page there). Yet I get an error when running it. Specifically:

file.asm: error: Can't find valid values for all labels after 1003 passes, giving up.

file.asm: error: Possible causes: recursive EQUs, macro abuse.

I am running it on a Linux machine, with NASM 32 Bit x86 Assembly, which are precisely the parameters used in creating this program according to the user who originally posted that code review.

I looked up this error and found some, albeit little resources to help. It seems that if a label is pronounced twice in the code, it gets that error. However, I have been searching through this code for hours now and I cannot seem to find any duplicate labels or any reasoning as to why this error would pop up. Additionally, it seems that the users on the site did not bring up this error, indicating that it probably ran fine for them.

Why is this the case?

https://stackoverflow.com/questions/67309583/why-do-i-get-an-error-in-nasm-when-running-this-stackexchange-codereview-program April 29, 2021 at 08:36AM

没有评论:

发表评论