Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trap instruction #315

Open
NeilEricson opened this issue Dec 4, 2024 · 1 comment
Open

Trap instruction #315

NeilEricson opened this issue Dec 4, 2024 · 1 comment

Comments

@NeilEricson
Copy link

NeilEricson commented Dec 4, 2024

This bit of code will not run correctly past the trap instruction:

move.l #mt,$80
trap #0
mt: .. debugging error happens here and stops with error "Exception has occurred: 10 Bus error"

On a real Amiga if I assemble this with say Devpac (any version), or ArgAsm, heck even seka it works and executes properly. But not using vscode-amiga-assembly plugin for Visual Studio Code. Btw this is used as an easy way to eg. go to supervisor mode without the OS.

Please see https://eab.abime.net/showthread.php?t=57653 and https://wiki.amigaspirit.hu/index.php/Amiga_Machine_Language_(Chapter_8) for how it's properly used on the Amiga.

@prb28
Copy link
Owner

prb28 commented Dec 9, 2024

The trap are treated by default as exceptions in the debugger. You can uncheck the breakpoint in exception in the interface. or change the exception mask : https://github.com/prb28/vscode-amiga-assembly/wiki/Debugging-emulator#traps-68000-exception-vector-numbers---source

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

No branches or pull requests

2 participants