Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/String-case/360-Assembly/string-case-1.360
Normal file
15
Task/String-case/360-Assembly/string-case-1.360
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
UCASE CSECT
|
||||
USING UCASE,R15
|
||||
MVC UC,PG
|
||||
MVC LC,PG
|
||||
OC UC,=16C' ' or X'40' uppercase
|
||||
NC LC,=16X'BF' and X'BF' lowercase
|
||||
XPRNT PG,L'PG print original
|
||||
XPRNT UC,L'UC print uc
|
||||
XPRNT LC,L'LC print lc
|
||||
BR R14
|
||||
PG DC CL9'alphaBETA'
|
||||
UC DS CL(L'PG)
|
||||
LC DS CL(L'PG)
|
||||
YREGS
|
||||
END UCASE
|
||||
31
Task/String-case/360-Assembly/string-case-2.360
Normal file
31
Task/String-case/360-Assembly/string-case-2.360
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
UCASE CSECT
|
||||
USING UCASE,R15
|
||||
MVC UC,PG
|
||||
MVC LC,PG
|
||||
TR UC,TABLEU TR uppercase
|
||||
TR LC,TABLEL TR lowercase
|
||||
XPRNT PG,L'PG print original
|
||||
XPRNT UC,L'UC print uc
|
||||
XPRNT LC,L'LC print lc
|
||||
BR R14
|
||||
PG DC CL9'alphaBETA'
|
||||
UC DS CL(L'PG)
|
||||
LC DS CL(L'PG)
|
||||
TABLEU DC 256AL1(*-TABLEU)
|
||||
ORG TABLEU+C'a'
|
||||
DC C'ABCDEFGHI'
|
||||
ORG TABLEU+C'j'
|
||||
DC C'JKLMNOPQR'
|
||||
ORG TABLEU+C's'
|
||||
DC C'STUVWXYZ'
|
||||
ORG
|
||||
TABLEL DC 256AL1(*-TABLEL)
|
||||
ORG TABLEL+C'A'
|
||||
DC C'abcdefghi'
|
||||
ORG TABLEL+C'J'
|
||||
DC C'jklmnopqr'
|
||||
ORG TABLEL+C'S'
|
||||
DC C'stuvwxyz'
|
||||
ORG
|
||||
YREGS
|
||||
END UCASE
|
||||
Loading…
Add table
Add a link
Reference in a new issue