From bd15c11ee187bc90c6f4e6ca91fe76a3bc11a560 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Sun, 7 Jun 2009 21:34:59 +0000 Subject: [PATCH] Fix rom checksum for rom size of 65536 bytes. - Sebastian --- bochs/bios/rombios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bochs/bios/rombios.c b/bochs/bios/rombios.c index 0b42fa4f8..da9e85058 100644 --- a/bochs/bios/rombios.c +++ b/bochs/bios/rombios.c @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: rombios.c,v 1.232 2009-05-10 08:25:58 vruppert Exp $ +// $Id: rombios.c,v 1.233 2009-06-07 21:34:59 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2002 MandrakeSoft S.A. @@ -937,7 +937,7 @@ Bit16u cdrom_boot(); #endif // BX_ELTORITO_BOOT -static char bios_cvs_version_string[] = "$Revision: 1.232 $ $Date: 2009-05-10 08:25:58 $"; +static char bios_cvs_version_string[] = "$Revision: 1.233 $ $Date: 2009-06-07 21:34:59 $"; #define BIOS_COPYRIGHT_STRING "(c) 2002 MandrakeSoft S.A. Written by Kevin Lawton & the Bochs team." @@ -10259,6 +10259,7 @@ rom_checksum: shl cx, #1 jnc checksum_loop + jz checksum_loop xchg dx, cx dec cx