Hi!

     Because some peoples complain that my patches too big, I split patch
for floppy.asm by some consequtive part. Part one:

- bugfix: when fl_lba_ReadWrite() converted to ASMPASCAL (and `ret' replaced
  by `ret 8'), "ret_AH" was remained as label for this tail (whereas other
  functions use plain `ret'); now ret_AH moved into another function.

--- Begin Message ---
diff -ruNp old/drivers/floppy.asm new/drivers/floppy.asm
--- old/drivers/floppy.asm      2004-04-09 06:11:44.000000000 +0000
+++ new/drivers/floppy.asm      2004-06-08 20:00:48.000000000 +0000
@@ -182,7 +182,6 @@ FL_LBA_READWRITE:
                pop     ds
 
                pop     bp
-ret_AH:
                mov     al,ah           ; place any error code into al
                mov     ah,0            ; zero out ah           
                ret     8
@@ -204,7 +203,10 @@ FL_SETDISKTYPE:
                push    bx              ; restore stack
                 mov     ah,17h
                 int     13h
-               jmp     short ret_AH
+ret_AH:
+               mov     al,ah           ; place error code into al
+               mov     ah,0
+               ret
                         
 ;
 ; COUNT fl_setmediatype (WORD drive, WORD tracks, WORD sectors);

--- End Message ---

Reply via email to