flat assembler
Message board for the users of flat assembler.
Index
> Windows > Push address for scanf |
Author |
|
revolution 10 Jul 2022, 18:23
Code: arr rb LENGTH ; you probably want to reserve bytes, not words push arr ; use the address directly |
|||
10 Jul 2022, 18:23 |
|
AsmGuru62 10 Jul 2022, 21:19
Also, call to [scanf] will most likely destroy ECX register and LOOP instruction will continue for more times, or less, than needed.
|
|||
10 Jul 2022, 21:19 |
|
revolution 10 Jul 2022, 21:59
I missed that you are using di as an index. You can do this:
Code: mov di, arr push di ;.... add di, ELEMENT ;... |
|||
10 Jul 2022, 21:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.