Page 1 of 1

80x86 asm

Posted: Mon Jan 18, 2021 11:25 pm
by zhari
does any1 know assembly language :3 SPECIFICALLY 80x86. i must brush up for my class this next semester .
also i have a Q abt the 80x86 sht
what are the types of assembly language and what does 80x86 mean and why r there variations

Re: 80x86 asm

Posted: Mon Jan 18, 2021 11:47 pm
by cyndaquirl
i know mips asm but im not sure how similar that is

Re: 80x86 asm

Posted: Mon Jan 18, 2021 11:50 pm
by totallynotlydia
Your class is doing x86 assembly?!? what level class are you taking???

(i think thats what 80x86 asm is referring to, correct me if im wrong.)

someone else here could probably give a better explanation, but assembly is like, human readable machine code. It's specific to the CPU you're working with (the Sega Genesis for instance uses it's own Motorolla 68K assembly so those games have to be written in/compiled to machine code for 68K CPUs, Intel processors are x86 based so applications have to be written in/compiled to machine code for x86). Assembly isn't exactly what the CPU reads; it has to be Assembled first (basically reading the Assembly, and replacing the human readable parts with CPU-readable parts). Besides this, Assembly is very close to what CPUs read.

So basically, Assembly (Human Readable Machine Code --> Machine Code (the stuff CPUs read and run).

While there are some benefits to Assembly depending on the platform (like speed (as you're interfacing directly with the hardware and have more control)), Programming languages like C compile to machine code for many different CPU types; thats the appeal of most programming languages. Developing stuff would suck if we had to rewrite every single thing if we wanted to target a different CPU/hardware type.

TL;DR: its the stuff CPUs read, but readable by humans. Because of this it varies by CPU/hardware.

if im wrong about anything (or if im not) please correct me

Re: 80x86 asm

Posted: Tue Jan 19, 2021 12:11 am
by zhari
OMFG THAT MADE SOOOOOOOOOO MUCH SENSE :pog:
u actually translated it into english
i kinda understand the memory allocation stuff so ik what u mean about communicating directly w the computer hardware B|
altho the thing that im still confused abt is understanding how much memory u want to allocate at the beginning of the code
like how in the H E double hockey sticks am i suppozed to know that .

Re: 80x86 asm

Posted: Tue Jan 19, 2021 12:58 am
by totallynotlydia
tbh i don't really know enough to explain the memory allocation bit,

im glad you found my explanation useful tho!!