subroutine istnew(a,d) c john belcher 3/10/2018 c given a character * 1 a with 1 byte we store this byte c in an integer*4, putting "a" twice in the last two bytes of c the integer*4 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 third position of that "b" array, c and also in the fourth position of that b array c which will be the first two bytes of the integer*4 c character*1 a, b(4) integer c,d equivalence (c,b(1)) data c /0/ c = 0 b(3) = a b(4) = a d = c c write(6,9999) a,d 9999 format('istnew a d ',2z10) return end