forked from z390development/z390
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathP6PJF1.MLC
20 lines (19 loc) · 913 Bytes
/
P6PJF1.MLC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
P6PJF1 ZMFACC CODE,START,NAME='Peter J Farley'
IC 1,BYTE Get the byte to translate
LA 2,OUTBIT Output location
LA 3,8 Number of bits
LOOP SLA 1,1 Slide left 1 bit
STCM 1,2,0(2) Save 3rd byte in reg
NI 0(2),1 Turn off all but right bit
LA 2,1(2) Next out byte
BCT 3,LOOP Loop 8 times
OC OUTBIT,ZONES Trans to readable
ZMFACC CODE,END
ZONES DC C'00000000'
ZMFACC INPUT,START
BYTE DC B'10100101'
ZMFACC INPUT,END
ZMFACC OUTPUT,START
OUTBIT DC CL8' '
ZMFACC OUTPUT,END
END