Trixter
Veteran Member
You know what I mean Here's some code from the source that could be optimized:
Could be:
Considering this is part of a macro used in an inner loop, it should be a measurable speedup. (Also, these t-state numbers don't take instruction size into account.)
Code:
mov bx,ax ;T2/2/2/2
mov ax,dx ;T2/2/2/2
xor dx,dx ;T3/3/2/2
Could be:
Code:
xchg bx,ax ; 1-byte opcode
xchg dx,ax ; 1-byte opcode
xor dx,dx
Considering this is part of a macro used in an inner loop, it should be a measurable speedup. (Also, these t-state numbers don't take instruction size into account.)