copy
Tanenbaum [1987] Operating Systems
test cx,*0x0001
jz L5
rep
movb
jmp L6
L5: shr cx,*1
rep
movw
should we copy a byte or a word at a time?
jump if even
copy 1 byte at a time
byte copy
check for more bytes
word copy
copy 1 word at a time
word copy