Implementation of 32 bit CPU simulator