From 9bd84390d09309caeff94b4bf8767f7c16f34f23 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Wed, 24 Sep 2025 00:45:56 +0200 Subject: [PATCH] crc16: read data from the right segment --- crc16.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc16.s b/crc16.s index 000465d..16f446d 100644 --- a/crc16.s +++ b/crc16.s @@ -31,7 +31,7 @@ crc16: popw %bp ret .L5: - movb (%bx), %dl + movb %cs:(%bx), %dl movb $8, %cl shlw %cl, %dx xorw %dx, %ax