News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Is it THAT important to know true binary?

Started by King_Lacho, February 24, 2005, 05:54:46 PM

Previous topic - Next topic

King_Lacho

I've been reading through "Art Of Assembly Language" and I'm currently finishing with chapter 3. I just wanted to know how if it's really important to know binary of if I may just skip that and just keep on Hexadecimal, or if I should better learn all that stuff to be able to continue further learning.

I already understand all of the OR, AND, XOR, etc., etc., so I don't know if that's enough or if I should learn any more stuff..  :eek :eek

rea

make a fast pass over the text specially watching the titles, if there is something that you can get the idea fast, then stop there .....

P1

Let's use an analogy.  

Maybe Machcanics.  You drive a car, if it breaks, if you know machcanics and have the tools and parts, you can fix your car.  Otherwise you pay a Mechcanic to fix it.

Some machcanics fix only certain things because of what they know.

Programming = Machcanics
Car = Software
Parts = Source

Knowing binary is a part of programming.  Otherwise you can not fix a problem that extends into the binary.

You use software, if it breaks, if you know programming and have the tools and source, you can fix your software.  Otherwise you pay a programmer to fix it.  Or in this case ask for help in fixing it.

Regards,  P1  :8)


lifewire

you should know binary for sure. it isn't hard at all, once you got it.

AeroASM

It is important to know it, but I don't think you need to be fluent.

drhowarddrfine

How could you figure out hex without knowing binary?

Xor Stance

Well, it looks like he already studied at school hexadecimal, I think he forgot how to use binary? I remember when I talk to him about it, in HLA we don't use much binary I guess, we use hexadecimal values mostly and little bit of binary. Unless, you only have a binary editor; you could probably program without the need of such compilers and it saves space. Binary its use in assembly language.

01 = 1
10 = 2
11 = 3
001 = 4
011 = 5
111 = 6

Well, I before learn first Hexadecimal without binary 1 to 9 A to F. At this new time of learning it's skipable. Actualy I forgot how to convert with the decimal operations and all that.

What I still don't understand is that binary is part of assembly; why he would skip some pages?

Maybe a re-read will be good, fellow! 

King_Lacho

Let me rephrase, perhaps...

My question truly was, if I already got Hexadecimal, do I still have to know Binary by heart?

drhowarddrfine

You will have many uses for knowing binary, especially when you have to sort a binary number into individual bits that need to be set/test and reset. 

I'm wondering if you are learning binary and hex as counting numbers rather than what they represent.  They represent digital bits as much as they do numbers.  At its core, computers deal exclusively with binary.

Sevag.K

Quote from: King_Lacho on February 25, 2005, 02:44:30 AM
Let me rephrase, perhaps...

My question truly was, if I already got Hexadecimal, do I still have to know Binary by heart?

I don't think you need to memorize the binary of all the numbers if that's what
you mean by 'by heart'

You should at least know how binary works and that will get you by fine.  It is really
helpful when dealing with bits and logical operations.

You can look at my aid-tool, cCalc (Windows only)

You can enter numbers in decimal or hexadecimal, and the binary is represented
graphically in 32 checkboxes.  The tool also allows you to manipulate the values
by several arithmetic and logical CPU instructions to help you invision how these
affect the registers in binary: clear checkbox = 0, set checkbox = 1


cCalc 1.04


[attachment deleted by admin]

King_Lacho

Quote from: Sevag.K on February 25, 2005, 04:38:32 AM
I don't think you need to memorize the binary of all the numbers if that's what
you mean by 'by heart'

You should at least know how binary works and that will get you by fine.  It is really
helpful when dealing with bits and logical operations.

You can look at my aid-tool, cCalc (Windows only)

You can enter numbers in decimal or hexadecimal, and the binary is represented
graphically in 32 checkboxes.  The tool also allows you to manipulate the values
by several arithmetic and logical CPU instructions to help you invision how these
affect the registers in binary: clear checkbox = 0, set checkbox = 1


cCalc 1.04


Thanks!!!!!!

I get a clearer picture now, I guess I'll just try to learn that by heart before going on to the next part. Thnx Sevag.K

Xor Stance

As I remember before, you can code in hexadecimal, binary, ASCII, and some weird symbols from machine code.

¤Á¢

I remember when I learn hexadecimal 2 years ago, A0, A1, to 9. It was to fix the checksum of a game or to translate it, however it was just too hard to do it and I mess it up.

Weird symbols it's too hard to learn, unless you ask my friend that code in machine language.

Hex, it's easier, but that was in the past, even for h1; you need to handle hex for it, since other symbol will be just harder.


00100b

Quote from: Xor Stance on February 25, 2005, 01:54:49 AM
01 = 1
10 = 2
11 = 3
001 = 4
011 = 5
111 = 6
I'm assuming that you meant that these values were to represent binary.

If so, then these equations (001 = 4, 011 = 5, and 111 = 6) are false.


P1

While it may be true that, you don't see too much bit masking in code these days.   Understanding the bit structure of data will help you.  The most common carry over from the bits days are CPU flags which are still handled as bits.

Regards,  P1  :8)

Xor Stance

What do you mean Marty Marcian?


:toothy I think hieroglyphics, assyrian script, mayan languages, arabian language, and other.

Can replace a new language than hungarian notation...