helloo programmers its about print hex and hex out function

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
akshay
Posts: 2
Joined: Sun Mar 30, 2014 9:49 pm
Location: himachal Pradesh(Dharamshala) Country INDIA

helloo programmers its about print hex and hex out function

Post by akshay »

i can't understand the functionalty of the two function or subroutin hex out and print hex plz help me to understand what they are do and logic behind that i shall be thankfull
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: helloo programmers its about print hex and hex out funct

Post by iansjack »

Well it sounds to me as if they print hexadecimal numbers, but that's surely too obvious to be true. I'm sure you wouldn't ask if it was that trivial.

What OS and/or programming language are you talking about and, more important, why do you ask?
akshay
Posts: 2
Joined: Sun Mar 30, 2014 9:49 pm
Location: himachal Pradesh(Dharamshala) Country INDIA

Re: helloo programmers its about print hex and hex out funct

Post by akshay »

hello iansjack well thanks for reply am talking about print hexadecimel number
lets take an example
in binary 16 bit programing
mov dx string
call hexout
string:
db '0x7f',0
how to print the define string in hexadecimel and its ascii code tell me this in 16 bit assembly on the screen
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: helloo programmers its about print hex and hex out funct

Post by iansjack »

There is no standard "hexout" functionmin x86 assembler. You have to define your own. How you do that is a fairly simple exercise, but depends upon the environment that you are programming for. I would suggest that this sort of basic question is more suitable for other forums, or even a subject to be studied using a book on assembler programming, rather than here.
Post Reply