Subversion Repositories Projects

Rev

Rev 206 | Rev 220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 206 Rev 213
Line 32... Line 32...
32
    public final static int MAX_PARAMSETS=5;
32
    public final static int MAX_PARAMSETS=5;
33
    //    public final static int MAX_PARAMLENGTH=100;
33
    //    public final static int MAX_PARAMLENGTH=100;
Line 34... Line 34...
34
 
34
 
35
    public int[][] field;
35
    public int[][] field;
36
    public int[][] field_bak;
36
    public int[][] field_bak;
Line 37... Line 37...
37
    public String[] names={"Paramset 1","Paramset 2","Paramset 3","Paramset 4","Paramset 5"};
37
    public String[] names={"","","","",""};
Line 38... Line 38...
38
 
38
 
Line 67... Line 67...
67
    public void field_from_act_xor(int pos,int val)
67
    public void field_from_act_xor(int pos,int val)
68
    {
68
    {
69
        field[act_paramset][pos]^=val;
69
        field[act_paramset][pos]^=val;
70
    }
70
    }
Line -... Line 71...
-
 
71
 
-
 
72
 
-
 
73
    public void set_name(String nme)
-
 
74
    {
-
 
75
        if (nme.length()>10)
-
 
76
            nme=nme.substring(0,10);
-
 
77
        names[act_paramset]=nme;
-
 
78
        int nme_pos=0;
-
 
79
        while(nme_pos<nme.length())
-
 
80
            {
-
 
81
                field[act_paramset][name_start+nme_pos]=(byte)nme.charAt(nme_pos);
-
 
82
                nme_pos++;
-
 
83
            }
-
 
84
        field[act_paramset][name_start+nme_pos]=0;
-
 
85
    }
71
 
86
 
72
    public MKParamsParser()
87
    public MKParamsParser()
73
    {
88
    {
74
        field=new int[MAX_PARAMSETS][];
89
        field=new int[MAX_PARAMSETS][];
Line 143... Line 158...
143
        length=all_lengths[definition_pos];
158
        length=all_lengths[definition_pos];
Line 144... Line 159...
144
 
159
 
145
        field[last_parsed_paramset]=new int[length];
160
        field[last_parsed_paramset]=new int[length];
Line 146... Line 161...
146
        field_bak[last_parsed_paramset]=new int[length+2];
161
        field_bak[last_parsed_paramset]=new int[length+2];
147
 
162
 
148
        names[last_parsed_paramset]="" + (last_parsed_paramset+1) +": ";
163
        names[last_parsed_paramset]="";
149
        for ( int i=0;i<length+2;i++)
164
        for ( int i=0;i<length+2;i++)
150
            {
165
            {
151
            if (i<length)
166
            if (i<length)