Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Loops-While/360-Assembly/loops-while-1.360
Normal file
19
Task/Loops-While/360-Assembly/loops-while-1.360
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
* While 27/06/2016
|
||||
WHILELOO CSECT program's control section
|
||||
USING WHILELOO,12 set base register
|
||||
LR 12,15 load base register
|
||||
LA 6,1024 v=1024
|
||||
LOOP LTR 6,6 while v>0
|
||||
BNP ENDLOOP .
|
||||
CVD 6,PACKED convert v to packed decimal
|
||||
OI PACKED+7,X'0F' prepare unpack
|
||||
UNPK WTOTXT,PACKED packed decimal to zoned printable
|
||||
WTO MF=(E,WTOMSG) display v
|
||||
SRA 6,1 v=v/2 by right shift
|
||||
B LOOP end while
|
||||
ENDLOOP BR 14 return to caller
|
||||
PACKED DS PL8 packed decimal
|
||||
WTOMSG DS 0F full word alignment for wto
|
||||
WTOLEN DC AL2(8),H'0' length of wto buffer (4+1)
|
||||
WTOTXT DC CL4' ' wto text
|
||||
END WHILELOO
|
||||
18
Task/Loops-While/360-Assembly/loops-while-2.360
Normal file
18
Task/Loops-While/360-Assembly/loops-while-2.360
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
* While 27/06/2016
|
||||
WHILELOO CSECT
|
||||
USING WHILELOO,12 set base register
|
||||
LR 12,15 load base register
|
||||
LA 6,1024 v=1024
|
||||
DO WHILE=(LTR,6,P,6) do while v>0
|
||||
CVD 6,PACKED convert v to packed decimal
|
||||
OI PACKED+7,X'0F' prepare unpack
|
||||
UNPK WTOTXT,PACKED packed decimal to zoned printable
|
||||
WTO MF=(E,WTOMSG) display
|
||||
SRA 6,1 v=v/2 by right shift
|
||||
ENDDO , end while
|
||||
BR 14 return to caller
|
||||
PACKED DS PL8 packed decimal
|
||||
WTOMSG DS 0F full word alignment for wto
|
||||
WTOLEN DC AL2(8),H'0' length of wto buffer (4+1)
|
||||
WTOTXT DC CL4' ' wto text
|
||||
END WHILELOO
|
||||
Loading…
Add table
Add a link
Reference in a new issue