Mail Archives: djgpp/1998/08/30/12:01:56
On Sat, 29 Aug 1998, Michel Gallant wrote:
> As far as I know, in protected mode, code in a data segment simply
> will not excecute. That's one of the was protected mode protects
> programs and data- by not allowing confusion between segments.
That's exactly the reason why DJGPP sets both CS and DS to have the
same base address and the same limit. This way, you can define an
array with byte codes and then reference it via CS as executable
code.
- Raw text -