Fibonacci sequence: Difference between revisions

→‎{{header|8086 Assembly}}: fixed off-by-one error
(→‎{{header|8086 Assembly}}: fixed off-by-one error)
Line 225:
Is it cheating to write it in C for 64-bit x86 then port it to 16-bit x86?
 
The max input is 2524 before you start having 16-bit overflow.
<lang asm>fib:
; WRITTEN IN C WITH X86-64 CLANG 3.3 AND DOWNGRADED TO 16-BIT X86
1,489

edits