This commit is contained in:
Mateusz Faderewski 2024-08-15 21:16:50 +02:00
parent 02eed1c44c
commit d630315058
2 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,7 @@ All `DATA` values with upper 8 bits set to `1` (`0xFFxxxxxx`) are reserved for i
Refrain from using these values in your app for uses other than listed below.
Currently defined reserved `DATA` values are:
- `0xFF000000` - **Ping** - no-op command to test if app running on the N64 is listening to the AUX events.
- `0xFF000001` - **Halt** - causes the running app to stop all activity and wait in preparation for uploading new ROM to the SC64.
App still should listen to the AUX interrupt and respond to other messages.
- `0xFF000002` - **Reboot** - causes the running app to perform soft reboot by reloading IPL3 from the ROM and start executing it.

View File

@ -651,6 +651,7 @@ impl TryFrom<AsynchronousPacket> for DataPacket {
}
pub enum AuxMessage {
Ping,
Halt,
Reboot,
}
@ -658,6 +659,7 @@ pub enum AuxMessage {
impl From<AuxMessage> for u32 {
fn from(value: AuxMessage) -> Self {
match value {
AuxMessage::Ping => 0xFF000000,
AuxMessage::Halt => 0xFF000001,
AuxMessage::Reboot => 0xFF000002,
}