Personal Computer from the Inside Out: The Programmer's Guide to Low-Level PC Hardware and Software (3rd Edition)
Boolean Logic & Logic Gates: Crash Course Computer Science #3
It's a nice, simple, easily watchable and highly visual overview of what you're going to start learning.
From there, it's virtually guaranteed that YouTube will suggest more relevant videos, and you'll be on your way.
Then later, you might want some books on "Digital Logic" (that's the keyword to search for).
To go up from that level of abstraction, I recommend
"The Personal Computer from the Inside Out: The Programmer's Guide to Low-Level PC Hardware and Software (3rd Edition)" By Murray Sargent III and Richard L. Shoemaker:
To learn Assembly Language:
Randall Hyde's Art Of Assembly Language
To learn Compilers:
Compiler Construction, by Niklaus Wirth
Let's Build A Compiler, Jack W. Crenshaw & Marco van de Voort:
A Small C Compiler, by James E. Hendrix (sorry, this one is behind a pay/registration wall)
Tiny C Compiler
Wikipedia articles related to compilers:
Shunting Yard Algorithm:
Here's a great way to visually explore how various compilers create assembly language instructions:
Up the abstraction level from all of that is LISP and LISPlike languages, Tensorflow, ML, and related high-level abstractions -- but you probably are more aware of those than the lower levels...
Anyway, good luck! It's a wonderful journey to undertake!