On Mon, 1 Mar 2004, Arkady V.Belousov wrote:

> ______________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];
> _____________________________________________________________________
>               O/~\                                 /~\O
>
> Isn't there should be added POPF after INT 25h/26h?

there should indeed be.

In the current sys it simply happens to work since the int 25/26 is
followed by "mov sp, bp". Strange that in your example the pragma doesn't
seem to preserve bp however ... FreeDOS preserves it, don't no about
others..

I don't think dx=ffff is a problem for floppies / <32MB for any DOS >=
3.31. But I'm not a 100% sure; I know for sure that people have used sys
successfully from DOS 6.22

Bart



-------------------------------------------------------
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