Hi!

______________O\_/_________________________________\_/O______________
; int absread(int DosDrive, int nsects, int foo, void *diskReadPacket);
; #pragma aux absread =  \
;       "int 0x25"          \
;       "sbb ax, ax"        \
;       parm [ax] [cx] [dx] [bx] \
;       modify [si di bp] \
;       value [ax];
;
; int f () {
f_:
    push        bx
    push        cx
    push        dx
    push        si
    push        di
    mov         dx,0ffffH
    mov         ax,41H

;   return absread ('A', -1, -1, 0) + 1;
    xor         bx,bx
    mov         cx,dx
    int         25H
    sbb         ax,ax
    inc         ax

; }
    pop         di
    pop         si
    pop         dx
    pop         cx
    pop         bx
    ret
_____________________________________________________________________
              O/~\                                 /~\O

Definition for absread() I copy from current SYS. Is this bug (no POP after
INT)? Why BP isn't preserved?




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to