# How does computer work? [duplicate]

This question already has an answer here:

I am not a computer scientist or even a student of CS. I just want to find more information and would like if someone could put if in right direction about how actually computer works. I understand that when we write program in C++, it's been compiled to assembly language and then into machine code. How can all this functions be understood by a machine?
And how can all this functions be executed if assembler can only work with such simple commands like MOV(move some data to CPU register), SUB, ADD and others. How does actually "print" command work? Is there a course, a book or a series of artices for teaching me all that stuff? Thanks in advance