framework for writing emulated instructions and addressing modes in place with some examples