flat assembler
Message board for the users of flat assembler.

Index > DOS > Variables and Data

Author
Thread Post new topic Reply to topic
denial



Joined: 12 Sep 2004
Posts: 98
denial 24 Sep 2004, 11:45
Hello...

I'm a newbie and I need to learn assembly language. I already read some tutorials (also the one of this page) and I think I understand about handling bytes and words. But however I couldn't find further exmaple for variable managment like DWORD type or something else.

For example: How can I change the value of a declared dword? Is this the right way?
mov dword [myvar],(10*1000+...anything)

How can I now for example print this DWORD on the screen? I know that I can print something through int 21 if I set AH to 9 and DX to the data that should be written. However I don't know how to used that now for DWORD...

If you can help me or just know a good tutorial about, please answer on this post. Smile

Thank you
Post 24 Sep 2004, 11:45
View user's profile Send private message Reply with quote
Dragontamer



Joined: 24 Aug 2003
Posts: 84
Dragontamer 24 Sep 2004, 21:45
you have to convert it to a string before you can print it to the screen.

Welcome to reinventing the wheel Smile I am sure someone else has an itoa code that would work for this...
Post 24 Sep 2004, 21:45
View user's profile Send private message Reply with quote
denial



Joined: 12 Sep 2004
Posts: 98
denial 25 Sep 2004, 09:46
Well thank you but as a newbie I can't handle this answer much... Maybe some sample? And what about the moving values....

Thank you
Post 25 Sep 2004, 09:46
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 25 Sep 2004, 11:29
You don't need () when moving values. The example you specified for mov should work.
Post 25 Sep 2004, 11:29
View user's profile Send private message Visit poster's website Reply with quote
denial



Joined: 12 Sep 2004
Posts: 98
denial 25 Sep 2004, 12:38
Thank you Smile
If anybody could help me about the printing, I would be really glad Smile
Post 25 Sep 2004, 12:38
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 25 Sep 2004, 15:20
Post 25 Sep 2004, 15:20
View user's profile Send private message Yahoo Messenger Reply with quote
denial



Joined: 12 Sep 2004
Posts: 98
denial 27 Sep 2004, 12:49
it didn't really help me about general data handling, but thank you very much for all your answers. I'll try to find some more tutorials
Post 27 Sep 2004, 12:49
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.