Originally Posted by Dirio_49
Line 4 of pre-commands in (dummy) ChapterMenu
Code:
4 Set gprm(6) =(mov) ??
Code:
4 Set gprm(6) %=(mod) ??
4 Set gprm(6) =(mov) ??
4 Set gprm(6) %=(mod) ??
4 if ( gprm(6) > N ) then { Set gprm(6) %=(mod) N }
********** pre commands: 1 Set gprm(5) =(mov) sprm(7:Chapter number (or PGN)) 2 if ( gprm(5) == 0 ) then { Set gprm(5) =(mov) 1 } 3 Set gprm(6) =(mov) gprm(5) 4 if ( gprm(5) > N ) then { Set gprm(6) %=(mod) N } 5 if ( gprm(6) == 0 ) then { Set gprm(6) =(mov) N} 6 Set gprm(6) *=(mul) 1024 7 Set gprm(5) +=(add) N-1 8 Set gprm(5) /=(div) N 9 if ( gprm(5) == 1 ) then { LinkPGCN PGC 2 } 10 if ( gprm(5) == 2 ) then { LinkPGCN PGC 3 } 11 if ( gprm(5) == 3 ) then { LinkPGCN PGC 4 } 12 if ( gprm(5) == 4 ) then { LinkPGCN PGC 5 } 13 if ( gprm(5) == 5 ) then { LinkPGCN PGC 6 } 14 if ( gprm(5) == 6 ) then { LinkPGCN PGC 7 } 15 if ( gprm(5) == 7 ) then { LinkPGCN PGC 8 }
1 Set gprm(3) =(mov) sprm(7:Chapter number (or PGN)) 5 if ( gprm(3) == 0 ) then { Set gprm(3) =(mov) 1 } 6 Set gprm(4) =(mov) gprm(3) 7 if ( gprm(4) > N ) then { Set gprm(4) %=(mod) N } 8 if ( gprm(4) == 0 ) then { Set gprm(4) =(mov) N} 9 Set gprm(4) *=(mul) 1024 10 (SetHL_BTN) Set Highlighted Button =(mov) gprm(4) 11 Set gprm(3) +=(add) N-1 12 Set gprm(3) /=(div) N 13 if ( gprm(3) == 1 ) then { LinkCN Cell 1 } 14 if ( gprm(3) == 2 ) then { LinkCN Cell 2 } 15 if ( gprm(3) == 3 ) then { LinkCN Cell 3 } 16 if ( gprm(3) == 4 ) then { LinkCN Cell 4 } 17 if ( gprm(3) == 5 ) then { LinkCN Cell 5 } 18 if ( gprm(3) == 6 ) then { LinkCN Cell 6 } 19 if ( gprm(3) == 7 ) then { LinkCN Cell 7 }
1 Set gprm(5) =(mov) sprm(4:Title number in volume) 2 if ( gprm(5) == TN ) then { Goto line 5 } // TN is actual title number 3 Set gprm(5) =(mov) 1 4 Goto line 7 5 Set gprm(5) =(mov) sprm(7:Chapter number (or PGN)) 6 if ( gprm(5) == 0 ) then { Set gprm(5) =(mov) 1 } 7 Set gprm(5) +=(add) N-1 // N is the number of chapters per page 8 Set gprm(6) =(mov) gprm(5) 9 Set gprm(5) /=(div) N 10 Set gprm(6) %=(mod) N 11 Set gprm(6) +=(add) 1 12 Set gprm(6) *=(mul) 1024 13 if ( gprm(5) == 1 ) then { LinkPGCN PGC 2 } 14 if ( gprm(5) == 2 ) then { LinkPGCN PGC 3 }
********** pre commands: [COLOR="Blue"] 1 if ( gprm(4) == 0 ) then { Goto line 3 } [/COLOR] 2 Set gprm(5) =(mov) sprm(7:Chapter number (or PGN)) 3 if ( gprm(5) == 0 ) then { Set gprm(5) =(mov) 1 } 4 Set gprm(5) +=(add) 5 5 Set gprm(6) =(mov) gprm(5) 6 Set gprm(6) %=(mod) 6 7 Set gprm(6) +=(add) 1 8 Set gprm(6) *=(mul) 1024 9 Set gprm(5) /=(div) 6 10 if ( gprm(5) == 1 ) then { LinkPGCN PGC 2 } 11 if ( gprm(5) == 2 ) then { LinkPGCN PGC 3 } 12 if ( gprm(5) == 3 ) then { LinkPGCN PGC 4 } 13 if ( gprm(5) == 4 ) then { LinkPGCN PGC 5 } 14 if ( gprm(5) == 5 ) then { LinkPGCN PGC 6 } ********** post commands: 1 Exit ********** cell commands:
Comment