and since I am in a very good mood here is the conversion asked by the TS
EDIT ENRICO.MACLIB($CVXR) - 01.07 Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 MACRO
000002 &NAME $CVXR &R,&LOC,&LEN=8
000003 .*--------------------------------------------------------------------*
000004 .* THIS MACRO CONVERTS HEX DISPLAY STRING TO A REGISTER *
000005 .* REGISTERS 0,1,14,15 ARE DESTROYED *
000006 .*--------------------------------------------------------------------*
000007 LCLC &MNAME,&C
000008 AIF ('&LOC'(1,1) EQ '(' AND '&LOC'(K'&LOC,1) EQ ')').A1
000009 &C SETC '&LOC' .SOURCE NAME IS NOT A REGISTER
000010 AGO .A2
000011 .A1 ANOP
000012 &C SETC '0'.'&LOC'
000013 .A2 ANOP
000014 &MNAME SETC 'IHB'.'&SYSNDX'
000015 &NAME LA 1,&C .SOURCE LOW ORDER BYTE
000016 BCTR 1,0
000017 LA 0,&LEN .DO WHILE (R0 > 0 & R0 <= 8)
000018 XR 14,14 .CLEAR WORK REG1
000019 XR 15,15 .CLEAR WORK REG2
000020 &MNAME.A DS 0H
000021 LA 1,1(,1) .AROUND & AROUND
000022 XR 15,15 .CLEAR WORK REG2
000023 IC 15,0(1) .WORK ON LOW ORDER NIBBLE
000024 C 15,=F'240' .COMPARE WITH 0 X'F0'
000025 BNL &MNAME.B .IF >= IS A NUMBER
000026 S 15,=F'183' .X'C1' - 183 ==> X'0A'
000027 &MNAME.B DS 0H
000028 N 15,=F'15' .CLEAR HIGH ORDER NIBBLE
000029 SLL 15,28 .SHIFT TO LEFT SIDE OF R15
000030 SLDL 14,4 .SHIFT 4 BITS INTO R14
000031 BCT 0,&MNAME.A .ENDDO
000032 LR &R,14 .TRANSFER RESULT TO DESTINATION
000033 MEND
****** **************************** Bottom of Data ****************************
tested with
$CVXR 2,F00,LEN=1
$CVXR 2,F00,LEN=2
$CVXR 2,F00,LEN=3
$CVXR 2,F00,LEN=4
$CVXR 2,F00,LEN=5
$CVXR 2,F00,LEN=6
$CVXR 2,F00,LEN=7
$CVXR 2,F00 lenght 8 default
...
...
...
F00 DC C'01234567'
to obtain
00000000
00000001
00000012
00000123
00001234
00012345
00123456
01234567