PM Opc STOP

From SublabWiki
Revision as of 22:39, 21 April 2009 by JustBurn (talk | contribs) (STOP Instruction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

STOP = Stop CPU

Hex Mnemonic Cycles
CE AF STOP 8

Execute

See description.

Description

Halt or disable most hardware until a interrupt is requested.

Used by BIOS to set the system in standby mode.

NOTE:
Almost all hardware gets disabled (CPU, LCD, Sound...).
If no interrupts are enabled, the system will be unable to resume operation.
Never call STOP directly, let BIOS to handle the shutdown by using "CINT $24".

Conditions

None

Examples

; STOP instruction isn't recommended to use.
; Use this code to shutdown your program:
CINT $24

« Back to Instruction set