Displaying 1 result from an estimated 1 matches for "swap_int13".
2002 Jul 11
1
help with porting patch from 1.62 to 1.75
...mov ax,[413h] ; Memory size in kBytes
+ dec ax ; reserve 1 kByte
+ mov [413h],ax
+ mov cl,6 ; convert to paragraphs
+ shl ax,cl
+ mov es,ax
+
+ mov ax,[4ch] ; real INT13 offset
+ mov [es:real_int13],ax
+ mov ax,[4eh] ; real INT13 segment
+ mov [es:real_int13+2],ax
+
+ mov si,swap_int13 ; copy our INT13 handler
+ xor di,di
+ mov cx,swap_int13_len
+ repz movsb
+
+ xor ax,ax ; install our INT 13 handler
+ mov [4ch],ax ; offset
+ mov [4eh],es ; segment
+
+ pop es
+
+ call crlf
+
+ mov byte [bsDriveNumber],80h
+
+ jmp into_bootsec
+
+swap_int13:
+ ; swap drives
+ cm...