How they work instructions in the processor

BHZ-GTR

Member
Aug 16, 2013
89
2
81
Hi Friends

I'm curious to know how they work instructions into the CPU processor and do what they are.

Like: AVX - AES - SSE - MMX And ...

And which language is written

Please suggest me a good article to read.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,570
10,202
126
Like: AVX - AES - SSE - MMX And ...
And which language is written
Please suggest me a good article to read.
Microcode and hardware functions. Some instructions are micro-coded (the longer, more complex ones). Those use a micro-code ROM in the CPU, or possibly SRAM that is loaded by the micro-code patch level in the system BIOS when it boots. The others are actually literally implemented as a sequence of transistors and logic gates in the hardware.

As far as "language", look up VHDL.
 

freeskier93

Senior member
Apr 17, 2015
487
19
81
I don't know what your level of knowledge is with CPUs and instructions, but if you don't know anything it is probably easier to look at 8-bit micro controllers first, especially since most can be considered RISC (reduced instruction set).

Also, "how an instruction works" is a bit vague, are you asking on a language level? Transistor level? Somewhere between the two? I mean, fundamentally an instruction is the series of 1s and 0s that tells a CPU what to do, the closest "language" is probably assembly.

I don't know of any good articles/websites but I can point you to some textbooks.
 
Last edited: