Displaying 2 results from an estimated 2 matches for "int13start".
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...FT, safe hook]
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@@ -117,13 +117,33 @@
section .text
; These pointers are used by the installer and
; must be first in the binary
-Pointers: dw Int13Start
+Pointers: dw SafeHook
dw Int15Start
dw PatchArea
dw TotalSize
dw IretPtr
IretPtr equ Int13Start.iret
+SafeHook:
+ jmp Int13Start
+ db 0 ; Pad to three bytes
+ db ''$INT13SF'' ; Signature for "safe hook"
+ db ''MEMDISK '' ; Vendor ID...
2009 Mar 22
1
[PATCH] [memdisk] Additional comments in memdisk.inc and postprocess.pl
...nc b/memdisk/memdisk.inc
index 1e2076b..0df6c77 100644
--- a/memdisk/memdisk.inc
+++ b/memdisk/memdisk.inc
@@ -36,6 +36,7 @@
%endif ; DEBUG_TRACERS
+; Flags we test our configuration against
%define CONFIG_READONLY 0x01
%define CONFIG_RAW 0x02
%define CONFIG_SAFEINT 0x04
@@ -104,6 +105,8 @@ Int13Start:
xor dl,[cs:DriveNo]
pop dx
js .nomatch ; If SF=0, we have a class match
here
+ ; 0x00 the sign bit for FD
+ ; 0x80 the sign bit for HD
jz .our_drive ; If ZF=1, we have an exact
match
cmp dl,[cs:DriveNo]
jb .nomatch ; Drive < Our drive
@@ -115,13 +118,13 @@ Int13Star...