flat assembler
Message board for the users of flat assembler.
Index
> DOS > Referencing arithmetic operation as memory location |
Author |
|
revolution 14 May 2020, 07:18
Memory-to-memory moves are only supported with push/pop and movs
Code: push [bx+offset] ;[bx] to [sp] movsb ; [si] to [di] |
|||
14 May 2020, 07:18 |
|
Ali.Z 14 May 2020, 07:24
its possible, but not in the form you posted.
you will have to use string instructions such as MOVSB/MOVSW, but you will have to initialize both SI and DI registers first. using movs? example: Code: lea si,[bx+8000h] lea di,[bx+1000h] movsb ; movsw to move WORD sized data (16-bits) _________________ Asm For Wise Humans |
|||
14 May 2020, 07:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.