Re: Jumping into middle of instruction



On Feb 29, 7:08 am, NoS...@xxxxxxxxxxx (Bob Masta) wrote:
You can't direct write to CodeSeg in protected mode.

That may be true in some sense, but not as a practical
matter... it is easy to create apps with combined code+data
that allow you to write anywhere in your own program space.
I use a .data? (BSS) section for uninitialized data and a
..code section for everything else.  The linker needs to have
/SECTION:.text,ERW  to handle this properly.


Do remember that the big x86 OS's all use the page attributes to
prevent code from executing from data pages, and to prevent
modification of code pages. There is usually an OS API that can
modify that (for example, JIT compilers clearly need to be able to
generate code on the fly), but in general these days, you cannot self
modify code or generate new code without asking the OS's permission
first.

.



Relevant Pages

  • Re: Great SWT Program
    ... If we were discussing an IDE it would be another matter, ... proper GUI editor instead? ... I knew some MS-DOS text-mode apps could use the mouse, ...
    (comp.lang.java.programmer)
  • Re: The OS doesnt matter... then what?
    ... both the Mac OS and Linux. ... I can't see web apps _in general_ as ever being a serious threat to desktop ... no matter what the OS. ... lowest common featureset and can't make use of underlying OS features. ...
    (uk.comp.sys.mac)
  • Re: Jumping into middle of instruction
    ... You can't direct write to CodeSeg in protected mode. ... matter... ... it is easy to create apps with combined code+data ...
    (comp.lang.asm.x86)
  • Re: Request Opinions on a typical Java development environment (non-Windows)
    ... >>Again, it does not matter. ... Does not Java have to decide on a gui? ... > How can you have different apps using a different gui manager? ... those that link against kde running under gnome OR kde OR under no ...
    (comp.lang.java.softwaretools)
  • Re: The OS doesnt matter... then what?
    ... I can't see web apps _in general_ as ever being a serious threat to desktop ... no matter what the OS. ... lowest common featureset and can't make use of underlying OS features. ... still find the .Mac method to be the best for my purposes. ...
    (uk.comp.sys.mac)