flat assembler
Message board for the users of flat assembler.
Index
> Main > Adding? |
Author |
|
adroit 03 Jun 2010, 16:09
When adding in assembly, are the following similar:
Code: mov ah,4 mov al,5 add ah,al ; is it the same as?: mov ah,[ah+al] _________________ meshnix |
|||
03 Jun 2010, 16:09 |
|
edemko 03 Jun 2010, 16:12
2nd looks to be wrong at all so it is not the same, what exactly do you want
|
|||
03 Jun 2010, 16:12 |
|
LocoDelAssembly 03 Jun 2010, 16:17
Code: mov bx, 4 mov si, 5 add bx, si ; Is the same as: lea bx, [bx+si] |
|||
03 Jun 2010, 16:17 |
|
revolution 03 Jun 2010, 16:23
LocoDelAssembly wrote:
|
|||
03 Jun 2010, 16:23 |
|
adroit 03 Jun 2010, 16:46
edemko wrote: 2nd looks to be wrong at all so it is not the same, what exactly do you want Yea, I tried to compile; it didn't work. I just want to know if the add mnemonic (example: mov ah,8 / add ah,8) is the same as using + operator (example: mov ah,[9+6]. LocoDelAssembly wrote:
lea loads the actual memory location (calculation) of bx+si, right? |
|||
03 Jun 2010, 16:46 |
|
edemko 03 Jun 2010, 16:56
|
|||
03 Jun 2010, 16:56 |
|
adroit 03 Jun 2010, 16:58
Yea, I should read a few chapters before making a fool of myself
|
|||
03 Jun 2010, 16:58 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.