sunflower-embedded-system-emulator icon indicating copy to clipboard operation
sunflower-embedded-system-emulator copied to clipboard

PC in superH should be 4 bytes ahead of current instruction

Open Z-Gu opened this issue 7 years ago • 1 comments

According to bottom of pg14 of the attached manual, PC of sh7700 series "indicates starting address of the current instruction incremented by 4" DSA-338480.pdf

Z-Gu avatar Dec 29 '17 05:12 Z-Gu

This is already handled in superH_bf () (please see the 20-line block starting at https://github.com/phillipstanleymarbell/sunflower-simulator/blob/81afa791d8abb311312dd4563d5b9780026ce490/sim/op-hitachi-sh.c#L523).

phillipstanleymarbell avatar Aug 26 '18 10:08 phillipstanleymarbell