Mercurial > repos > blastem
comparison m68k.cpu @ 2472:f171a12fc98c
Implement swap instruction in new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 25 Feb 2024 23:32:19 -0800 |
parents | 6bec9e66d0db |
children | ea37200967c7 |
comparison
equal
deleted
inserted
replaced
2471:2f4c17b4fe10 | 2472:f171a12fc98c |
---|---|
1731 aregs.R = a7 | 1731 aregs.R = a7 |
1732 sext 32 scratch1 scratch1 | 1732 sext 32 scratch1 scratch1 |
1733 a7 += scratch1 | 1733 a7 += scratch1 |
1734 m68k_prefetch | 1734 m68k_prefetch |
1735 | 1735 |
1736 0100100001000RRR swap | |
1737 ror dregs.R 16 dregs.R | |
1738 update_flags NZV0C0 | |
1739 m68k_prefetch | |
1740 | |
1736 0100111001110000 reset | 1741 0100111001110000 reset |
1737 if reset_handler | 1742 if reset_handler |
1738 pcall reset_handler m68k_reset_handler context | 1743 pcall reset_handler m68k_reset_handler context |
1739 end | 1744 end |
1740 cycles 128 | 1745 cycles 128 |