Computer Organization and Design by Hennessy and Patterson is a very very good textbook on the subject.
These lectures from CMU are probably fine though I haven't watched them.
Here's the specific undergrad book I referenced: https://www.amazon.com/Computer-Organization-Design-MIPS-Architecture/dp/0128201096/ref=sr_1_1?keywords=computer+organization+and+design+the+hardware%2Fsoftware+interface&qid=1667781282&sprefix=hardware%2Fsoftware+interf%2Caps%2C229&sr...
The graduate level book you'll likely find dry and confusing without the context. It goes quite deep quite quickly. This one is much more friendly and you'll get the assembly language programming background that you really need from it.
Computer Organization and Design
Depending on where you need to start you might to begin with some of the appendices for intro to digital logic but It's all there