If I have a CPU and I wrote a program and I wanted to store a value (copy a value from a register to memory (RAM)) then I would use an instrucction in the CPU's instruction set (lets say that this is an x86 CPU) to do so?
Second question, is the instruction in th x86 instruction set to set a value at a particular address in RAM called MOV
?
Third question. BIOS, UEFI, kernels and bootloaders all use the MOV
instruction in the x86 instruction set to do so (assign a value (like 10
) to a specific address in RAM) right?
Fourth question. Programs that operate in the OS (with a kernel (like Linux)) environment do not use the MOV
instruction to get a chunk of memory allocated when they request for it but rather ask the kernel to do it on their behalf?
Fifth question. Is what I described in the fourth question called a system call (when a program running in the OS environment asks the kernel to do something (in this case give it some memory) on its behalf)?