flat assembler
Message board for the users of flat assembler.

Index > DOS > Display values during preprocessing

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 203
Location: Madrid - Spain
avcaballero 12 Nov 2007, 09:24
Hi all, I want to know how can i code to display the value of "i" in:

i = 0
repeat 32
display i
db 33,i,i
i = i + 1
end repeat


display i doesn't show the value of i, instead, it shows "i".

Thanks
Post 12 Nov 2007, 09:24
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 12 Nov 2007, 15:05
For me it does not display nothing until I add at least 1 to i. If I add 32 it displays " !"#$%&'()*+,-./0123456789:;<=>?".

If you want to display it as an integer then you have to do the "IntToStr" as you would do in a binary program.

[edit]I've tried the code on FASMW, the console version is capable of display 0[/edit]
Post 12 Nov 2007, 15:05
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.