From fb25b628d61f5deb4fa31c69eede1a0ac597924d Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 23 Apr 1990 12:35:41 +0000 Subject: [PATCH] yet another bug fix in instructions handling special registers --- mach/i386/as/mach4.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mach/i386/as/mach4.c b/mach/i386/as/mach4.c index 7e045805a..aa3373baf 100644 --- a/mach/i386/as/mach4.c +++ b/mach/i386/as/mach4.c @@ -144,29 +144,29 @@ oper : NOOP_1 { if ($1 != 1 || !(reg_1 & IS_R32)) serror("syntax error"); - emit1(0xF); emit1(042); emit1(0200|($4<<3)|(reg_1&07));} + emit1(0xF); emit1(0x20); emit1(0300|($4<<3)|(reg_1&07));} | MOV ea_1 ',' RSYSDR { if ($1 != 1 || !(reg_1 & IS_R32)) serror("syntax error"); - emit1(0xF); emit1(043); emit1(0200|($4<<3)|(reg_1&07));} + emit1(0xF); emit1(0x21); emit1(0300|($4<<3)|(reg_1&07));} | MOV ea_1 ',' RSYSTR { if ($1 != 1 || !(reg_1 & IS_R32)) serror("syntax error"); - emit1(0xF); emit1(046); emit1(0200|($4<<3)|(reg_1&07));} + emit1(0xF); emit1(0x24); emit1(0300|($4<<3)|(reg_1&07));} | MOV RSYSCR ',' R32 { if ($1 != 1) serror("syntax error"); - emit1(0xF); emit1(040); emit1(0200|($4<<3)|$2);} + emit1(0xF); emit1(0x22); emit1(0300|($2<<3)|$4);} | MOV RSYSDR ',' R32 { if ($1 != 1) serror("syntax error"); - emit1(0xF); emit1(041); emit1(0200|($4<<3)|$2);} + emit1(0xF); emit1(0x23); emit1(0300|($2<<3)|$4);} | MOV RSYSTR ',' R32 { if ($1 != 1) serror("syntax error"); - emit1(0xF); emit1(044); emit1(0200|($4<<3)|$2);} + emit1(0xF); emit1(0x26); emit1(0300|($2<<3)|$4);} /* Intel 80[23]87 coprocessor instructions */ | FNOOP { emit1($1); emit1($1>>8);}