This is a first take at making x86 string intrinsics available for real mode programs. There is one difference from the real mode implementation. When cx has the value 0, the memcpy and memcmp intrinsics should receive a value of 0x10000, instead of 0. I've solved this by injecting a cx == 0 ? 0x10000 : cx for the size. What do you think of the results? If this is too ugly I can abandon the effort.
This is a first take at making x86 string intrinsics available for real mode programs. There is one difference from the real mode implementation. When
cx
has the value 0, thememcpy
andmemcmp
intrinsics should receive a value of 0x10000, instead of 0. I've solved this by injecting acx == 0 ? 0x10000 : cx
for thesize
. What do you think of the results? If this is too ugly I can abandon the effort.