You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi There,
There might be an issue with movzbl in section 15_Pointers_pt1 and onward.
Attaching the issue.15.txt for detail description. Thx!!!
Regards
David
P.S.: I am a newbie hence my report can be totally wrong.
Hi @davidle2023 ! I'm going to make an assumption that when Warren made this tutorial, he was using a version of as that would accept the movzbl opcode and generate suitable code. For example, on my Ubuntu 20.04 LTS test machine everything builds fine and runs with the expected results. However, on my Ubuntu 22.04 LTS test machine, I get different results than what you report but it boils down to the same thing:
$ make test15
./comp1 tests/input15.c
cc -o out out.s lib/printint.c
out.s: Assembler messages:
out.s:31: Error: incorrect register %r8' used with l' suffix
out.s:40: Error: incorrect register %r8' used with l' suffix
make: *** [Makefile:34: test15] Error 1
I tested my nasm code against both 20.04 and 22.04 because I was developing on 22.04 and running into errors with as code that magically went away under 20.04. Since my goal was to add nasm output to the existing compilers, I didn't try to fix what I was seeing in the as code.
Hi There,
There might be an issue with movzbl in section 15_Pointers_pt1 and onward.
Attaching the issue.15.txt for detail description. Thx!!!
Regards
David
P.S.: I am a newbie hence my report can be totally wrong.
issue.15.txt
The text was updated successfully, but these errors were encountered: