matanlurey / arm7_tdmi

A Dart emulator for the ARM7/TDMI processor.
https://pub.dartlang.org/packages/arm7_tdmi
MIT License
4 stars 2 forks source link

Create common computePSRX methods for each of the different computations #66

Open kendalharland opened 7 years ago

kendalharland commented 7 years ago

Some data-processing instructions use a different carry flag computation or don't have a destination register, so they can't use the common computePsr or computePsrShifter operations. Create common functions for all cases.