From d6303150584f55c14f25166578e6177156862645 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Thu, 15 Aug 2024 21:16:50 +0200 Subject: [PATCH] ping --- docs/01_memory_map.md | 1 + sw/deployer/src/sc64/types.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/01_memory_map.md b/docs/01_memory_map.md index 3ea17ca..add661a 100644 --- a/docs/01_memory_map.md +++ b/docs/01_memory_map.md @@ -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. diff --git a/sw/deployer/src/sc64/types.rs b/sw/deployer/src/sc64/types.rs index af7fa19..427ff51 100644 --- a/sw/deployer/src/sc64/types.rs +++ b/sw/deployer/src/sc64/types.rs @@ -651,6 +651,7 @@ impl TryFrom for DataPacket { } pub enum AuxMessage { + Ping, Halt, Reboot, } @@ -658,6 +659,7 @@ pub enum AuxMessage { impl From for u32 { fn from(value: AuxMessage) -> Self { match value { + AuxMessage::Ping => 0xFF000000, AuxMessage::Halt => 0xFF000001, AuxMessage::Reboot => 0xFF000002, }