How can I debug an "Illegal instruction" error in my x86-64 assembly ray tracer?

I'm working on a personal project , a simple ray tracer written in x86-64 assembly for educational purposes. It's currently in the early stages, focusing on basic ray-sphere intersection calculations. But I keep getting this error message when trying to run the program.
Illegal instruction (core dumped)
Illegal instruction (core dumped)
I included the relevant code snippet from the ray_tracer.asm file in my public repo here https://github.com/Marveeamasi/starter-raytracer-assembly/blob/main/ray_tracer.asm which focuses on setting up the initial ray and a single sphere for testing the intersection logic. I had verified that the assembler NASM is configured correctly for my architecture. Hoping to get some guidance on how to approach debugging this "Illegal instruction" error
GitHub
starter-raytracer-assembly/ray_tracer.asm at main · Marveeamasi/sta...
a starter ray tracer for educational purposes. Contribute to Marveeamasi/starter-raytracer-assembly development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server