flat assembler
Message board for the users of flat assembler.

Index > Main > Labels:How can i split a label to high word and low word?

Author
Thread Post new topic Reply to topic
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
How is it possible to split a label to high word and low word? I need to know because I am trying to fill up my IDT.

[TopicEdit=from:"Labels" to:"Labels:How can i split a label to high word and low word?"]Matrix[/TopicEdit]
Post 03 Nov 2004, 05:10
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
of course, you can do it with label just like with any other number.
Of course label can't be relocated, then it is impossible.
Just try:
Code:
high_word = name shr 16
low_word = name and 0FFFFh
...
name:
    
Post 03 Nov 2004, 09:29
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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 GitHub, YouTube, Twitter.

Website powered by rwasa.