Title [lDebug] Disassembling MOV with CR or DR should always treat other operand as MOD=3
AuthorE. C. Masloch
Created2026-06-06 17:31:40 +0200 Jun Sat
State closed

The mov instruction with a CR, DR, or TR register operand should always treat the other operand as a register, like if MOD=3 (11b) was encoded.

Reference: https://stackoverflow.com/questions/79870726/does-move-to-from-control-debug-registers-ignore-the-mod-field

E. C. Masloch on 2026-06-06 17:32:55 +0200 Jun Sat

Fixed by hg 6114c3e73628 on 2026-01-21. This makes use of a new OPX type, OPX_MOD_FORCE_3. The OP_R_MOD type disallows assembling a memory operand already.