Re: Disassembling a DOS COM file




Frank Kotler wrote:

> >This byte is automatically saved :) The integrated 8086
> > assembler automatically replaces LEA with a more efficient MOV.
>
> I see. How helpful!


This just clones A86 behavior, and ...

Try this:

mov si, 4h
mov bx, 3h
lea dx, [bx+si+10h]
end

this may be the best way to calculate 4+3+10

.



Relevant Pages

  • Re: modify nasm
    ... I'm working in linux and I'd like tomodifyan assembler like nasm (or ... lea r23,5 ... mov r25,r0 ...
    (alt.lang.asm)
  • Re: modify nasm
    ... I'm working in linux and I'd like to modify an assembler like nasm (or ... lea r23,5 ... mov r25,r0 ... Why not modify your compiler to output code in NASM syntax? ...
    (alt.lang.asm)
  • modify nasm
    ... I'm working in linux and I'd like to modify an assembler like nasm (or ... lea r23,5 ... mov r25,r0 ... slli r15,1 ...
    (alt.lang.asm)
  • Re: rename fils
    ... mov bx,00h ... jne infile24; ... lea dx, NO_PARMS ... int 21h ...
    (comp.lang.asm.x86)
  • Re: Shift in Parallel?
    ... mov al,bit7 ... lea eax, ... movzx eax, ... shl al,1 ...
    (comp.lang.asm.x86)