From: debs <de...@dw...> - 2002-05-31 23:25:32
|
At 17:51 30/05/2002 -0700, H. Peter Anvin wrote: OK, I took a better look at it, and the following patch needs to be applied to regs.dat: --- regs.dat.old Fri May 31 23:02:44 2002 +++ regs.dat Sat Jun 1 00:15:16 2002 @@ -8,19 +8,19 @@ # General-purpose registers al REG_AL reg8 0 -ah REG8 reg8 1 +ah REG8 reg8 4 ax REG_AX reg16 0 eax REG_EAX reg32 0 -bl REG8 reg8 6 +bl REG8 reg8 3 bh REG8 reg8 7 bx REG16 reg16 3 ebx REG32 reg32 3 -cl REG_CL reg8 2 -ch REG8 reg8 3 +cl REG_CL reg8 1 +ch REG8 reg8 5 cx REG_CX reg16 1 ecx REG_ECX reg32 1 -dl REG8 reg8 4 -dh REG8 reg8 5 +dl REG8 reg8 2 +dh REG8 reg8 6 dx REG_DX reg16 2 edx REG32 reg32 2 sp REG16 reg16 4 With this patch, it generates the correct code, but the output for ndisasm is still wrong in a few places. I'm still looking over it to see if I can work out what the problem is... Debbie Wiles de...@dw... If you try and don't succeed, cheat. Repeat until caught. Then lie. I report spam, any unsolicited emails on unrelated topics will be reported. |