The tutorial director checks both the current application mode and profile byte five. Its completion flag is distinct from other editor preferences. If that byte is nonzero, eligibility routine 02059848 rejects every stage. When it is zero, the following mode combinations are accepted. Addresses are American V2. [1]
| Stage | Accepted modes |
|---|---|
| 0 | 5 |
| 1 | 6 |
| 2 | 6, 7 |
| 3 | 7, 14 |
| 4 | 7 |
| 5 | 5 |
| 6 | 15, 17 |
| 7 | 15, 5 |
| 8 | None |
Stage five also hides both tutorial children, even when the current mode is ineligible; the profile-completion check happens first. The boolean setter at 02026E64 normalises the flag rather than storing an arbitrary value. [1]
Completing a stage
Director completion 0205A94C calls application transition 0204380C, then the flag/tail routines at 02033FB8 and 02033FD4. On its first tick it clears the director's active field and the application's transition pointer. The transition sets bytes zero and one, stores the destination mode in the halfword at +2, clears the halfword at +4, copies the old word at +0x0C to +8 and stores signed minus four at +0x10. Tutorial mode fifteen then adds sound sequences fourteen and twenty-seven. Later ticks do not repeat those sounds. Mode seventeen can hide/cancel a ready child; an unready child is left alone. [1]
Saving completion
Stage 0205AD64 first sets profile byte five in memory, then enters the NAND waiting task whose worker is 02059640. The worker prepares storage, writes the profile and installs bundled examples. Profile/preparation failure does not stop the example-installation call: the worker's return value is the installation result, not proof that the profile write succeeded. Later tutorial progression consults profile-load state through 020274EC. [1]
The saved profile is 256 bytes, with version two, reserved bytes 0x1E–0xFF cleared and a checksum halfword at 0x18. The checksum is the 16-bit sum of each byte XOR its index after that halfword has been cleared. Reload checks the checksum, applies handedness and audio settings, and clears the in-memory checksum while validating. A successful write/reload retains completion and blocks the tutorial; a failed write can reload the old, incomplete profile and allow it again. [1]
The installer reads numbered archives from rom:/SampleData.%s/%02d.ash, derives PPM sizes and writes their names. The checked storage boundary does not establish a physical NAND reboot, a complete tutorial play-through or every example-installation failure. [1]
Eligibility after loading options
American V2 02059848 checks stage-zero eligibility against the actual resulting profile. Mode five is eligible when completion byte five is zero; mode seventeen is not. Missing, short or rejected nonzero-version profiles take fallback, resetting completion. Accepted completed profiles keep suppression. Version-one migration and the version-zero checksum branch must be evaluated from their resulting packet rather than an assumed default. [2]
Exact counters, not elapsed-time thresholds
Timed routine 02059C64 initialises its retained child and phase at tick zero. Exactly twelve requests sequence twelve; exactly ninety requests the application phase; exactly 120 requests sequence fourteen and publishes pending token 02215640 with tick FFFFFFFF. These are equality comparisons. Supplied counters that skip an instant omit its request; repeated exact instants can repeat it because this function has no independent debounce. Three multi-call comparisons establish that behaviour without claiming the real scheduler normally skips/repeats ticks or fixing their wall-clock duration. Full tutorial screens and language-specific presentation remain open. [2]
