flat assembler
Message board for the users of flat assembler.

Index > 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: 1847
Roman 12 Nov 2017, 11:08
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: 1847
Roman 12 Nov 2017, 11:26
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



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 12 Nov 2017, 12:09
fasm 1 does not have a floating-point calculator. But you could try some preprocessing tricks:
Code:
rept 4 n:0, v:1
{ dd 1+n*4, v#.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: 1847
Roman 12 Nov 2017, 12:40
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


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.