summaryrefslogtreecommitdiff
path: root/disasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'disasm.c')
-rw-r--r--disasm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disasm.c b/disasm.c
index 8ad263b..705c57c 100644
--- a/disasm.c
+++ b/disasm.c
@@ -71,6 +71,8 @@ static int whichreg(long regflags, int regval) {
return R_CR4;
if (!(FPU0 & ~regflags))
return R_ST0;
+ if (!(REG_CS & ~regflags))
+ return R_CS;
if (!((REGMEM|BITS8) & ~regflags))
return reg8[regval];
if (!((REGMEM|BITS16) & ~regflags))