Maiko: CHECK_INTERRUPT #166
-
I have a question about It is defined as (slightly reformatted for reading):
And now, let's take a look at an example usage of it ...
Now, if the interrupt actually fires and it does the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think what happens (check me on this!) is that if it is actually executing Lisp code in the interrupt, it will save and restore the stack, but when it returns it will return to the same opcode that it was executing (from the JUMPMACRO) because the PC has not been updated, this time the interrupt check won't fire, and it will update the PC appropriately and end up in the real next opcode. |
Beta Was this translation helpful? Give feedback.
I think what happens (check me on this!) is that if it is actually executing Lisp code in the interrupt, it will save and restore the stack, but when it returns it will return to the same opcode that it was executing (from the JUMPMACRO) because the PC has not been updated, this time the interrupt check won't fire, and it will update the PC appropriately and end up in the real next opcode.