Hi!

     Let me offer some more comments and optimizations.

- in main directory appear config.bat, which similar to config.b (whereas
  there was disappear bin\config.sys).

- rdatclk.asm. Was:

______________O\_/_________________________________\_/O______________
                mov     ah,4
                int     1Ah
                jc      @RdATerror

                or      cx, cx
                jnz     @RdAT1140
                or      dx, dx
                jnz     @RdAT1140
@RdATerror:     mov     ax, 1
                pop     bp
                ret
@RdAT1140:
                clc
                mov     ah, 2
                int     1ah
                jc      @RdATerror
;               bcdSeconds = 10
;               bcdMinutes = 8
;               bcdHours = 6
;               bcdDays = 4
                mov     bx,word [bp+6]      ;bcdHours
[...other mov...]
                clc
                mov     ah,4
                int     1ah
                jc      @RdATerror
                mov     bx,word [bp+4]      ;bcdDays
                mov     word [bx],dx        ;Days
                mov     word [bx+2],cx
                sub     ax,ax
                pop     bp
                ret
_____________________________________________________________________
              O/~\                                 /~\O

Should be:

______________O\_/_________________________________\_/O______________
                mov     ah,4
                int     1Ah
                jc      @@rdATerror
                mov     ax,cx
                 or     ax,dx
                 jz     @@rdATerror
                mov     bx,word [bp+4]      ;bcdDays
                 mov    word [bx],dx        ;Days
                 mov    word [bx+2],cx
                ;clc
                mov     ah, 2
                int     1ah
                jc      @@rdATerror
                mov     bx,word [bp+6]      ;bcdHours
[...other mov...]
                xor     ax,ax
                pop     bp
                ret

@@rdATerror:    mov     ax,1
                pop     bp
                ret
_____________________________________________________________________
              O/~\                                 /~\O

In other files also may be applied similar small optmizations. For example,
rdpcclk.asm. Was:

______________O\_/_________________________________\_/O______________
                xor     ah,ah
                int     1Ah
                mov     ah,0
                add     [...],ax
                adc     [...],0
                mov     ax,dx
                mov     dx,cx
_____________________________________________________________________
              O/~\                                 /~\O

Should be:

______________O\_/_________________________________\_/O______________
                mov     ah,0
                int     1Ah
                ;mov     ah,0
                add     [...],ax
                 adc    [...],0
                xchg    ax,cx
                 xchg   ax,dx
_____________________________________________________________________
              O/~\                                 /~\O

- fat.h. Was:

        #define FAT_MAGIC16 ((unsigned)65525l)

should be:

        #define FAT_MAGIC16 65525u

Other comments in next letters.

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1ddyi.b3hwCs.YXJjaGl2
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to