flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Reverse for irpv apply for all. |
Author |
|
revolution 08 Apr 2023, 13:26
Code: kvall equ 1 kvall equ 10 kvall equ 5 irpv v,kvall {reverse mov ebx, v forward mov edx, v ; I am expected no reverse for edx, but reverse too } |
|||
08 Apr 2023, 13:26 |
|
Roman 08 Apr 2023, 13:28
Strang result.
First all reversed ebx than all forward edx ! Code: ;maybe sometimes its cool, but I expected another asm code. mov ebx,5 mov ebx,10 mov ebx,1 mov edx,1 mov edx,10 mov edx,5 ;I expected this asm code. mov ebx,5 mov edx,1 mov ebx,10 mov edx,10 mov ebx,1 mov edx,5 Interesting this Code: irpv v,kvall {reverse mov ebx, v common mov al,4 ;put only one ! forward mov edx, v } ;out this asm code mov ebx,5 mov ebx,10 mov ebx,1 mov al,4 mov edx,1 mov edx,10 mov edx,5 Last edited by Roman on 08 Apr 2023, 13:47; edited 2 times in total |
|||
08 Apr 2023, 13:28 |
|
revolution 08 Apr 2023, 13:44
The formatting doesn't mater.
Code: irpv v,kvall { reverse mov ebx, v common mov al,4 ;put only one ! forward mov edx, v } |
|||
08 Apr 2023, 13:44 |
|
Roman 08 Apr 2023, 13:48
Quote:
Not understand what is mean ? What is doesn't mater ? |
|||
08 Apr 2023, 13:48 |
|
revolution 08 Apr 2023, 15:00
You can insert line-breaks anywhere, the result is still the same.
I find it more intuitive to lay out the reverse/forward/common blocks similar to how I posted above. Each block does its thing before the next block begins. |
|||
08 Apr 2023, 15:00 |
|
Roman 08 Apr 2023, 15:21
Rept the same way work with reverse/forward ?
As irpv. |
|||
08 Apr 2023, 15:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.