flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
chooka 14 Apr 2006, 05:32
Why fasm gives out a mistake on a design add eax, [edx+esi+edi]?
|
|||
![]() |
|
shoorick 14 Apr 2006, 07:00
lea ecx, [esi + edx]
add eax, [edi + ecx] even better ![]() |
|||
![]() |
|
MazeGen 14 Apr 2006, 11:45
shoorick, why is your solution better than r22's?
|
|||
![]() |
|
shoorick 14 Apr 2006, 12:18
in true there is no difference in bytes (do not know about clocks), but usually i try to approach to shema:
addr = [indexing register]+[common register]+[offset] for example, in 16-bit mode this is possible: add ax,[di + cx] and this no: add ax,[dx + cx] so, it is just a rule |
|||
![]() |
|
MazeGen 14 Apr 2006, 16:51
Yeah, I got it.
Just one thing, [di+cx] addressing in not applicable in 16-bit mode, only [di+bx] or [di+bp]. |
|||
![]() |
|
RedGhost 14 Apr 2006, 19:58
MazeGen wrote: Yeah, I got it. he is correct ![]() _________________ redghost.ca |
|||
![]() |
|
shoorick 15 Apr 2006, 05:07
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.