Hi!

1-Мар-2004 20:03 [EMAIL PROTECTED] (Bart Oldeman) wrote to
[EMAIL PROTECTED]:

>> #pragma aux absread =  \
>>       "int 0x25"          \
>>       "sbb ax, ax"        \
>>       modify [si di bp] \
>> Isn't there should be added POPF after INT 25h/26h?

     I mean, POP (for example, "pop ax,ax").

BO> there should indeed be.

     But how SYS works without this?!

BO> In the current sys it simply happens to work since the int 25/26 is
BO> followed by "mov sp, bp".

- BP itself should be preserved somewhere (because "modify[]"). Where if not
  on stack?

- I not (yet) compile kernel by Watcom (so don't know, how WCC compiles this
  code), but in excerpt there are no "mov sp,bp" after compilation.

     BTW, in current SYS functions int2526readwrite() and fat32readwrite()
don't have defined return type. Very bad K&R C style.

BO> Strange that in your example the pragma doesn't seem to preserve bp
BO> however ... FreeDOS preserves it, don't no about others..

     "FreeDOS"?

BO> I don't think dx=ffff is a problem for floppies / <32MB for any DOS >= 3.31.

     Bug in RBIL?

BO> But I'm not a 100% sure; I know for sure that people have used sys
BO> successfully from DOS 6.22




-------------------------------------------------------
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_id56&alloc_id438&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to