flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
chooka
Why fasm gives out a mistake on a design add eax, [edx+esi+edi]?
|
|||
![]() |
|
r22
You can check your instruction set documentation.
There's no opcode add reg, [reg1 + reg2 + reg3] So you'll have to Code: lea ecx, [esi + edi] add eax, [edx + ecx] |
|||
![]() |
|
shoorick
lea ecx, [esi + edx]
add eax, [edi + ecx] even better ![]() |
|||
![]() |
|
MazeGen
shoorick, why is your solution better than r22's?
|
|||
![]() |
|
MazeGen
Yeah, I got it.
Just one thing, [di+cx] addressing in not applicable in 16-bit mode, only [di+bx] or [di+bp]. |
|||
![]() |
|
RedGhost
MazeGen wrote: Yeah, I got it. he is correct ![]() _________________ redghost.ca |
|||
![]() |
|
shoorick
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.