Hi,


Finally I am trying to implement the APPEND command in BC, with the resident code 
written in NASM. However, I get the following strange behaviour:



(1) I am able to GET the int21h handler, to hook it, and to JMP to the old int21h 
handler. However, if I try to CALL it (of course I PUSHF before, I try without that 
and am unsuccessful as well) then it crashes.



(2) If in the same point where I CALL the old int21h handler I do CALL the old int2Fh 
handler, then it doesn't crash. Of course, semantically it doesn't make sense, and it 
could have blown, but it doesn't. I have tried other vectors, and I only have crashes 
if I CALL the old int21h (not if I JMP into it).



Thus I would be very grateful if someone knows by chance where the problem is, or if 
you don't, I extend my request to those parts that implement getvect(), setvect() and 
Borland's int21h handler (if any).



I may try OpenWatcom and let you know, and if it doesn't I am seriously considering 
rewriting that in NASM fully.



Thanks in advance,

Aitor







----- Mensaje Original -----

Remitente: "Arkady V.Belousov" [EMAIL PROTECTED]



>Hi!

>    BTW, does anyone have TC RTL sources? Especially, I interested in

>C0.ASM, CLOCK.C, SETUPIO.*.

>


-------------------------------------------------------
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-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to