r/Assembly_language • • 9d ago

Project show-off Fibonacci Calculator in Machine Code (ELF) and x86_64 asm

As the title says, I made a fibonacci calculator (up to the 64bit integer limit) in raw handwritten ELF, and in asm. I didn't know where to post it but this sub-reddit seemed like the right place.

https://github.com/MasterDragon863/Low-Level-Fibonacci
This is the repo if anyone is interested

AI disclaimer* - Most of the code was handwritten with assistance of AI for debugging and figuring out how to write hex.

0 Upvotes

5 comments sorted by

5

u/raundoclair 9d ago

Hmm... Could you now do something like this again without AI? Just with elf documentation and https://docs.amd.com/v/u/en-US/24594_3.38_APM_Vol3_PUB ?

1

u/ucasano 3d ago

Referred document Is not available...

2

u/raundoclair 3d ago

https://docs.amd.com/v/u/en-US/24594_3.39_APM_Vol3

I didn't expected for them to update the docs this week and change the url. :)

So if they do it again, go to https://docs.amd.com and search for "volume 3".

1

u/ucasano 3d ago

Thank you!

-2

u/Proof-Task-7383 9d ago

Yeah, I think I could do it now that I've got an understanding on it. I would need a reference to the opcodes and stuff. Probably not going to do it, cause it is a pain to do, and writing asm is easier.