RESET names the variable, and the cycle start takes its images #635

Manually merged
binjovi-bot merged 1 commit from rpg-9-aa-reset-images-20261025 into trunk 2026-10-25 09:06:58 +00:00
Owner

RESET names the variable, and the cycle start takes its images

A program with a RESET and an *INZSR routine has a cycle start that the
template did not know: after the routine call the compiler copies each
variable of a RESET into its image, then sets a second static byte. The
template reads those copies now (rpg_cycle_template.zig), so the first
statement of the r6a-reset-two and r6a-reset-ds probes is recovered, and
the ENDSR of *INZSR no longer holds the compiler body.

The RESET unit named the image, not the variable: the builtin copy pushes its
destination first, and the variable is the symbol with the INZ value of the
source and the stores of *INZSR. reset name; now names the variable, and
the image, which only the compiler reads, is not declared. The data structure
of r6a-reset-two is not declared yet: no statement references a subfield,
so the object does not hold the structure.

Gates

{"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":6,"newly_clean":10,"clean_delta":10,"base":215,"new":225},"twins":{"groups":439,"recovered":431,"regressions":[],"newly":16},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-out-const/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/d4-out-input/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/d7c-copy/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j1/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j2/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j3/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/h-subind/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/r6a-reset-ds/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/r6a-reset-fixed/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/r6a-reset-two/stripped/object.savf 2"],"worse":[]},"full_check":{"exit":0,"seconds":864}}
# RESET names the variable, and the cycle start takes its images A program with a RESET and an `*INZSR` routine has a cycle start that the template did not know: after the routine call the compiler copies each variable of a RESET into its image, then sets a second static byte. The template reads those copies now (`rpg_cycle_template.zig`), so the first statement of the `r6a-reset-two` and `r6a-reset-ds` probes is recovered, and the `ENDSR` of `*INZSR` no longer holds the compiler body. The RESET unit named the image, not the variable: the builtin copy pushes its destination first, and the variable is the symbol with the INZ value of the source and the stores of `*INZSR`. `reset name;` now names the variable, and the image, which only the compiler reads, is not declared. The data structure of `r6a-reset-two` is not declared yet: no statement references a subfield, so the object does not hold the structure. ## Gates ``` {"checks":{"net_statements":0},"census":{"statuses":{"recovered":645,"partial":0,"unresolved":0},"regressions":0,"newly_recovered":0},"golden":"golden 173/5/0 == dump 173/5/0","emit":{"worse":[],"better":6,"newly_clean":10,"clean_delta":10,"base":215,"new":225},"twins":{"groups":439,"recovered":431,"regressions":[],"newly":16},"allgroups":{"regressions":[],"newly":["savf/SC-ILE/EXPERIMENTS/d4-out-const/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/d4-out-input/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/d7c-copy/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j1/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j2/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/fmtind-j3/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/h-subind/stripped/object.savf 1","savf/SC-ILE/EXPERIMENTS/r6a-reset-ds/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/r6a-reset-fixed/stripped/object.savf 2","savf/SC-ILE/EXPERIMENTS/r6a-reset-two/stripped/object.savf 2"],"worse":[]},"full_check":{"exit":0,"seconds":864}} ```
RESET names the variable; the cycle start takes the RESET images after *INZSR
All checks were successful
binjovi/ci Binjovi completed the frozen plan
65dd6ab45c
The RESET unit named the image: the builtin copy pushes its destination
first, and the variable is the symbol with the INZ value of the source and
the stores of *INZSR. The statement reader shows RESET V now, and the emit
writes reset of the variable; the image is not declared.

After the *INZSR call the compiler copies each variable of a RESET into
its image and sets a second static byte. The cycle start template reads
those copies, so the first statement of r6a-reset-two and r6a-reset-ds is
recovered and the ENDSR of *INZSR no longer holds the compiler body.
binjovi-bot manually merged commit 65dd6ab45c into trunk 2026-10-25 09:06:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/sourcerer!635
No description provided.