flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
fasmnewbie 17 Feb 2018, 07:44
Another weekend quick code over a cup of tea. A simple code using FASM and GCC to take multiple arguments from the command line to calculate series of sine values.
output Code: D:\FASM>sine Usage: sine v1 v2 vn D:\FASM>sine 3.4 sin(3.4000) rad = -0.255541 D:\FASM>sine 3.4 0.0 -9.2 7.6 1.5 sin(3.4000) rad = -0.255541 sin(0.0000) rad = 0.000000 sin(-9.2000) rad = -0.222890 sin(7.6000) rad = 0.967920 sin(1.5000) rad = 0.997495 I am sure it's not that far off from the linux version. And also easily convertible to other trigonometric functions. EDIT: Added 64-bit version
Last edited by fasmnewbie on 08 Mar 2018, 18:29; edited 1 time in total |
|||||||||||||||||||||
![]() |
|
fasmnewbie 17 Feb 2018, 11:34
Just added the 64-bit version.
|
|||
![]() |
|
fasmnewbie 21 Feb 2018, 11:24
Added the missing Linux versions (32-bit and 64-bit).
Happy coding and enjoy.
|
|||||||||||||||||||||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.