Re: assembly language and reverse engineering




"Herbert Kleebauer" <klee@xxxxxxxxx> wrote in message
news:4753C1D8.EC69E81E@xxxxxxxxxxxx
cr88192 wrote:

one would be better off learning assembly on linux than they would be on
DOS.
anymore, about the only real use for real mode is for getting into
protected
mode...

Why does this myth never die? Please explain what you can learn
in Windows assembly programming what you can't learn when doing
assembly programming in DOS (and we are not speaking about the
Windows API but about assembly programming).

the point is not what you can't learn, but what you have to learn in the
process.

dos would force you to learn more than windows or linux (for example, one
has to learn about segment registers, ...).

learning real mode programming, would take longer, and teach things that,
unless one is doing OS coding, are not terribly useful...


Assembly programming
means to generate an instruction stream for the CPU and not for
the OS. And the CPU is the very same whether you use Windows, Linux
or DOS as an OS.

but, real mode is real mode, and pmode is pmode.
the way we use the CPU is different, and so is the mod/rm structure.

learning RM first could leave one thinking they can use only SI, DI, BX, or
BP in memory references...

or, at least until they come to understand things like:
mov eax, [ecx+edx*4]

....



.



Relevant Pages

  • Re: assembly language and reverse engineering
    ... about the only real use for real mode is for getting into protected ... in Windows assembly programming what you can't learn when doing ... Windows API but about assembly programming). ... And the CPU is the very same whether you use Windows, ...
    (alt.lang.asm)
  • Re: large HD partition: who is right?
    ... Regarding the "utility that attempts to access the disk using the BIOS's ... Do 3rd party tools like those disk defrag software for windows come under ... The BIOS provides only a real mode driver. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines
    ... goes to real-mode, runs your app, and then restarts Windows. ... Not what I call "real dos", ... Flat Real Mode, IIRC). ...
    (comp.lang.asm.x86)
  • Re: Showing an ASCII G to 0xb8002 Using 32bit Flat Real (or Unreal) Mode
    ... inklings of the NT/2K/XP boot process on the screen until the time the computer reboots or shuts down, your computer never runs real mode. ... DOS boxes and 16-bit apps all run in V86 mode. ... Windows display drivers call into the VESA BIOS for mode switching. ... BIOS code executes as normal, in real-time, but in V86 mode. ...
    (comp.lang.asm.x86)
  • Re: Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines
    ... "DOS box" you get when you click on the MS-DOS option. ... goes to real-mode, runs your app, and then restarts Windows. ... for DOS is very picky about real mode, ... Scope, Spectrum, Spectrogram, FREE Signal Generator ...
    (comp.lang.asm.x86)