flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > copy data from "virtual"

Author
Thread Post new topic Reply to topic
Abyx



Joined: 17 Apr 2008
Posts: 9
Abyx 23 Sep 2008, 08:36
How to copy some data inside virtual ... end virtual?
I found a simple solution, but I don't think that it's good:
Code:
;macro
macro virtual_copy {
      local ..n
      ..n=$-$$
      rept 4 i:0 \{ if i<..n
         load virtual_copy_buf\#i byte from $$+i
      end if \}
      end virtual
      rept 4 i:0 \{ if i<..n
         db virtual_copy_buf\#i
      end if \} }
;test (will display "..passes, 2 bytes")
virtual
     db 2 dup(0)
virtual_copy    
Post 23 Sep 2008, 08:36
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20299
Location: In your JS exploiting you and your system
revolution 23 Sep 2008, 08:48
I don't know of any other method either. You can see these sort of copy operations in action in my SHA512, RSA and Rijndael (AES) macros.
Post 23 Sep 2008, 08:48
View user's profile Send private message Visit poster's website 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.