| 7 | IMPLEMENT(Panic); |
| 8 | |
| 9 | bool Panic::execute(aithread &thread) const |
| 10 | { |
| 11 | // Retrieve parameters |
| 12 | WORD wOffset; |
| 13 | thread.readTuple( std::tie(wOffset) ); |
| 14 | |
| 15 | // Set panic block |
| 16 | MainController.wPanicBlock = wOffset; |
| 17 | |
| 18 | // Save debug info and return |
| 19 | thread.saveDebug(Text::Green, this->getOpcode(), "p_%04X", wOffset); |
| 20 | return true; |
| 21 | } |