When I try to delete uncalled PGC's, PgcEdit warnes me that sprm(5) is used several times. Here's an example:
5 Set gprm(0) =(mov) sprm(5:Title number in VTS)
6 Set gprm(0) *=(mul) 256
7 Set gprm(0) |=(or) sprm(7:Chapter number (or PGN))
8 NOP
9 NOP
10 NOP
11 NOP
12 NOP
13 NOP
14 NOP
15 NOP
16 NOP
17 if ( gprm(0) >= 25957 ) then { Goto line 21 }
18 LinkPGCN PGC 43
19 NOP
20 NOP
21 NOP
22 RSM
I'm getting this far: The value of sprm(5) is stored in gprm(0). I suppose sprm(5) is the number of the title that was playing. Then this number is multiplied by 256 (why?) The OR-function, I'm not sure how to interprete that. Title number or chapter number. Then there's a check to see if the title number is 25957 or higher (25957/256 = 100 titles). If it's higher, RSM (resume) is called. If it's lower, PGC43 is called (leading to menu language setting).
I suppose PgcEdit gives a warning because some titles will get another number after the deletion of several uncalled titles.
Can someone give his vision on the code above? Thanks in advance.
5 Set gprm(0) =(mov) sprm(5:Title number in VTS)
6 Set gprm(0) *=(mul) 256
7 Set gprm(0) |=(or) sprm(7:Chapter number (or PGN))
8 NOP
9 NOP
10 NOP
11 NOP
12 NOP
13 NOP
14 NOP
15 NOP
16 NOP
17 if ( gprm(0) >= 25957 ) then { Goto line 21 }
18 LinkPGCN PGC 43
19 NOP
20 NOP
21 NOP
22 RSM
I'm getting this far: The value of sprm(5) is stored in gprm(0). I suppose sprm(5) is the number of the title that was playing. Then this number is multiplied by 256 (why?) The OR-function, I'm not sure how to interprete that. Title number or chapter number. Then there's a check to see if the title number is 25957 or higher (25957/256 = 100 titles). If it's higher, RSM (resume) is called. If it's lower, PGC43 is called (leading to menu language setting).
I suppose PgcEdit gives a warning because some titles will get another number after the deletion of several uncalled titles.
Can someone give his vision on the code above? Thanks in advance.
Comment