2022-12-31 02:10:27 +01:00
|
|
|
- [N64 commands](#n64-commands)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2022-12-31 01:12:02 +01:00
|
|
|
## N64 commands
|
2022-12-31 02:10:27 +01:00
|
|
|
|
|
|
|
| id | name | arg0 | arg1 | rsp0 | rsp1 | description |
|
|
|
|
| --- | --------------------- | ---------- | ------------ | ---------------- | -------------- | -------------------------------------------------- |
|
2023-02-20 18:17:09 +01:00
|
|
|
| `v` | **IDENTIFIER_GET** | --- | --- | identifier | --- | Get flashcart identifier `SCv2` |
|
|
|
|
| `V` | **VERSION_GET** | --- | --- | version | --- | Get flashcart firmware version |
|
2022-12-31 02:10:27 +01:00
|
|
|
| `c` | **CONFIG_GET** | config_id | --- | --- | current_value | Get config option |
|
|
|
|
| `C` | **CONFIG_SET** | config_id | new_value | --- | previous_value | Set config option and get previous value |
|
2023-02-10 21:38:49 +01:00
|
|
|
| `c` | **SETTING_GET** | setting_id | --- | --- | current_value | Get persistent setting option |
|
|
|
|
| `C` | **SETTING_SET** | setting_id | new_value | --- | --- | Set persistent setting option |
|
2022-12-31 02:10:27 +01:00
|
|
|
| `t` | **TIME_GET** | --- | --- | time_0 | time_1 | Get current RTC value |
|
2023-02-20 18:17:09 +01:00
|
|
|
| `T` | **TIME_SET** | time_0 | time_1 | --- | --- | Set new RTC value |
|
2022-12-31 02:10:27 +01:00
|
|
|
| `m` | **USB_READ** | pi_address | length | --- | --- | Receive data from USB to flashcart |
|
|
|
|
| `M` | **USB_WRITE** | pi_address | length/type | --- | --- | Send data from from flashcart to USB |
|
|
|
|
| `u` | **USB_READ_STATUS** | --- | --- | read_status/type | length | Get USB read status and type/length |
|
|
|
|
| `U` | **USB_WRITE_STATUS** | --- | --- | write_status | --- | Get USB write status |
|
|
|
|
| `i` | **SD_CARD_OP** | pi_address | operation | --- | return_data | Perform special operation on SD card |
|
|
|
|
| `I` | **SD_SECTOR_SET** | sector | --- | --- | --- | Set starting sector for next SD card R/W operation |
|
|
|
|
| `s` | **SD_READ** | pi_address | sector_count | --- | --- | Read sectors from SD card to flashcart |
|
|
|
|
| `S` | **SD_WRITE** | pi_address | sector_count | --- | --- | Write sectors from flashcart to SD card |
|
|
|
|
| `D` | **DD_SD_INFO** | pi_address | table_size | --- | --- | Set 64DD disk SD sector info |
|
2023-01-06 23:47:00 +01:00
|
|
|
| `W` | **WRITEBACK_SD_INFO** | pi_address | --- | --- | --- | Load writeback SD sector table and enable it |
|
|
|
|
| `K` | **FLASH_PROGRAM** | pi_address | length | --- | --- | Program flash with bytes loaded into data buffer |
|
|
|
|
| `p` | **FLASH_WAIT_BUSY** | wait | --- | erase_block_size | --- | Wait until flash ready / get block erase size |
|
2022-12-31 02:10:27 +01:00
|
|
|
| `P` | **FLASH_ERASE_BLOCK** | pi_address | --- | --- | --- | Start flash block erase |
|