mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 20:10:44 +00:00
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>