1
0
mirror of https://github.com/moshix/mvs.git synced 2026-02-23 15:12:16 +00:00
Files
moshix.mvs/PC370_orig/Diskette/min/GETMAIN.MAC

40 lines
663 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
GETMAIN MACRO RU,LV=(1),A=?
AIF /&LABEL$$=/ .GO
&LABEL$$ EQU *
.GO AIF &1=V.TYPEV
AIF &LV=(.REG
AIF &LV>4095.L
LA 1,&LV
AGO .SVC
.L L 1,=F'&LV'
AGO .SVC
.REG AIF &LV=(1).SVC
LR 1,&LV
.SVC SVC 10
LTR 0,0
BZ *+16
LA 2,=C'ABEND 80A$'
SVC 209
SVC 9
DC C'BUG '
AIF &1=R.STORE
AIF &A=?.STORE
ST 2,&A
AGO .END
.STORE LR 1,2
AGO .END
.TYPEV L 1,&LA+4
SVC 10
LTR 0,0
BZ *+26
C 1,&LA
BNL *+16
LA 2,=C'ABEND 80A$'
SVC 209
SVC 9
DC C'BUG '
SVC 10
ST 1,&A+4
ST 2,&A
.END ANOP