comparison m68k.cpu @ 2633:1ef2734ac052

Fix Z flag for negx
author Michael Pavone <pavone@retrodev.com>
date Sun, 23 Feb 2025 13:56:22 -0800
parents 94c05d4ead51
children e8b630a1ea4e
comparison
equal deleted inserted replaced
2632:5c7e1277517b 2633:1ef2734ac052
2011 invalid M 7 R 5 2011 invalid M 7 R 5
2012 invalid M 7 R 6 2012 invalid M 7 R 6
2013 invalid M 7 R 7 2013 invalid M 7 R 7
2014 m68k_fetch_dst_ea M R Z 2014 m68k_fetch_dst_ea M R Z
2015 sbc dst 0 dst Z 2015 sbc dst 0 dst Z
2016 update_flags XNZVC 2016 update_flags XNVC
2017 if Z = 2 2017 switch Z
2018 case 0
2019 local tmp8 8
2020 tmp8 = dst
2021 if tmp8
2022 update_flags Z0
2023 end
2024 case 1
2025 local tmp16 16
2026 tmp16 = dst
2027 if tmp16
2028 update_flags Z0
2029 end
2030 case 2
2031 local tmp32 32
2018 if M = 0 2032 if M = 0
2019 cycles 2 2033 cycles 2
2034 end
2035 tmp32 = dst
2036 if dst
2037 update_flags Z0
2020 end 2038 end
2021 end 2039 end
2022 m68k_save_dst Z 2040 m68k_save_dst Z
2023 m68k_prefetch 2041 m68k_prefetch
2024 2042