if ( g5 eq 0 ) g5 = 1;
        if ( g6 eq 0 ) g6 = 1; button = g6 * 1024;
        if (g8==0) g7=0;
        if (g8==1)
          if ( g7 eq 1 ) jump titleset 1 menu;
          if ( g7 eq 2 ) jump titleset 2 menu;
          if ( g7 eq 3 ) jump titleset 3 menu;
        
jump cell 1;
             button = g5 * 1024;
             if (g8==0) { g7=0; g4=0; }
             if (g7==1) { g4=1; jump title 1 chapter 1; }
        
jump cell 1;
g8=0;
g8=1; if (g4==1) jump title 2 chapter 1; call menu;
g8=0;
g8=1; if (g4==1) jump title 3 chapter 1; call menu;
g8=0;
{ if (g7>0) { g8=1; if (g7>=3) { g7=0; g4=0; } else g7=2; call vmgm menu entry title; } } call menu;
             button = g5 * 1024;
             if (g8==0) { g7=0; g4=0; }
             if (g7==2) { g4=1; jump title 1 chapter 1; }
        
jump cell 1;
g8=0;
g8=1; if (g4==1) jump title 2 chapter 1; call menu;
g8=0;
g8=1; if (g4==1) jump title 3 chapter 1; call menu;
g8=0;
{ if (g7>0) { g8=1; if (g7>=3) { g7=0; g4=0; } else g7=3; call vmgm menu entry title; } } call menu;
             button = g5 * 1024;
             if (g8==0) { g7=0; g4=0; }
             if (g7==3) { g4=1; jump title 1 chapter 1; }
        
jump cell 1;
g8=0;
g8=1; if (g4==1) jump title 2 chapter 1; call menu;
g8=0;
g8=1; if (g4==1) jump title 3 chapter 1; call menu;
g8=0;
{ if (g7>0) { g8=1; if (g7>=3) { g7=0; g4=0; } else g7=4; call vmgm menu entry title; } } call menu;