Mail Archives: djgpp/1996/09/18/17:11:23
John M. Aldrich wrote:
>
> David Charlton wrote:
> Well, in as much as I understand 16 vs 32-bit assembly, the 'e*x'
> registers
> are simply 32-bit extended versions of the '*x' registers. So, %%ax is
> in
> actuality the lower 16 bits of %%eax. What you are trying to do is add
> the register to itself, which I doubt will work.
>
Actually, adding a register to itself just might work. But intel
provides no opcodes to mix 16-bit and 32-bit registers in an
instruction. Besides, even if such opcodes existed, the resulting
algorithm would not be portable.
Mihai
Check out the DOs port of svgalib at
http://wwwbacc.ift.ulaval.ca/~moisemih
- Raw text -