Commit d106b1e
committed
Fix EXAMINE output for array register repeats
Adopt the fix from open-simh PR 502 for the bug described in upstream
issue 499, and add local test coverage.
When EXAMINE compresses repeated array register values, the old
single-element repeat case printed the skipped element with the next
different value. That made ranged output report an incorrect value for
the skipped array slot.
Remove that special case so every skipped repeated run is summarized as
`same as above`, whether it contains one element or several. Add a
focused SCP register unit test that reproduces the bad output before the
fix and validates the corrected summary output.1 parent 1f0fbfc commit d106b1e
4 files changed
Lines changed: 72 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7876 | 7876 | | |
7877 | 7877 | | |
7878 | 7878 | | |
7879 | | - | |
7880 | | - | |
7881 | | - | |
7882 | | - | |
7883 | | - | |
7884 | | - | |
7885 | | - | |
7886 | | - | |
7887 | | - | |
7888 | | - | |
7889 | | - | |
7890 | | - | |
| 7879 | + | |
| 7880 | + | |
| 7881 | + | |
| 7882 | + | |
7891 | 7883 | | |
7892 | 7884 | | |
7893 | 7885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 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 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments