From: apsh AT ecr DOT mu DOT oz DOT au (Alistair_P SHILTON) Newsgroups: comp.os.msdos.djgpp Subject: self-mod code and DJGPP - writable code segment? Date: 14 Mar 2000 02:13:37 GMT Organization: Computer Science, The University of Melbourne Lines: 21 Message-ID: <8ak78h$dsd$1@mulga.cs.mu.OZ.AU> NNTP-Posting-Host: gromit.ecr.mu.oz.au X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I was wondering if it is possible to link self-modifying assembler code to DJGPP. When I try, I get an error message. So I checked the documentation, which says that the code segment is not writable. Is there some way around this? I was planning to use the self-mod to make the code act differently after the first call to it (ie. setup on first call, normal operation on subsequent calls). Now I know that there are other ways of achieving the same end, but I like the concept of self-modding code. Any suggestions? Thanks Alistair