flat assembler
Message board for the users of flat assembler.

Index > Main > Why can't I [mov dx, 10101101]?

Author
Thread Post new topic Reply to topic
Kristian_



Joined: 13 Nov 2004
Posts: 38
Kristian_
Hi!
Why can't I display data in binary or hexdecimal? I have try thing, but allway's I get an error! What is wrong? Do I need to use different rightister? Than you!
Post 19 Nov 2004, 17:50
View user's profile Send private message Reply with quote
bubach



Joined: 17 Sep 2004
Posts: 341
Location: Trollhättan, Sweden
bubach
maybe add a b for binary or h for hex at the end? :-p
like this:
Code:
     movzx   eax, 110011b    
Post 19 Nov 2004, 18:11
View user's profile Send private message Reply with quote
Kristian_



Joined: 13 Nov 2004
Posts: 38
Kristian_
Yes, you're right, but all I get is bunch of symbols!
Post 19 Nov 2004, 19:27
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
What do you mean? You are not describing us your problem.
I *THINK* you are trying to print it. But the poor computer doesn't know what you are thinking - it always prints symbols.
You'd have to convert say 10101101b to bytes 31303130h, 31313031h
now computer 'knows' you want to print numbers, because 31h is "1" and
30h stands for "0".
Post 19 Nov 2004, 22:46
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7750
Location: Kraków, Poland
Tomasz Grysztar
Kirstian, try reading my unfinished tutorial from the documentation page - I hope it might clear up some things for you.
Post 20 Nov 2004, 10:01
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.