flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
adroit
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 |
|||
![]() |
|
edemko
2nd looks to be wrong at all so it is not the same, what exactly do you want
|
|||
![]() |
|
LocoDelAssembly
Code: mov bx, 4 mov si, 5 add bx, si ; Is the same as: lea bx, [bx+si] |
|||
![]() |
|
revolution
LocoDelAssembly wrote:
|
|||
![]() |
|
adroit
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? |
|||
![]() |
|
edemko
|
|||
![]() |
|
adroit
Yea, I should read a few chapters before making a fool of myself
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.