Why, in the age of AI and Python, we still need to understand code close to machine language. Por qué, en la era de la IA y Python, seguimos necesitando entender código cercano al lenguaje máquina.
Santi Scagliusi, PhD
Most modern firmware is written in C or C++. La mayoría del firmware moderno se escribe en C o C++.
Writing full apps in Assembly is rare today. Escribir aplicaciones enteras en Assembly es raro hoy.
Move data between registers by hand. Assembly is the CPU's blueprint. Mueve datos entre registros a mano. El Assembly es el plano de la CPU.
When C looks right but hardware misbehaves, the disassembly tells the truth. Cuando C parece correcto pero el hardware falla, el desensamblado revela la verdad.
.W writes 16 bits: both P1OUT and P2OUT.
.W escribe 16 bits: P1OUT y P2OUT a la vez.
Reason about code at the level of individual clock cycles. Razona sobre el código al nivel de ciclos de reloj.
Now that you know why it matters, let's see where it comes from.Ahora que sabes por qué importa, veamos de dónde viene.
Before Assembly: only 1s and 0s. Antes del Assembly: sólo 1s y 0s.
▲ 7 lines to compute 5 + 3. ▲ 7 líneas para calcular 5 + 3.
One mnemonic, one machine instruction. A near 1:1 symbolic mapping. Un mnemónico, una instrucción máquina. Un mapeo simbólico casi 1:1.
Understanding Abstraction LevelsComprendiendo los Niveles de Abstracción
"Make me a cake."
(You don't care how)
"Hazme un pastel."
(No te importa cómo)
"Mix flour and sugar."
(Standard recipe)
"Mezcla harina y azúcar."
(Receta estándar)
"Move arm 30°. Grasp spoon."
(Total control)
"Mueve el brazo 30°. Agarra la cuchara."
(Control total)
A brain in a jar is useless. The CPU needs to store memories (RAM/FRAM) and touch the world (I/O). Un cerebro en un frasco es inútil. La CPU necesita almacenar memorias (RAM/FRAM) e interactuar con el mundo (E/S).
Writing a 1 into a register bit = a voltage on a physical pin. Escribir un 1 en un bit del registro = un voltaje en un pin físico.
Same instruction. The address decides whether it hits RAM… or real hardware. Misma instrucción. La dirección decide si cae en RAM… o en hardware real.
Bits → hardware. Try it. Bits → hardware. Pruébalo.
Now you know the why: explicit CPU control, direct hardware access. Ahora sabes el por qué: control explícito de CPU y hardware directo.
The what: digital logic, memory architectures, RISC vs CISC. El qué: lógica digital, arquitecturas, RISC vs CISC.
Start Module 1Comenzar Módulo 1 arrow_forward