flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Reverse for irpv apply for all.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1763
Roman 08 Apr 2023, 13:23
Code:
kvall equ 1
kvall equ 10
kvall equ 5

irpv v,kvall {reverse mov ebx, v 
    mov edx, v ; I am expected no reverse for edx, but reverse too
   }  
    


Its possible reset reverse for mov edx, v ?
Post 08 Apr 2023, 13:23
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20292
Location: In your JS exploiting you and your system
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
   }      
Post 08 Apr 2023, 13:26
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1763
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
Post 08 Apr 2023, 13:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20292
Location: In your JS exploiting you and your system
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 
}    
Post 08 Apr 2023, 13:44
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1763
Roman 08 Apr 2023, 13:48
Quote:

The formatting doesn't mater.


Not understand what is mean ?
What is doesn't mater ?
Post 08 Apr 2023, 13:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20292
Location: In your JS exploiting you and your system
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.
Post 08 Apr 2023, 15:00
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1763
Roman 08 Apr 2023, 15:21
Rept the same way work with reverse/forward ?
As irpv.
Post 08 Apr 2023, 15:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.