[fpc-devel]Calling previous INTroutine

startx startx at geocities.com
Thu Dec 21 13:55:46 CET 2000


Ingmar Tulva wrote:
> 
> On Mon, 18 Dec 2000, startx wrote:
> 
> > >         {asm
> > >                 mov ax, ds
> > >                 mov ebx, offset dsdummy
> > >                 mov cs:[ebx], ax
> > >         end;} // this part traps on "mov ax, ds"
> >
> Hello, I just happened to read it and... Can a code selector be writeable
> at all?! I just like recall that it can be either execute-only or
> read-and-execute. Or have I got something wrong (whitch is quite
> possible, I've only read PM basics but never hacked in sutch a low level)?

Clearly, I don't know whether a code selector can be written to.
Probably not. That fragment comes right from a fpc example, which was
not tested I think...

It seems to work, indeed, if you use the same displacement/offset, but
inside the data segment.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the fpc-devel mailing list