Tagged: x86

How to Enable 64bit Mode on x86

In the previous set of articles we have worked our way through configuring a vCPU and getting it to run in 32bit mode with paging enabled. In this article we will take it a...

16/32/64 Bit Assembly Programs

Ok so before we move on and jump into writing and running 64 bit programs (because all programs today are 64bit these days no? j.k.) let’s have a look how to compile a simple...

Enabling Paging for a Virtual Machine

So far we have seen how to start up a VM, emulate CUPID instruction, run arbitrary code and learned about segmentation and paging in a CPU. This already allows us to do a lot...

Segmentation and Paging in x86

As x86 CPU starts running in real mode which you probably don’t want to use and will either want to switch to 32bit mode with paging enabled or 64 bit mode (aka long mode)...