Mercurial > repos > blastem
changeset 2470:6bec9e66d0db
Implement link instruction in new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 24 Feb 2024 23:16:37 -0800 |
parents | db32408394c3 |
children | 2f4c17b4fe10 |
files | m68k.cpu |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/m68k.cpu Sat Feb 24 23:16:29 2024 -0800 +++ b/m68k.cpu Sat Feb 24 23:16:37 2024 -0800 @@ -1722,6 +1722,17 @@ update_flags NZV0C0 m68k_prefetch +0100111001010RRR link + a7 -= 4 + scratch2 = a7 + #TODO: confirm order of fetch and write + m68k_write32 aregs.R + m68k_prefetch + aregs.R = a7 + sext 32 scratch1 scratch1 + a7 += scratch1 + m68k_prefetch + 0100111001110000 reset if reset_handler pcall reset_handler m68k_reset_handler context