shorter and faster alternative for $>$?_ without the "bug" and uses one less register
CODE
GOSBVL =SAVPTR
C=DAT1 A
D0=C
D1=D1+ 5
C=DAT1 A
D1=C
D0=D0+ 5
D1=D1+ 5
A=DAT0 A * A[A] = len of $1 + 5
C=DAT1 A * C[A] = len of $2 + 5
D0=D0+ 5 * point D0,D1 to string bodies
D1=D1+ 5
?C>A A * quick test of lengths
GOYES push%0
?C<A A
GOYES push%1
C=C-CON A,5 * lengths equal at this point
CSRB.F A * C[A] = num of chars
B=C A * use B[A] as counter for both
loop B=B-1 A
GOC push%1 * also handles empty strings
A=DAT0 B
C=DAT1 B
D0=D0+ 2
D1=D1+ 2
?C<A B
GOYES push%1
?C=A B
GOYES loop
push%0 LC(5) =%0 * fall through to here if not > or =
GONC exit * only reached here with CC
push%1 LC(5) =%1
exit A=C A
GOSBVL =GETPTR
D1=D1+ 10
D=D+1 A
D=D+1 A
PC=(A)
ENDCODE