-
Notifications
You must be signed in to change notification settings - Fork 66
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
NT_INTERRUPT issues #369
Comments
I forgot... |
please check again |
It doesn't work... It works in 6.5. |
GCC6.5 with -S option GCC13.1.1 with -S option |
You can use WinMerge to compare... |
What should the program do? And what is the problem?
|
It's a vertical blank interrupt. http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_2._guide/node0326.html It doesn't work. AmigaOS crashes if you try to run it. Same with the function CreateNewProc http://amigadev.elowar.com/read/ADCD_2.1/Includes_and_Autodocs_2._guide/node028D.html |
@Bearsoft749 pardon my lack of knowledge, but how does interruptLoop() get a pointer to your program globals? |
did you read the linked documents?
It's not safe to write interrupt routines in C/C++. Guess you need some asm wrapper to set the Z flag properly! |
Oh wait! There is |
I believe the _interrupt attribute will end the function with an rte instead of rts, which is not desirable for an AmigaOS interrupt handler. Works great, though, if you are implementing your own vector handler. |
you are right, that would end in a |
then something like
should do it an clear the Z flag |
Great idea! |
This code works in GCC 6.5 but does not work in GCC 13.1.
I must use "m68k-amigaos-strip" to get it to be executable in GCC 13.1.
The text was updated successfully, but these errors were encountered: