stop storing raw modrm value, as it isn't used any more. Should save an instruction on each get_modrm call.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4208
This commit is contained in:
parent
ea4dd721b5
commit
5c8e9264d1
1 changed files with 5 additions and 5 deletions
|
@ -120,7 +120,7 @@ static struct DynDecode {
|
|||
|
||||
// modrm state of the current instruction (if used)
|
||||
struct {
|
||||
Bitu val;
|
||||
// Bitu val;
|
||||
Bitu mod;
|
||||
Bitu rm;
|
||||
Bitu reg;
|
||||
|
@ -381,10 +381,10 @@ static bool decode_fetchd_imm(Bitu & val) {
|
|||
|
||||
// modrm decoding helper
|
||||
static void INLINE dyn_get_modrm(void) {
|
||||
decode.modrm.val=decode_fetchb();
|
||||
decode.modrm.mod=(decode.modrm.val >> 6) & 3;
|
||||
decode.modrm.reg=(decode.modrm.val >> 3) & 7;
|
||||
decode.modrm.rm=(decode.modrm.val & 7);
|
||||
Bitu val=decode_fetchb();
|
||||
decode.modrm.mod=(val >> 6) & 3;
|
||||
decode.modrm.reg=(val >> 3) & 7;
|
||||
decode.modrm.rm=(val & 7);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue