Re: DRL updated!

Michal Tyc <[email protected]>
Newsgroups gmane.os.freedos.devel,gmane.spam.detected
Organization BTTR Software
Message-ID <[email protected]>
Hi!

On Wed, 23 Oct 2002 13:58:53 +0400 (MSD), Arkady V.Belousov wrote:

> 1. INT instruction not allows an non-constant argument, so you can't call
> interrupt with variable number else than through manually prepared code
> (or else you should make 256 times of INT 0, INT 1, etc and then make
> jump by calculated offset).

Or simulate an INT with PUSHF/CALL (may not work if the V86 monitor needs
to trace this interrupt call).

> 2. Selfmodifying code is _not_ incompatible - at least, while you say about
> "real mode".

Self-modifying code may work perfectly in many situations, even allowing
you to reduce noticeably code size.
However (as _you_ know for sure, but I feel it should be stressed):
1. It is not re-entrant. Try to forget about it and find the source
   of all the strange errors that arise ;-)
2. It is not ROMmable.
3. Sometimes it's nice to have a piece of code than can execute in both
   real and 16-bit protected mode. It's hard with self-modifying.

Greetings,

Michal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.