We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Derailment: Difference between revisions
From SnesLab
(Category scene slang) |
(flow BRK into body) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Derailment''' is a failure state the [[65c816]] can enter. Usually as the result of a programming error, derailment from the instruction stream occurs when the CPU misinterprets an operand byte as an opcode byte or vice versa. | '''Derailment''' is a failure state the [[65c816]] can enter. Usually as the result of a programming error, derailment from the instruction stream occurs when the CPU misinterprets an operand byte as an opcode byte or vice versa. | ||
To safely shut down the CPU, consider [[STP]]. | |||
Zeroing memory can help mitigate derailment because accidentally running opcode 00h causes a [[BRK]] interrupt. | |||
=== See Also === | === See Also === | ||
* [[SEP]] | * [[SEP]] | ||
* [[REP]] | * [[REP]] | ||
=== Reference === | |||
* https://forums.nesdev.org/viewtopic.php?p=104280#p104280 | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Scene Slang]] | [[Category:Scene Slang]] |
Latest revision as of 19:25, 20 August 2024
Derailment is a failure state the 65c816 can enter. Usually as the result of a programming error, derailment from the instruction stream occurs when the CPU misinterprets an operand byte as an opcode byte or vice versa.
To safely shut down the CPU, consider STP.
Zeroing memory can help mitigate derailment because accidentally running opcode 00h causes a BRK interrupt.