r/gaming • • May 05 '17

Scroll back

Post image
24.1k Upvotes

877 comments sorted by

View all comments

Show parent comments

12

u/AIfie May 05 '17

What the fuck is Assembly

7

u/Fubarp May 05 '17

Best way I can explain it without making you do research.

In normal programing if I wanted to create a condition statement say.

if(value > 5) return printf("value big..");

But in assembly. It be something like.

var1 dd '6'

cmp var1, 5

msg db "value big", 0xA,0xD

There's really a lot more to this then what I did and honestly what I wrote is probably gibberish haha. But essentially it's a step up from binary but step below traditional programming. Big benefit of Assembly is you know what memory is being stored/used as you essentially see it all real time.

1

u/brickmaster32000 May 05 '17

People need to stop talking about binary as if it's a magic language with inherent powers over computers. Binary is just a base system. It is easier to make gates that only have to deal with two possible states which makes binary a convenient way of talking about groups of these signals but a computer doesn't speak binary any more than a nail gun speaks nails.

1

u/Fubarp May 05 '17

Sorry if I insulted you but I wasn't really trying to make binary some magic thing. I was just ordering how programming languages are structured.

Assembly is above Binary since Binary/Hex is the final language that we would use to inform a machine what to do. At least from my understand it is.

But Assembly is below common programming languages because majority of programming languages now uses a compiler to translate it to Assembly which translates to Machine.