flat assembler
Message board for the users of flat assembler.
Index
> DOS > Is popping into variable is possible? |
Author |
|
Picnic 23 Oct 2012, 14:01
Hi ght2142,
Notice that in fasm Code: push a ; pushes a variable address on stack. push [a] ; pushes a variable contents on stack. pop [a] ; pops value from stack in variable a. Read more about in manual, section 2.1.1 Data movement instructions |
|||
23 Oct 2012, 14:01 |
|
ejamesr 24 Oct 2012, 16:28
When you pop a register, the last item on the stack is popped. In your example above, after popping, a will have the original value of b, and b will have the original value of a. Is that what you wanted to do?
|
|||
24 Oct 2012, 16:28 |
|
ght2142 27 Oct 2012, 12:02
Ok, my problem is all solved. Thanks to PICNIC. U the man!
|
|||
27 Oct 2012, 12:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.