forked from z390development/z390
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with GUAM.MAC (z390development#532)
* Fix issues with GUAM.MAC * Add comments and test case by John Ganci * Add annotated reference output file TGUAM.TF1 * Various changes from review process
- Loading branch information
1 parent
bf18378
commit 3b70952
Showing
5 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
TGUAM CSECT | ||
STM 14,12,12(13) save caller's registers | ||
LR 12,15 set base register | ||
USING TGUAM,12 establish addressability | ||
LA 15,SA usable save area | ||
ST 13,4(,15) chain save areas | ||
ST 15,8(,13) | ||
LR 13,15 current save area | ||
* | ||
LA 2,A begin area to SNAP | ||
LA 3,B end area to SNAP | ||
* | ||
GUAM WINDOW,FONT,16 | ||
ORG *-2 | ||
DC X'0700' nullify SVC | ||
STM 0,1,R0R1 save for SNAP | ||
|
||
SNAP ID=1,PDATA=,STORAGE=((2),(3)) | ||
* | ||
GUAM WINDOW,VIEW,SCREEN,24,80,3 | ||
ORG *-2 | ||
DC X'0700' nullify SVC | ||
STM 0,1,R0R1 save for SNAP | ||
|
||
SNAP ID=2,PDATA=,STORAGE=((2),(3)) | ||
* | ||
SR 15,15 set return code | ||
* | ||
L 13,4(,13) caller's save area | ||
L 14,12(,13) restore caller's registers | ||
LM 0,12,20(13) ... except 15 | ||
BR 14 return to caller | ||
A DS 0D | ||
DC CL8'Regs0-1' | ||
R0R1 DS 2F | ||
DC CL8'LitPool' | ||
* | ||
LTORG , | ||
* | ||
B DS 0D | ||
SA DC 18F'0' usable save area | ||
* | ||
GUAM SYMBOLS | ||
* | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Expected SNAP output, annotated for clarity. | ||
|
||
1. With first GUAM.MAC corrrection, not second correction. | ||
|
||
SNAP DUMP ID=1 | ||
000FFF80 *D98587A2 F060F140 00000104 000FFF9C* *Regs0-1 ........* <-- R1 = 000FFF9C = A(1 word parm list) | ||
000FFF90 *D389A3D7 96969340 00000010 000FFF98* *LitPool .......q* <-- parm 1 value, parm 1 address | ||
======== -------- | ||
fontSize parmList | ||
000FFFA0 *00000002 00000018 00000050 00000003* *...........&....* | ||
000FFFB0 *00000018 00000050 * *.......& * | ||
SNAP DUMP ID=2 | ||
000FFF80 *D98587A2 F060F140 00000105 000FFFA0* *Regs0-1 ........* <-- R1 = 000FFFA0 = A(4 word parm list) | ||
000FFF90 *D389A3D7 96969340 00000010 000FFF98* *LitPool .......q* | ||
000FFFA0 *00000002 000FFFB0 000FFFB4 00000003* *................* <-- the 4 word parm list; 4th parm not set! | ||
-------- -------- -------- -------- | ||
------------ parmList ------------- | ||
000FFFB0 *00000018 00000050 * *.......& * <-- parm 2 value, parm 3 value; no parm 4 | ||
======== ======== | ||
parm 2 parm 3 | ||
|
||
2. With second GUAM.MAC correction. | ||
|
||
SNAP DUMP ID=2 | ||
000FFF78 *D98587A2 F060F140 00000105 000FFF98* *Regs0-1 .......q* <-- R1 = 000FFF98 = A(4 word parm list) | ||
000FFF88 *D389A3D7 96969340 00000010 000FFF90* *LitPool ........* | ||
000FFF98 *00000002 000FFFA8 000FFFAC 000FFFB0* *.......y........* <-- the 4 word parm list; all parm addrs set | ||
-------- -------- -------- -------- | ||
------------ parmList ------------- | ||
000FFFA8 *00000018 00000050 00000003 F6F6F6F6* *.......&....6666* <-- parm 2, parm 3, parm 4 values | ||
======== ======== ======== | ||
parm 2 parm 3 parm 4 | ||
|
||
End | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters