Files
betterxen/tests/x86_generator
zachdoxsee 314d1f5874 loader: add MOVS, STOS, REP and the direction flag (#129)
Declare MOVS and STOS for 8- to 64-bit elements through a new string
encoding that accepts REP, and add the direction flag with CLD and STD.

A REP form runs one element per step and stays on the instruction until
RCX is zero. Every element therefore counts against the step budget, a
repeat can stop part-way and resume, and a fault keeps the elements
already done. FS and GS apply to the MOVS source only. Both engines use
the shared semantics; there is no bulk-copy path.

Fourteen SDM-derived cases already in cpu_known_answers.rs move from
refused to verified, and ten more are now refused at their second
instruction because CLD runs. tests/cpu_rep.rs adds a byte-array model
over every form, direction and count.

Signed-off-by: zachdoxsee <zachdoxsee36@gmail.com>
2026-11-24 17:14:46 +01:00
..