I figured this would be the best place for this Q. :)
Where can I learn a bit more about Hex, mainly converting, I can convert from hex to dec, but I get sooooo lost doing it the other way round.
Printable View
I figured this would be the best place for this Q. :)
Where can I learn a bit more about Hex, mainly converting, I can convert from hex to dec, but I get sooooo lost doing it the other way round.
here.. see if my website can help you out. Look in the TUTORIALS.
IF they are not enough for you, then let me know PLEASE!! Because I want to add more to those tuts if needed...
Thanks.
http://ossourcecode.tripod.com
cool, thnx!
I'm sure it'll help.
one more thing, is learning ASM on your own(w/o doing @ college) something you would suggest ??
Collage would help. But i'll tell you this, everything I know, I learned on my own. It does help when you have someone explain certain things to you. But other then that, you'll pick it up. You just have to have the programming spirit within you. ;)
Anytime you need help, just give me a holler...
cool!, thnx
Hey knight, do a tut on hex coding. Ive havent found one yet, and you seem to know what your talking about. I say, go for it!
Sure, I would love to do a tut on it. I'll get right on it.
How do you want it? HEX to DEC or DEC to HEX or what? Give me spacifics because saying "do one on HEX codeing" is pretty vague.. LOL
But let me know and i'll get on it.
Oh and hey, thanks for the compliment.. :)
About coding in hex. Like in my thread where you just gave me an answer. http://www.vbforums.com/showthread.p...threadid=74224 , just in the tut, go more in depth.
Ok, will do... Give me a week though. I'm at a library and doing all of this on it. err. I only get an hour a day.. I should have it done in less then a week if I get more time.. Thanks.. :)
Knight
Hey ChimpFace9000,
I finished the HEX tut a little earlier then I planned. LOL
goto my website and you will see ALL kinds of stuff that I typed up last night. ALSO, IF YOU DOWNLOADED TUT3 and BOOTSTRAP TUT 2, GET THEM AGAIN. The old ones had errors, that I fixed last night.
There you go, ASK AND YE SHALL RECIEVE... LOL
Ok Knight, the hex reference came out great. I read your bootstrap stuff. They are ok, if you want a tip though, i suggest you make them into more of a tutorial form instead of just source code and an explanation.
Hi John!
Great work on your Site! Congratulations!
Actually i'm searching on a tutorial on Double to Hex.
I wonder a double value of 12123.456 gives 7D 3F 35 5E BA AD C7 40 in Hex.
How do this work
Regards
Andi Goering
andigoering -
Ok, first off, 12123.456 doesn't equal the answer you came up with in HEX. The actual answer is 2F5B.1C8
What you shown as your answer actually is this...
7D3F355E - 2101294430
BAADC740 - 3131950912
Both of these above are Double Words. You had it as if the answer was 2 Double Words in one. No such thing.
Also too. If you want to convert a decimal point over, just convert the numbers to HEX according to their side. For example: Like I did above, I converted 12123 first to HEX. Then I added the decimal and then converted the 456 to HEX and added that to the end of it. Simple and effective.
If I am way off of what your asking, then I apologize. I was a little stumped as to what your tryng to ask.
ChimpFace9000 -
Explain to me how I wold go about that and i'll see what I can do. Because I don't quite understand what your after. I thought I did make it into a tutorial form by explaining what each command does. Please explain, i'm curious now...
Knight
Hi John!
It is a I'd said. Here is my code:
Dim filename As String
Dim doublewert As Double
filename = ".\double.bin"
doublewert = 12123.456
FileNumber = FreeFile
Open filename For Binary As #FileNumber
Put #FileNumber, , doublewert
Close #FileNumber
In the file I got:
7D3F355EBAADC740
How does this works?
Andi Goering
Ahhhhh.. Now I see what you did.. Give me some time to write this up.. I'll let you know.. BTW - What BASIC program are you using for this?
Knight
The double datatype is a IEEE Standard 754 Double Precision Floating Point, the way it's stored in memory as well as processed by the cpu is explained here:
http://research.microsoft.com/~holla...ieeefloat.html
Thank you kedaman!!! I knew what it was, but couldn't for the life of me figure out HOW to explain 64-Bit (16 Digit Precision) floating point number conversions. I played with the code he had posted in PowerBasic and it works perfect. But I was stumped as to how to EXPLAIN it to someone else in a tutorial.. LOL
You saved my bacon man.. your awesome. Thanks guy...
Knight Vision
Hey that was nothing :p I just posted a link :)
I went to your website and took a look on your asm tutorials, very nicely written, maybe there's hope for me to learn ASM after all :D
Hmm, I skimmed trough 90% of the first two, after all i tried to learn asm some time ago. But here i stopped. 2 to the power of 0 is 1 not 0. 1x1=1 It's nothing weird :)Quote:
0x8 = 0
1x4 = 4
0x2 = 0
1x0 = 1
---------
Added together make 5
WHOA!! WAIT! WAIT!! That last one says 1x0. That's supposed to be a 0
Same thing in the fourth tut. a^0=1 always :) except 0^0 which i don't quite remember what it was, i think you have to apply hopitals rules on it. Well further on for the fun part I guess, the instructions that i never got used to :p
Yea, I know. It stumped me too when I first learned it. However, it was proven that 1x0=1 in computer langauge. So, I quite questioning it. In real world math, it's not right, but in computer math, it correct. Don't ask me why...
where did you read that?
This is not computer math, computer math is more known as boolean logic and 1x0 in boolean logic is 0. In any case the radix convertions are done aritmetically.
Take a look at this:
0x8 = 0
1x4 = 4
0x2 = 0
1x1 = 1
it is analoguous with this:
0x1x2x2x2 = 0
1x1x2x2 = 4
0x1x2 = 0
1x1 = 1
I agree with you Ked... However, after all the research I have done, you have to have 1x0=1 when it comes to HEX to conversions... Otherwise it doesn't work. You will be off in your conversions.
Like I said, don't ask me... I just know this is supposed to work this way.
Knight Vision
Can you post any links?
I won't be convinced without reason
Hey Kedaman, I fixed the tutorials. I figured out where I went wrong. It seems we were both right, but looking at it differently. Now you can goto my tutorials on my site and it's straightened out. Sorry about the confusion. I also added and updated a few other things as well. LOS-BOOT.ZIP is a good one.. :)
Looks ok now :) I had to revert to reading the art of assembly tutorial,'tis really boring but there seems to be no other way out :p I'll have a look at the bootstrap stuff later, might be cool to stuff to know