flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > Rept how increase V1 float value ? V1 EQU 1.0

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 340
Rept how increase V1 float value ? V1 EQU 1.0

Code:

V1 EQU 1.0
rept 4 n:0 {
            Rik EQU n*4
            dd  1+Rik,V1
            }



I want get data:
dd 1,1.0
dd 5,2.0
dd 9,3.0
dd 13,4.0
Post 12 Nov 2017, 11:08
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 340
I use Fasm version 1.69.03
Post 12 Nov 2017, 11:26
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6633
Location: Kraków, Poland
fasm 1 does not have a floating-point calculator. But you could try some preprocessing tricks:

Code:
rept 4 n:0v:1
dd 1+n*4v#.0 }

Post 12 Nov 2017, 12:09
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 340
Thanks.
Post 12 Nov 2017, 12:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.