Skip to content

Conversation

@cnvogelg
Copy link

@cnvogelg cnvogelg commented Jan 3, 2022

This PR adds aline hooks to Musashi. This feature allows to receive callbacks whenever an 0xaxxx opcode is encountered.
You can then decide for each opcode in the callback if you want to process it normally, i.e. trigger an CPU exception or do an RTS or do nothing. The latter operations are very useful if you use the 0xaxxx opcodes for fast "emulator traps", i.e. you can quickly trigger native operations from m68k code without performing the whole exception handling on m68k CPU side.

I use this feature for my amitools vamos emulator to provide native OS calls.
It would be great if you accept this PR and bring it to upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant