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
Jump to: navigation, search
(added ref)
(flow BRK into body)
 
Line 2: Line 2:


To safely shut down the CPU, consider [[STP]].
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]]
* [[BRK]]


=== Reference ===
=== Reference ===

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.

See Also

Reference