September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
26
Task/Logical-operations/360-Assembly/logical-operations.360
Normal file
26
Task/Logical-operations/360-Assembly/logical-operations.360
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
* Logical operations 04/04/2017
|
||||
LOGICAL CSECT
|
||||
USING LOGICAL,R15
|
||||
* -- C=A and B
|
||||
MVC C,A C=A
|
||||
NC C,B C=A and B
|
||||
* -- C=A or B
|
||||
MVC C,A C=A
|
||||
OC C,B C=A or B
|
||||
* -- C=not A
|
||||
MVC C,A C=A
|
||||
XI C,X'01' C=not A
|
||||
* -- if C then goto e
|
||||
CLI C,X'01' if C
|
||||
BE E then goto e
|
||||
XPRNT =C'FALSE',5
|
||||
*
|
||||
E BR R14
|
||||
TRUE DC X'01'
|
||||
FALSE DC X'00'
|
||||
A DC X'01'
|
||||
B DC X'00'
|
||||
C DS X
|
||||
PG DC CL80' '
|
||||
YREGS
|
||||
END LOGICAL
|
||||
Loading…
Add table
Add a link
Reference in a new issue