subroutine l1xnew(a,d) c john belcher 12/26/2022 c given a character * 1 a with 1 byte we store this byte c in an integer*4 in the first byte of the integer. c c we do this by equivalencing the integer*4 to a array of char *1 c with dimension 4, and put a in the first position of that b array, c which will be the first byte of the integer*4 c this is a version of l1x.f that takes into account the big endian c little endian problem in moving from solaris to centos character*1 a, b(4) integer c,d equivalence (c,b(1)) data c /0/ c = 0 b(1) = a d = c c the statement above in the old l1x.f stored a in b(4), not b(1) c write(6,9999) a,c 9999 format('l1xnew a c ',2z10) return end