and the maths eqivalant of this

lookup gl_i,[24,32,40,24,32,40,24,32,40,24,32,40],gl_y ' menu row lines 8,24,32,40 for gl_y

gl_y = 24+ (gl_i//3 *8) ????