fharookshaik / fibonacci-series

This repository is to write program the famous Fibonacci series in as many different programming languages as we can.
MIT License
20 stars 101 forks source link

Add nasm x64 assembly #90

Open sec65 opened 2 years ago

sec65 commented 2 years ago

added assembly (nasm, x64, linux), see screenshot Works only until 94 ... assembly

fharookshaik commented 2 years ago

Can you please specify why only till 94? Thank you.

sec65 commented 2 years ago

Assembly works with registers, which maximum size is dependent on the processor. So for now, the maximum we have is 64 bit registers. Therefore the maximum integer stored in an register is 18446744073709551615. When wanting bigger numbers it get's quite complicated (usually splitting on multiple registers).