flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [solved] How do this float ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 16 Oct 2022, 08:24
Fasmw 1.73
This work.
rept 2000 n:0 { dd n#.0 }

But how do this ? Fasm get error.
rept 9 n:0 { dd 0#.n }

I want get data
Code:
 dd 0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9    


Last edited by Roman on 16 Oct 2022, 08:32; edited 2 times in total
Post 16 Oct 2022, 08:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20123
Location: In your JS exploiting you and your system
revolution 16 Oct 2022, 08:27
Roman wrote:
But how do this ? Fasm get error.
rept 9 n:0 { dd 0.#n }
What error do you get?

Works for me:
Code:
flat assembler  version 1.73.08  (4050404 kilobytes memory)
1 passes, 36 bytes.    
Post 16 Oct 2022, 08:27
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 16 Oct 2022, 08:33
Thanks.
Its my mistake.
rept 9 n:0 { dd 0#.n }
Post 16 Oct 2022, 08:33
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 16 Oct 2022, 08:34
I try this and compiled. But what is mean two # ?
rept 9 n:0 { dd 0#.#n }

And how do this ?
rept 9 n:9 { dd 0.#n
n = n - 1
}

I want get:
dd 0.9,0.8,0.7,0.6,0.5,0.4,0.3,0.2,0.1,0.0
Post 16 Oct 2022, 08:34
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 913
Location: Russia
macomics 16 Oct 2022, 09:34
Code:
rept 9 n:0 { reverse dd 0.#n }    
Post 16 Oct 2022, 09:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20123
Location: In your JS exploiting you and your system
revolution 16 Oct 2022, 09:37
Use rept 10 to get 0-9.
Post 16 Oct 2022, 09:37
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 16 Oct 2022, 09:58
Thanks
Post 16 Oct 2022, 09:58
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.