some kind of emulation, main purpose is bankswitch-detection