Repository navigation
Commit 08361ad
fix(accuracysnes): E3.06 polls and accumulates; retract F1.10's "1-vs-3" (#310)
E3.06 read TnOUT once at the end of the interval, and TnOUT is a four-bit
read-and-clear counter, so the useful range was 8..15 with the wrap one tick
above. That is not a band that can be widened -- it is the instrument's
ceiling. It now polls timer 2 every ~32 SPC cycles (one timer-2 period), so
every read returns 0, 1 or 2 and the running sum cannot lose a tick however
long the interval gets.
It also asserts the RATIO rather than two absolute counts: |T2 - 8*T0| <= 6,
computed on the 65816. Absolute counts pin the poll loop's own cycle cost,
which differs between cores for reasons unrelated to the 64 kHz stage -- and
that is exactly what made the old row fail on ares while ares' own
Timer<128>/Timer<128>/Timer<16> declarations were a correct 8:1.
RustySNES and ares now report the identical 6 and 46. ARES_KNOWN_FAILURES
drops 5 -> 4. A ceiling in the instrument reads exactly like a defect in the
thing measured.
RETRACTION: F1.10 is not "1-vs-3 with RustySNES passing alone", and its Mesen2
verdict is phase-fragile. #306 published that reading from a measurement taken
at the time. Then rewriting E3.06 -- an UNRELATED APU row -- made Mesen2 PASS
F1.10: three identical runs before, three identical runs after. The rewrite
changed one uploaded program's length, which moved the cart's execution phase,
which moved when F1.10 samples $4212 relative to the vblank edge.
So Mesen2's verdict on that row encodes where the cart happens to be, not only
what Mesen2 models. snes9x and ares fail it stably; Mesen2 flips.
MESEN2_KNOWN_FAILURES drops 2 -> 1 (F1.03 only), and the comment says not to
restore an F1.10 entry: either pin the row's sampling point, or accept that
Mesen2's verdict on it carries no information.
Third instance of the same trap in one session, after E8.01's two rejected
drafts and the scene field gate.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d75a8ed commit 08361ad
7 files changed
Lines changed: 158 additions & 79 deletions
File tree
- scripts/accuracysnes
- tests/roms/AccuracySNES
- asm
- build
- gen/src/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
14 | 45 | | |
15 | 46 | | |
16 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 194 | + | |
| 195 | + | |
199 | 196 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
| |||
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
239 | | - | |
| 244 | + | |
240 | 245 | | |
241 | | - | |
242 | | - | |
| 246 | + | |
| 247 | + | |
243 | 248 | | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
255 | 268 | | |
256 | 269 | | |
257 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2640 | 2640 | | |
2641 | 2641 | | |
2642 | 2642 | | |
2643 | | - | |
2644 | | - | |
| 2643 | + | |
| 2644 | + | |
2645 | 2645 | | |
2646 | 2646 | | |
2647 | 2647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22926 | 22926 | | |
22927 | 22927 | | |
22928 | 22928 | | |
22929 | | - | |
| 22929 | + | |
22930 | 22930 | | |
22931 | 22931 | | |
22932 | 22932 | | |
| |||
22973 | 22973 | | |
22974 | 22974 | | |
22975 | 22975 | | |
22976 | | - | |
22977 | | - | |
22978 | | - | |
22979 | | - | |
22980 | | - | |
22981 | 22976 | | |
22982 | 22977 | | |
22983 | 22978 | | |
| |||
22987 | 22982 | | |
22988 | 22983 | | |
22989 | 22984 | | |
22990 | | - | |
| 22985 | + | |
22991 | 22986 | | |
22992 | | - | |
| 22987 | + | |
22993 | 22988 | | |
22994 | 22989 | | |
22995 | 22990 | | |
22996 | 22991 | | |
22997 | 22992 | | |
22998 | 22993 | | |
22999 | | - | |
| 22994 | + | |
23000 | 22995 | | |
23001 | 22996 | | |
23002 | 22997 | | |
23003 | | - | |
23004 | | - | |
23005 | | - | |
23006 | | - | |
23007 | | - | |
| 22998 | + | |
| 22999 | + | |
| 23000 | + | |
| 23001 | + | |
| 23002 | + | |
| 23003 | + | |
| 23004 | + | |
| 23005 | + | |
| 23006 | + | |
| 23007 | + | |
23008 | 23008 | | |
23009 | 23009 | | |
23010 | | - | |
| 23010 | + | |
| 23011 | + | |
| 23012 | + | |
| 23013 | + | |
| 23014 | + | |
| 23015 | + | |
23011 | 23016 | | |
23012 | 23017 | | |
23013 | 23018 | | |
23014 | | - | |
| 23019 | + | |
23015 | 23020 | | |
23016 | 23021 | | |
23017 | 23022 | | |
| |||
23029 | 23034 | | |
23030 | 23035 | | |
23031 | 23036 | | |
23032 | | - | |
| 23037 | + | |
23033 | 23038 | | |
23034 | 23039 | | |
23035 | 23040 | | |
23036 | 23041 | | |
23037 | 23042 | | |
23038 | 23043 | | |
23039 | | - | |
| 23044 | + | |
23040 | 23045 | | |
23041 | 23046 | | |
23042 | 23047 | | |
| |||
34143 | 34148 | | |
34144 | 34149 | | |
34145 | 34150 | | |
34146 | | - | |
34147 | | - | |
34148 | | - | |
34149 | | - | |
| 34151 | + | |
| 34152 | + | |
| 34153 | + | |
| 34154 | + | |
| 34155 | + | |
| 34156 | + | |
34150 | 34157 | | |
34151 | 34158 | | |
34152 | 34159 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments