added code for memcpy, memset funtions and also code for handling I/O instructions 'in' and 'out'