Message board for the users of flat assembler.
> Main > About operating on words
abramtarasov 05 Oct 2020, 15:13
Hi mates, I'm new to FASM. I need to ask how can I swap the even letters of word "even" with the odd letters of word "odd"?
I started writing some code:
format PE GUI
bol dd "even"
movzx ecx, byte ptr bol+4
|05 Oct 2020, 15:13||
DimonSoft 05 Oct 2020, 18:08
Memory operands are written with square brackets:
Note also that operand sizes are important.
movzx cl, [bol + 4]
|05 Oct 2020, 18:08||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.