equal
deleted
inserted
replaced
196 |
196 |
197 public: |
197 public: |
198 |
198 |
199 static const int LogInstructionSize = 2; |
199 static const int LogInstructionSize = 2; |
200 static const int InstructionSize = 1 << LogInstructionSize; |
200 static const int InstructionSize = 1 << LogInstructionSize; |
|
201 |
|
202 //---< calculate length of instruction >--- |
|
203 // We just use the values set above. |
|
204 // instruction must start at passed address |
|
205 static unsigned int instr_len(unsigned char *instr) { return InstructionSize; } |
|
206 |
|
207 //---< longest instructions >--- |
|
208 static unsigned int instr_maxlen() { return InstructionSize; } |
201 |
209 |
202 static inline AsmCondition inverse(AsmCondition cond) { |
210 static inline AsmCondition inverse(AsmCondition cond) { |
203 assert ((cond != al) && (cond != nv), "AL and NV conditions cannot be inversed"); |
211 assert ((cond != al) && (cond != nv), "AL and NV conditions cannot be inversed"); |
204 return (AsmCondition)((int)cond ^ 1); |
212 return (AsmCondition)((int)cond ^ 1); |
205 } |
213 } |