Fix pc bug in emulator
Improve gui