equal
deleted
inserted
replaced
627 |
627 |
628 public: |
628 public: |
629 |
629 |
630 enum { instruction_size = 4 }; |
630 enum { instruction_size = 4 }; |
631 |
631 |
|
632 //---< calculate length of instruction >--- |
|
633 // We just use the values set above. |
|
634 // instruction must start at passed address |
|
635 static unsigned int instr_len(unsigned char *instr) { return instruction_size; } |
|
636 |
|
637 //---< longest instructions >--- |
|
638 static unsigned int instr_maxlen() { return instruction_size; } |
|
639 |
632 Address adjust(Register base, int offset, bool preIncrement) { |
640 Address adjust(Register base, int offset, bool preIncrement) { |
633 if (preIncrement) |
641 if (preIncrement) |
634 return Address(Pre(base, offset)); |
642 return Address(Pre(base, offset)); |
635 else |
643 else |
636 return Address(Post(base, offset)); |
644 return Address(Post(base, offset)); |