wswan:guide:pcv2_support
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wswan:guide:pcv2_support [2025/08/15 17:45] – created asie | wswan:guide:pcv2_support [2025/12/31 13:10] (current) – asie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Pocket Challenge V2/pinstrap support | + | ====== Pocket Challenge V2 ====== |
| - | " | + | Pocket Challenge V2 differs |
| - | The Pocket Challenge V2 uses the same ASWAN SoC as the " | + | * Most boot ROM execution is skipped and the code entry point is different. This is referred |
| + | * The input button layout is different. | ||
| - | ===== Adding the alternate start location | + | ===== Pinstrap entry point ===== |
| + | |||
| + | " | ||
| + | |||
| + | The Pocket Challenge V2 uses the same ASWAN SoC as the //mono// WonderSwan, but it repurposes the bit 1 pinstrap (code starts at '' | ||
| + | |||
| + | ==== Adding the alternate start location ==== | ||
| To add a stub at '' | To add a stub at '' | ||
| - | For '' | + | For '' |
| - | ===== Adding missing hardware initialization | + | ==== Adding missing hardware initialization ==== |
| The pinstrap mode omits certain hardware initialization code that occurs in the boot ROM. In particular, the LCD display driver is never enabled. To solve this, add the following code to your program: | The pinstrap mode omits certain hardware initialization code that occurs in the boot ROM. In particular, the LCD display driver is never enabled. To solve this, add the following code to your program: | ||
| Line 19: | Line 26: | ||
| </ | </ | ||
| - | ===== Preserving unlocked boot ROM ===== | + | ==== Optional: |
| The default pinstrap stubs disable the boot ROM before jumping to user code, as the pinstrap mode starts with the boot ROM overlaid on top of the cartridge area at '' | The default pinstrap stubs disable the boot ROM before jumping to user code, as the pinstrap mode starts with the boot ROM overlaid on top of the cartridge area at '' | ||
| Line 25: | Line 32: | ||
| * Replace '' | * Replace '' | ||
| * Add '' | * Add '' | ||
| + | |||
| + | ===== Input button layout ===== | ||
| + | |||
| + | The input button layout of the Pocket Challenge V2 is [[https:// | ||
| + | |||
| + | <code C> | ||
| + | if (ws_system_get_model() == WS_MODEL_PCV2) { | ||
| + | // use WS_KEY_PCV2_ defines... | ||
| + | } else { | ||
| + | // use WS_KEY_ defines... | ||
| + | } | ||
| + | </ | ||
wswan/guide/pcv2_support.1755279929.txt.gz · Last modified: by asie
