Re: Jumping into middle of instruction




Bob Masta wrote:

How does Real Mode make a difference here?
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.

Yes, in the 'flat-OS' world code and data will match anyway,
I just mentioned it because of the CS-override in my example.

Self-modifying code seems to have a bad name, but it
shouldn't. Think about how you would do self-decryption
without it!

Sure, SMC got its place for many things and it can be used to create
extremely short routines even if they are very complex,
but I wont recommend to use it on active running code whenever speed
is of concern, too many penalties (cache invalidates/TLB-flushes/..)
are to expect here.

__
wolfgang


.



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: 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)
  • Re: transferring binary files to Mac OSX: confused
    ... something with a given file is entirely a matter of the apps you have at ... My suspicion would be something in your transfer process ... but od -d gives me in both cases (mac and linux, resp) the same output. ...
    (comp.sys.mac.system)