From d694ce6fdb18e9c74efd56626fbc345a5810c0db Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 30 Mar 2009 13:37:09 -0700 Subject: [PATCH] memdisk: Int13FuncsCnt is a constant, not a memory location Impact: bug fix Int13FuncsCnt is a compile-time constant, not a memory location. This is a rather important distinction. --- memdisk/memdisk.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memdisk/memdisk.inc b/memdisk/memdisk.inc index 0df6c77..d53b778 100644 --- a/memdisk/memdisk.inc +++ b/memdisk/memdisk.inc @@ -151,7 +151,7 @@ Int13Start: mov bp,sp ; Point BP to the entry stack frame TRACER 'F' ; Note: AH == P_AH here - cmp ah,[Int13FuncsCnt-1] + cmp ah,Int13FuncsCnt-1 ja Invalid_jump xor al,al ; AL = 0 is standard entry condition mov di,ax -- 2.7.4