[fpc-pascal]Debuging in Freepascal

Pierre Muller pierre at idefix.wisa.be
Tue Sep 26 23:38:19 CEST 2000

At 19:31 26/09/00 +0200, you wrote:
>Subject: Re: [fpc-pascal]Debuging in Freepascal
>>Pierre Muller schrieb:
>>> What version of Free Pascal are you using ??
>>The author of this async unit uses objects for the communication so i donĀ“t
>>know whether the unit is still working with other switches.
>>Is there another way to use this selector without crashes ?
>You could try to store the cs register into ds and es since with go32v2 cs =
>ds = es. So little code like
>movw %cs, %ax
>movw %ax, %ds
>movw %ax, %es
Are you sure this works ?

  cs and ds selector have the same base address
(the base address is the offset added to the address to get
a linear address) but the permission are different !

  I think that normally you are not allowed to write with the cs selector !

More information about the fpc-pascal mailing list