From b5b679c4e2910ad17b14ff44c2fd63f224148457 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Wed, 24 Sep 2025 00:38:34 +0200 Subject: [PATCH] Fix crc16 --- crc16.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crc16.c b/crc16.c index 2e1e6e3..02453ae 100644 --- a/crc16.c +++ b/crc16.c @@ -24,10 +24,11 @@ asm ( "main: \n" " push %bp \n" " mov %sp, %bp \n" - " mov 6(%bp), %si \n" + " mov 8(%bp), %si \n" " push (%si) \n" " call crc16 \n" - " mov 8(%bp), %di \n" + " add $0x2, %sp \n" + " mov 6(%bp), %di \n" " mov %ax, (%di) \n" " pop %bp \n" " lret $4 \n"