Good deal. I replaced the following 104 bytes of machine code...
IF RECBUF+108,(ON,TM),B'11000000'
MVI CWORK,C'4'
ELSE
IF RECBUF+108,(ON,TM),B'10000000'
MVI CWORK,C'3'
ELSE
IF RECBUF+108,(ON,TM),B'01000000'
MVI CWORK,C'2'
ELSE
MVI CWORK,C'1'
ENDIF
ENDIF
ENDIF
IF RECBUF+108,(ON,TM),B'00110000'
MVI CWORK+2,C'4'
ELSE
IF RECBUF+108,(ON,TM),B'00100000'
MVI CWORK+2,C'3'
ELSE
IF RECBUF+108,(ON,TM),B'00010000'
MVI CWORK+2,C'2'
ELSE
MVI CWORK+2,C'1'
ENDIF
ENDIF
ENDIF
...with the following 38 bytes of machine code. Thanks.
XR R1,R1 CLEAR WORK REGISTER
IC R1,RECBUF+108 GET ENCODED BYTE
SRL R1,6 SHIFT OUT RIGHTMOST BITS
AHI R1,C'1' YIELD '1' TO '4' VALUE
STC R1,CWORK STORE THAT
IC R1,RECBUF+108 GET ENCODED BYTE, AGAIN
SLL R1,24+2 SHIFT OUT LEFTMOST BITS
SRL R1,24+6 SHIFT INTO POSITION
AHI R1,C'1' YIELD '1' TO '4' VALUE
STC R1,CWORK+2 STORE THAT
Sincerely,
Dave Clark
--
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************